/* Lumi — Discord structure, Instagram skin */
:root {
  --bg: #ffffff; --bg2: #fafafa; --bg3: #efefef; --bg4: #e5e5e5; --hover: rgba(0,0,0,.04); --active: rgba(0,0,0,.07);
  --border: #dbdbdb; --border2: #efefef; --text: #000; --text2: #737373; --text3: #a8a8a8;
  --blue: #0095f6; --blue-hover: #1877f2; --red: #ed4956; --green: #2ecc71; --yellow: #f5b400;
  --ig: linear-gradient(45deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%);
  --ig-soft: linear-gradient(135deg, #fde3f0 0%, #efe3ff 100%);
  --bubble-me: linear-gradient(135deg, #a033ff 0%, #6355ff 45%, #3797f0 100%);
  --bubble-them: #efefef; --bubble-them-text: #000;
  --shadow: 0 4px 24px rgba(0,0,0,.12); --shadow-sm: 0 1px 6px rgba(0,0,0,.08);
  --radius: 14px; --rail: 76px; --side: 300px; --members: 248px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --logo: "Grand Hotel", "Lobster", cursive;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #000; --bg2: #0c0c0c; --bg3: #1c1c1c; --bg4: #262626; --hover: rgba(255,255,255,.06); --active: rgba(255,255,255,.1);
  --border: #262626; --border2: #1c1c1c; --text: #f5f5f5; --text2: #a8a8a8; --text3: #737373;
  --bubble-them: #262626; --bubble-them-text: #f5f5f5; --ig-soft: linear-gradient(135deg, #2a1424 0%, #1d1530 100%);
  --shadow: 0 4px 30px rgba(0,0,0,.6); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font: 14px/1.4 var(--font); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font: inherit; color: var(--text); }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; } svg.i.xs { width: 14px; height: 14px; } svg.i.fill { fill: currentColor; stroke: none; }
.hidden { display: none !important; }
.muted { color: var(--text2); } .small { font-size: 12px; } .bold { font-weight: 600; }
.grad-text { background: var(--ig); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { font-family: var(--logo); font-size: 42px; line-height: 1; letter-spacing: .5px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 16px; border-radius: 9px; font-weight: 600; background: var(--bg3); transition: background .15s, opacity .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: var(--bg4); } .btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); color: #fff; } .btn.primary:hover { background: var(--blue-hover); }
.btn.grad { background: var(--ig); color: #fff; } .btn.grad:hover { filter: brightness(1.05); }
.btn.danger { background: var(--red); color: #fff; } .btn.danger:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; } .btn.ghost:hover { background: var(--hover); }
.btn.link { background: none; color: var(--blue); padding: 0; height: auto; } .btn.link:hover { color: var(--blue-hover); }
.btn.block { width: 100%; } .btn.lg { height: 44px; border-radius: 12px; font-size: 15px; }
.btn:disabled { opacity: .45; pointer-events: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--text); transition: background .15s; position: relative; }
.icon-btn:hover { background: var(--hover); } .icon-btn.active { color: var(--blue); }
.icon-btn.danger { color: var(--red); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: .4px; }
.input, .textarea, .select { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); outline: none; transition: border .15s; }
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--text3); }
.hint { font-size: 12px; color: var(--text2); }
.err { color: var(--red); font-size: 13px; text-align: center; min-height: 18px; }

/* switch */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--bg4); border-radius: 26px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--text); } [data-theme="dark"] .switch input:checked + span { background: var(--blue); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:disabled + span { opacity: .4; cursor: not-allowed; }

/* ---------- avatars ---------- */
.av { position: relative; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; overflow: visible; }
.av img, .av .ph { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: grid; place-items: center; }
.av .ph { background: var(--ph, #d62976); font-size: .42em; text-transform: uppercase; }
.av .dot { position: absolute; right: -1px; bottom: -1px; width: 30%; height: 30%; min-width: 10px; min-height: 10px; border-radius: 50%; background: var(--green); border: 2.5px solid var(--bg); }
.av .dot.off { background: var(--text3); }
.ring { padding: 3px; border-radius: 50%; background: var(--ig); display: inline-grid; flex: none; }
.ring > .av { border: 3px solid var(--bg); box-sizing: content-box; }
.ring.seen { background: var(--border); }
.ring.speaking { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(214,41,118,.55); } 50% { box-shadow: 0 0 0 6px rgba(214,41,118,0); } }

/* ---------- auth ---------- */
#root { min-height: 100%; }
.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 32px 16px; background: var(--bg2); }
.auth-art { width: 360px; height: 560px; position: relative; display: none; }
@media (min-width: 900px) { .auth-art { display: block; } }
.auth-art .phone { position: absolute; width: 250px; height: 520px; border-radius: 40px; background: var(--bg); border: 10px solid #111; box-shadow: var(--shadow); overflow: hidden; }
.auth-art .phone.a { left: 0; top: 30px; transform: rotate(-6deg); } .auth-art .phone.b { right: 0; top: 0; transform: rotate(5deg); }
.auth-art .phone .scr { position: absolute; inset: 0; padding: 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.auth-art .mock-stories { display: flex; gap: 8px; } .auth-art .mock-stories i { width: 42px; height: 42px; border-radius: 50%; background: var(--ig); padding: 3px; }
.auth-art .mock-stories i::after { content: ""; display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--bg3); border: 2px solid var(--bg); box-sizing: border-box; }
.auth-art .mb { padding: 8px 12px; border-radius: 18px; max-width: 75%; font-size: 12px; }
.auth-art .mb.l { background: var(--bubble-them); align-self: flex-start; } .auth-art .mb.r { background: var(--bubble-me); color: #fff; align-self: flex-end; }
.auth-art .mock-call { flex: 1; border-radius: 18px; background: var(--ig); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
.auth-art .mock-call i { border-radius: 12px; background: rgba(255,255,255,.25); }
.auth-col { width: 350px; display: flex; flex-direction: column; gap: 10px; }
.auth-card { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 36px 40px 24px; text-align: center; }
[data-theme="dark"] .auth-card { border-color: var(--border); }
.auth-card .logo { margin: 6px 0 22px; font-size: 52px; }
.auth-card .tag { color: var(--text2); font-weight: 600; font-size: 16px; margin: -10px 0 18px; }
.auth-card .input { height: 38px; font-size: 13px; border-radius: 4px; margin-bottom: 7px; background: var(--bg2); }
.auth-card .btn.primary { width: 100%; height: 34px; margin-top: 8px; border-radius: 8px; }
.or { display: flex; align-items: center; gap: 16px; margin: 18px 0; color: var(--text2); font-size: 13px; font-weight: 600; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.gbtn { display: flex; justify-content: center; min-height: 40px; }
.auth-switch { background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 20px; text-align: center; }
.auth-switch button { color: var(--blue); font-weight: 600; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: var(--rail) var(--side) 1fr; height: 100vh; height: 100dvh; overflow: hidden; }
.rail { background: var(--bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail .sep { width: 32px; height: 1px; background: var(--border); margin: 4px 0; flex: none; }
.rail-item { position: relative; width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.rail-item .pill { position: absolute; left: -12px; width: 4px; border-radius: 0 4px 4px 0; background: var(--text); height: 0; transition: height .2s; }
.rail-item:hover .pill { height: 18px; } .rail-item.active .pill { height: 38px; } .rail-item.unread .pill { height: 8px; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--bg3); font-weight: 700; font-size: 15px; transition: border-radius .2s, background .2s, transform .1s; position: relative; color: var(--text); }
.rail-btn img { width: 100%; height: 100%; object-fit: cover; }
.rail-item:hover .rail-btn, .rail-item.active .rail-btn { border-radius: 16px; }
.rail-item.unread .rail-ring, .rail-item.active .rail-ring { background: var(--ig); }
.rail-ring { padding: 2px; border-radius: 50%; transition: border-radius .2s; } .rail-item:hover .rail-ring, .rail-item.active .rail-ring { border-radius: 18px; }
.rail-ring > .rail-btn { border: 2px solid var(--bg); }
.rail-btn.home { background: var(--ig); color: #fff; } .rail-btn.home svg { width: 26px; height: 26px; }
.rail-btn.add { color: var(--text); background: var(--bg3); } .rail-btn.add:hover { background: var(--ig); color: #fff; }
.badge { position: absolute; right: -4px; bottom: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 3px solid var(--bg); box-sizing: content-box; }
.tip { position: fixed; z-index: 1000; background: var(--text); color: var(--bg); padding: 6px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow-sm); }

.side { background: var(--bg); border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.side-head { height: 64px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; border-bottom: 1px solid var(--border2); }
.side-head .title { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.server-head { position: relative; height: auto; min-height: 64px; padding: 0; display: block; cursor: pointer; border-bottom: 1px solid var(--border2); }
.server-head .banner { height: 96px; background: var(--ig) center/cover; position: relative; }
.server-head .banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45)); }
.server-head .row { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: 52px; }
.server-head.has-banner .row { position: absolute; left: 0; right: 0; bottom: 0; color: #fff; z-index: 1; }
.server-head .name { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-body { flex: 1; overflow-y: auto; padding: 8px 8px 16px; }
.side-search { margin: 10px 12px 6px; }
.side-search input { width: 100%; height: 36px; border-radius: 10px; border: 0; background: var(--bg3); padding: 0 14px; outline: none; }
.side-section { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 6px; font-weight: 700; font-size: 15px; }
.side-section.cat { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); padding-top: 18px; }
.side-section .icon-btn { width: 28px; height: 28px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; cursor: pointer; position: relative; min-height: 44px; transition: background .12s; }
.nav-item:hover { background: var(--hover); } .nav-item.active { background: var(--active); }
.nav-item .meta { min-width: 0; flex: 1; }
.nav-item .n { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item .sub { color: var(--text2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item.unread .n { font-weight: 700; } .nav-item.unread .sub { color: var(--text); font-weight: 600; }
.nav-item .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none; }
.nav-item .count { background: var(--red); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.nav-item .x { opacity: 0; } .nav-item:hover .x { opacity: 1; }
.chan { min-height: 36px; padding: 6px 10px; gap: 8px; color: var(--text2); font-weight: 500; }
.chan .n { font-weight: 500; } .chan:hover { color: var(--text); } .chan.active { color: var(--text); }
.chan.unread { color: var(--text); } .chan.unread .n { font-weight: 700; }
.chan .tools { display: none; gap: 2px; } .chan:hover .tools, .chan.active .tools { display: flex; }
.chan .tools button { color: var(--text2); display: grid; } .chan .tools button:hover { color: var(--text); }
.voice-users { padding: 2px 0 6px 36px; display: flex; flex-direction: column; gap: 2px; }
.voice-user { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border-radius: 8px; font-size: 13px; color: var(--text2); }
.voice-user:hover { background: var(--hover); color: var(--text); }
.voice-user .vu-icons { margin-left: auto; display: flex; gap: 4px; color: var(--text3); }
.voice-user .live { background: var(--red); color: #fff; font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 4px; }

.side-foot { border-top: 1px solid var(--border2); flex: none; }
.vc-panel { padding: 10px 12px; border-bottom: 1px solid var(--border2); display: flex; align-items: center; gap: 8px; }
.vc-panel .st { color: var(--green); font-weight: 700; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.vc-panel .where { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.vc-panel .where:hover { text-decoration: underline; }
.me-panel { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; }
.me-panel .who { flex: 1; min-width: 0; cursor: pointer; border-radius: 8px; padding: 2px 4px; }
.me-panel .who:hover { background: var(--hover); }
.me-panel .n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-panel .u { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-panel .icon-btn { width: 32px; height: 32px; } .me-panel .icon-btn.off { color: var(--red); }

/* ---------- main ---------- */
.main { display: flex; flex-direction: column; min-width: 0; background: var(--bg); position: relative; }
.main-head { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border2); }
.main-head .t { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.main-head .topic { color: var(--text2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 1px solid var(--border); padding-left: 12px; margin-left: 4px; min-width: 0; flex: 1; }
.main-head .tools { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.main-head .search { height: 32px; width: 180px; border-radius: 8px; border: 0; background: var(--bg3); padding: 0 12px; outline: none; transition: width .2s; }
.main-head .search:focus { width: 240px; }
.main-head .who { display: flex; align-items: center; gap: 12px; cursor: pointer; min-width: 0; }
.main-head .who .sub { font-size: 12px; color: var(--text2); font-weight: 400; }
.mobile-menu { display: none; }

.content { flex: 1; display: flex; min-height: 0; }
.chat { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.messages { flex: 1; overflow-y: auto; padding: 16px 20px 8px; display: flex; flex-direction: column; }
.messages .spacer { flex: 1; }
.chat-intro { text-align: center; padding: 40px 20px 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.chat-intro .big { font-size: 22px; font-weight: 700; margin-top: 10px; }
.chat-intro .hash { width: 88px; height: 88px; border-radius: 50%; background: var(--ig); color: #fff; display: grid; place-items: center; }
.chat-intro .hash svg { width: 44px; height: 44px; }
.day { text-align: center; color: var(--text2); font-size: 12px; font-weight: 600; margin: 18px 0 10px; }
.msg-group { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.msg-group.me { flex-direction: row-reverse; }
.msg-group .gav { width: 28px; flex: none; align-self: flex-end; margin-bottom: 2px; cursor: pointer; }
.msg-group .stack { display: flex; flex-direction: column; gap: 2px; min-width: 0; max-width: min(72%, 640px); }
.msg-group.me .stack { align-items: flex-end; }
.msg-group .author { font-size: 12px; color: var(--text2); margin: 0 0 2px 12px; display: flex; gap: 6px; align-items: baseline; cursor: pointer; }
.msg-group .author b { font-weight: 600; } .msg-group .author .role-tag { font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; color: #fff; }
.msg { position: relative; display: flex; flex-direction: column; max-width: 100%; }
.msg-group.me .msg { align-items: flex-end; }
.msg .bubble { padding: 8px 13px; border-radius: 22px; background: var(--bubble-them); color: var(--bubble-them-text); word-wrap: break-word; overflow-wrap: anywhere; white-space: pre-wrap; max-width: 100%; font-size: 14.5px; line-height: 1.38; }
.msg-group.me .msg .bubble { background: var(--bubble-me); background-attachment: fixed; color: #fff; }
.msg-group:not(.me) .msg:not(.first) .bubble { border-top-left-radius: 6px; } .msg-group:not(.me) .msg:not(.last) .bubble { border-bottom-left-radius: 6px; }
.msg-group.me .msg:not(.first) .bubble { border-top-right-radius: 6px; } .msg-group.me .msg:not(.last) .bubble { border-bottom-right-radius: 6px; }
.msg .bubble.jumbo { background: none !important; font-size: 40px; padding: 0 4px; line-height: 1.15; }
.msg .bubble a { color: inherit; text-decoration: underline; }
.msg .bubble code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: rgba(0,0,0,.08); padding: 1px 5px; border-radius: 5px; }
.msg-group.me .msg .bubble code { background: rgba(255,255,255,.2); }
.msg .bubble pre { margin: 4px 0; padding: 10px; background: rgba(0,0,0,.08); border-radius: 10px; overflow-x: auto; white-space: pre; }
.msg .bubble pre code { background: none; padding: 0; }
.msg .bubble .mention { background: rgba(0,149,246,.15); color: var(--blue); font-weight: 600; border-radius: 4px; padding: 0 2px; }
.msg-group.me .msg .bubble .mention { background: rgba(255,255,255,.25); color: #fff; }
.msg .bubble blockquote { margin: 2px 0; padding-left: 8px; border-left: 3px solid currentColor; opacity: .85; }
.msg.mentioned .bubble { box-shadow: 0 0 0 2px var(--yellow); }
.msg .edited { font-size: 11px; color: var(--text3); margin: 1px 10px 0; }
.msg .pinned-tag { font-size: 11px; color: var(--text2); margin: 0 10px 2px; display: flex; gap: 4px; align-items: center; }
.msg .attach { margin: 2px 0; max-width: 100%; }
.msg .attach img, .msg .attach video { max-width: min(360px, 100%); max-height: 360px; border-radius: 18px; display: block; cursor: zoom-in; border: 1px solid var(--border2); }
.msg .attach audio { max-width: 300px; }
.msg .attach .file { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); }
.msg .reply-ref { font-size: 12px; color: var(--text2); margin: 4px 10px 2px; max-width: 320px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.msg .reply-ref .q { padding: 6px 12px; border-radius: 16px; background: var(--bg3); color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.msg .reacts { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 8px 0; position: relative; z-index: 1; }
.msg .react { display: inline-flex; gap: 3px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1px 7px; font-size: 13px; box-shadow: var(--shadow-sm); }
.msg .react.mine { border-color: var(--blue); background: rgba(0,149,246,.08); }
.msg .react b { font-size: 11px; font-weight: 600; color: var(--text2); }
.msg .actions { position: absolute; top: 50%; transform: translateY(-50%); display: none; gap: 2px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 2px; box-shadow: var(--shadow-sm); z-index: 3; }
.msg-group:not(.me) .msg .actions { left: calc(100% + 6px); } .msg-group.me .msg .actions { right: calc(100% + 6px); }
.msg:hover .actions, .msg.menu-open .actions { display: flex; }
.msg .actions button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text2); }
.msg .actions button:hover { background: var(--hover); color: var(--text); }
.msg .time { position: absolute; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--text3); white-space: nowrap; display: none; }
.msg-group:not(.me) .msg .time { left: calc(100% + 112px); } .msg-group.me .msg .time { right: calc(100% + 112px); }
.msg:hover .time { display: block; }
.msg.flash .bubble { animation: flash 1.2s; }
@keyframes flash { 0%, 50% { box-shadow: 0 0 0 3px var(--blue); } 100% { box-shadow: none; } }
.heart-pop { position: absolute; left: 50%; top: 50%; font-size: 48px; pointer-events: none; animation: heartpop .8s ease-out forwards; z-index: 5; }
@keyframes heartpop { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0; } 30% { transform: translate(-50%,-50%) scale(1.2); opacity: 1; } 100% { transform: translate(-50%,-90%) scale(1); opacity: 0; } }
.system-msg { text-align: center; font-size: 12px; color: var(--text2); margin: 10px 0; }
.load-more { align-self: center; margin: 8px 0; }

.typing { height: 22px; padding: 0 24px; font-size: 12px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.typing .dots { display: inline-flex; gap: 3px; } .typing .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text2); animation: blink 1.2s infinite; }
.typing .dots i:nth-child(2) { animation-delay: .2s; } .typing .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.composer-wrap { padding: 0 16px 16px; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: var(--text2); border: 1px solid var(--border); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--bg2); }
.reply-bar b { color: var(--text); } .reply-bar .q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.composer { display: flex; align-items: flex-end; gap: 4px; border: 1px solid var(--border); border-radius: 24px; padding: 5px 6px 5px 8px; background: var(--bg); min-height: 46px; }
.composer.joined { border-top-left-radius: 0; border-top-right-radius: 0; }
#composer-extras > * + * { border-radius: 0; }
.spoiler { background: currentColor; border-radius: 4px; cursor: pointer; } .spoiler.shown { background: rgba(127,127,127,.2); }
.composer textarea { flex: 1; resize: none; border: 0; outline: none; background: none; padding: 9px 6px; max-height: 180px; min-height: 22px; line-height: 1.4; font-size: 14.5px; }
.composer .send { color: var(--blue); font-weight: 600; padding: 0 12px; height: 34px; border-radius: 17px; }
.composer .send:hover { color: var(--text); } .composer .send:disabled { opacity: .4; }
.composer.disabled { opacity: .6; pointer-events: none; }
.pending { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border: 1px solid var(--border); border-bottom: 0; border-radius: 18px 18px 0 0; background: var(--bg2); }
.pending img, .pending video { height: 64px; border-radius: 10px; }
.pending .fname { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.45); z-index: 30; display: grid; place-items: center; pointer-events: none; }
.drop-overlay div { background: var(--ig); color: #fff; padding: 30px 40px; border-radius: 24px; font-size: 18px; font-weight: 700; }

/* side panels (members, pins, search) */
.members { width: var(--members); border-left: 1px solid var(--border2); overflow-y: auto; padding: 8px 8px 24px; flex: none; background: var(--bg); }
.members .grp { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); font-weight: 700; padding: 16px 10px 6px; }
.member { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; cursor: pointer; }
.member:hover { background: var(--hover); } .member.off { opacity: .45; }
.member .n { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 4px; align-items: center; }
.member .s { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member .crown { color: var(--yellow); }
.panel { width: 340px; border-left: 1px solid var(--border2); display: flex; flex-direction: column; flex: none; background: var(--bg); }
.panel-head { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 16px; font-weight: 700; border-bottom: 1px solid var(--border2); }
.panel-body { flex: 1; overflow-y: auto; padding: 8px 12px; }
.panel-item { border: 1px solid var(--border2); border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.panel-item:hover { background: var(--hover); } .panel-item .h { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 4px; }
.panel-item .b { font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- home / friends ---------- */
.home { flex: 1; overflow-y: auto; }
.stories { display: flex; gap: 16px; padding: 18px 24px; overflow-x: auto; border-bottom: 1px solid var(--border2); scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 72px; flex: none; cursor: pointer; }
.story .lbl { font-size: 12px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story .add { position: absolute; right: 0; bottom: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; border: 2px solid var(--bg); }
.tabs { display: flex; gap: 6px; padding: 14px 24px 6px; flex-wrap: wrap; align-items: center; }
.tab { padding: 7px 14px; border-radius: 9px; font-weight: 600; color: var(--text2); }
.tab:hover { background: var(--hover); color: var(--text); } .tab.active { background: var(--text); color: var(--bg); }
.tab .c { background: var(--red); color: #fff; border-radius: 8px; padding: 0 6px; font-size: 11px; margin-left: 4px; }
.friends-list { padding: 4px 16px 24px; }
.friends-list .h { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); font-weight: 700; padding: 12px 8px; }
.friend { display: flex; align-items: center; gap: 14px; padding: 10px 8px; border-radius: 14px; cursor: pointer; border-top: 1px solid var(--border2); }
.friend:first-of-type { border-top: 0; }
.friend:hover { background: var(--hover); border-color: transparent; } .friend:hover + .friend { border-color: transparent; }
.friend .meta { flex: 1; min-width: 0; } .friend .n { font-weight: 600; } .friend .s { color: var(--text2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend .acts { display: flex; gap: 6px; } .friend .acts .icon-btn { background: var(--bg3); }
.friend .acts .icon-btn:hover { background: var(--bg4); } .friend .acts .icon-btn.ok:hover { color: var(--green); } .friend .acts .icon-btn.no:hover { color: var(--red); }
.add-friend { padding: 20px 24px; border-bottom: 1px solid var(--border2); }
.add-friend h3 { margin: 0 0 4px; font-size: 18px; }
.add-friend form { display: flex; gap: 8px; margin-top: 12px; align-items: center; border: 1px solid var(--border); border-radius: 14px; padding: 6px 6px 6px 14px; background: var(--bg2); }
.add-friend form:focus-within { border-color: var(--blue); }
.add-friend input { flex: 1; border: 0; background: none; outline: none; height: 36px; font-size: 15px; }
.add-friend .res { margin-top: 8px; font-size: 13px; } .add-friend .res.ok { color: var(--green); } .add-friend .res.bad { color: var(--red); }
.empty { text-align: center; padding: 60px 20px; color: var(--text2); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .art { width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--text); display: grid; place-items: center; color: var(--text); }
.empty .art svg { width: 44px; height: 44px; stroke-width: 1.5; }
.empty h3 { margin: 4px 0 0; color: var(--text); font-size: 20px; }
.active-now { width: 320px; border-left: 1px solid var(--border2); padding: 18px 16px; overflow-y: auto; flex: none; }
.active-now h3 { margin: 0 0 14px; font-size: 18px; }
.active-card { border: 1px solid var(--border2); border-radius: 16px; padding: 12px; margin-bottom: 10px; cursor: pointer; }
.active-card:hover { background: var(--hover); }

/* ---------- call stage ---------- */
.stage { background: #0b0b0b; color: #fff; display: flex; flex-direction: column; position: relative; flex: none; }
.stage.dm { height: 380px; min-height: 240px; resize: vertical; overflow: hidden; }
.stage.full { flex: 1; }
.stage .grid { flex: 1; display: grid; gap: 10px; padding: 44px 14px 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-rows: minmax(140px, 1fr); align-content: center; min-height: 0; overflow: auto; }
.stage .grid.one { grid-template-columns: minmax(220px, 640px); justify-content: center; }
.tile { align-self: center; justify-self: center; position: relative; border-radius: 18px; overflow: hidden; background: #1c1c1c; display: grid; place-items: center; min-height: 140px; aspect-ratio: 16/9; max-height: 100%; width: 100%; }
.tile:not(.has-video) video { display: none; }
.tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile.screen video { object-fit: contain; }
.tile.self:not(.screen) video { transform: scaleX(-1); }
.tile .tile-av { display: grid; place-items: center; }
.tile .bgblur { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(30px) brightness(.5); transform: scale(1.3); }
.tile .lbl { position: absolute; left: 10px; bottom: 10px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; z-index: 2; }
.tile .lbl .mic-off { color: var(--red); }
.tile.speaking { box-shadow: inset 0 0 0 3px #2ecc71; }
.tile.has-video .tile-av, .tile.has-video .bgblur { display: none; }
.tile.focus { grid-column: 1 / -1; grid-row: span 2; aspect-ratio: auto; }
.stage .controls { display: flex; justify-content: center; gap: 12px; padding: 12px; flex: none; }
.ctrl { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: background .15s, transform .1s; }
.ctrl:hover { background: rgba(255,255,255,.24); } .ctrl:active { transform: scale(.95); }
.ctrl.on { background: #fff; color: #000; } .ctrl.off { background: rgba(237,73,86,.25); color: #ff6b77; }
.ctrl.leave { background: var(--red); width: 64px; border-radius: 26px; } .ctrl.leave:hover { filter: brightness(1.1); }
.stage .stage-top { position: absolute; top: 10px; left: 14px; right: 14px; display: flex; justify-content: space-between; align-items: center; z-index: 3; font-weight: 600; pointer-events: none; }
.stage .stage-top > * { pointer-events: auto; }
.stage .calling { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.stage .calling .ring { animation: pulse 1.6s infinite; }
.join-voice { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--ig-soft); text-align: center; padding: 20px; }
.join-voice .who-row { display: flex; gap: -8px; }
.join-voice h2 { margin: 0; font-size: 26px; }

/* ---------- modals ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg); border-radius: 18px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow); animation: pop .18s cubic-bezier(.2,.9,.3,1.2); overflow: hidden; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: center; position: relative; height: 48px; border-bottom: 1px solid var(--border); font-weight: 700; font-size: 16px; flex: none; }
.modal-head .icon-btn { position: absolute; right: 6px; } .modal-head .back { position: absolute; left: 6px; right: auto; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border2); flex: none; }
.modal.wide { max-width: 980px; height: min(720px, calc(100vh - 32px)); }
.modal.wide .modal-body { padding: 0; display: flex; flex: 1; min-height: 0; overflow: hidden; }
.settings-nav { width: 220px; border-right: 1px solid var(--border2); padding: 12px 8px; overflow-y: auto; flex: none; }
.settings-nav .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); font-weight: 700; padding: 12px 12px 6px; }
.settings-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-weight: 500; text-align: left; }
.settings-nav button:hover { background: var(--hover); } .settings-nav button.active { background: var(--active); font-weight: 700; }
.settings-nav button.dz { color: var(--red); }
.settings-pane { flex: 1; overflow-y: auto; padding: 24px 32px 40px; min-width: 0; }
.settings-pane h2 { margin: 0 0 18px; font-size: 22px; }
#r-members { padding-bottom: 24px; }
.settings-pane h4 { margin: 22px 0 10px; font-size: 14px; }
.save-bar { position: sticky; bottom: -40px; margin: 24px -32px -40px; padding: 12px 32px; background: var(--bg); border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; align-items: center; }
.save-bar span { margin-right: auto; color: var(--text2); font-size: 13px; }
.upload-av { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.upload-av .av { cursor: pointer; } .upload-av .av:hover::after { content: "Change"; position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,.5); display: grid; place-items: center; font-size: 12px; color: #fff; }
.banner-up { height: 120px; border-radius: 14px; background: var(--ig) center/cover; position: relative; cursor: pointer; margin-bottom: 18px; overflow: hidden; }
.banner-up:hover::after { content: "Change banner"; position: absolute; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: center; color: #fff; font-weight: 600; }
.perm { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border2); }
.perm .d { font-size: 12.5px; color: var(--text2); margin-top: 2px; }
.roles-layout { display: flex; gap: 20px; min-height: 100%; }
.roles-list { width: 200px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.role-row { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.role-row:hover { background: var(--hover); } .role-row.active { background: var(--active); }
.role-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.role-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; background: var(--bg3); margin: 2px 4px 2px 0; }
.role-chip button { display: grid; color: var(--text2); } .role-chip button:hover { color: var(--red); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.swatch { width: 28px; height: 28px; border-radius: 8px; cursor: pointer; border: 2px solid transparent; }
.swatch.sel { border-color: var(--text); }
.row-line { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border2); }
.row-line .meta { flex: 1; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { border: 1.5px solid var(--border); border-radius: 14px; padding: 14px; text-align: left; display: flex; gap: 10px; align-items: center; font-weight: 600; }
.choice:hover { background: var(--hover); } .choice.sel { border-color: var(--text); }
.choice .em { font-size: 22px; }
.menu { position: fixed; z-index: 200; background: var(--bg); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 210px; border: 1px solid var(--border2); animation: pop .12s; }
.menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 9px; text-align: left; font-weight: 500; }
.menu button:hover { background: var(--hover); } .menu button.dz { color: var(--red); }
.menu hr { border: 0; border-top: 1px solid var(--border2); margin: 4px 0; }
.emoji-pick { display: grid; grid-template-columns: repeat(8, 34px); gap: 2px; padding: 6px; }
.emoji-pick button { font-size: 22px; height: 34px; border-radius: 8px; justify-content: center; padding: 0; }
.quick-react { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--border2); margin-bottom: 4px; }
.quick-react button { font-size: 24px; padding: 4px; width: auto; transition: transform .1s; } .quick-react button:hover { transform: scale(1.25); background: none; }

/* profile card */
.profile { max-width: 380px; }
.profile .modal-body { padding: 0; }
.profile .pbanner { height: 110px; background: var(--ig) center/cover; }
.profile .pav { margin: -48px 0 0 18px; }
.profile .pbody { padding: 10px 20px 20px; }
.profile .pname { font-size: 20px; font-weight: 700; margin-top: 8px; }
.profile .puser { color: var(--text2); }
.profile .pstatus { margin-top: 8px; font-size: 13px; }
.profile .psec { margin-top: 16px; } .profile .psec h5 { margin: 0 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--text2); }
.profile .pacts { display: flex; gap: 8px; margin-top: 16px; } .profile .pacts .btn { flex: 1; }
.mutual { display: flex; gap: 6px; flex-wrap: wrap; } .mutual span { background: var(--bg3); border-radius: 8px; padding: 3px 8px; font-size: 12px; }

/* invite */
.invite-link { display: flex; gap: 8px; align-items: center; border: 1px solid var(--border); border-radius: 12px; padding: 4px 4px 4px 12px; background: var(--bg2); }
.invite-link input { flex: 1; border: 0; background: none; outline: none; height: 34px; }
.invite-card { text-align: center; }
.invite-card .ib { height: 100px; background: var(--ig) center/cover; border-radius: 14px; margin-bottom: -40px; }
.invite-card .counts { display: flex; justify-content: center; gap: 16px; color: var(--text2); font-size: 13px; margin: 6px 0 16px; }
.invite-card .counts span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--text3); margin-right: 5px; }
.invite-card .counts span.on::before { background: var(--green); }

/* incoming call */
.incoming { position: fixed; z-index: 300; right: 24px; top: 24px; width: 300px; background: #111; color: #fff; border-radius: 24px; padding: 22px; box-shadow: 0 10px 50px rgba(0,0,0,.5); text-align: center; animation: pop .25s; }
.incoming .ring { animation: pulse 1.2s infinite; margin: 0 auto 10px; }
.incoming .n { font-size: 18px; font-weight: 700; } .incoming .s { color: #aaa; font-size: 13px; margin-bottom: 18px; }
.incoming .btns { display: flex; justify-content: center; gap: 18px; }
.incoming .btns button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.incoming .decline { background: var(--red); } .incoming .accept { background: var(--green); }

/* stories viewer */
.sv { position: fixed; inset: 0; z-index: 400; background: #1a1a1a; display: grid; place-items: center; }
.sv .card { position: relative; width: min(420px, 100vw); height: min(780px, 100vh); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.sv .bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 3; }
.sv .bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.35); overflow: hidden; }
.sv .bars i b { display: block; height: 100%; width: 0; background: #fff; }
.sv .top { position: absolute; top: 22px; left: 12px; right: 6px; display: flex; align-items: center; gap: 10px; z-index: 3; color: #fff; font-weight: 600; }
.sv .top .t { font-weight: 400; opacity: .7; font-size: 13px; } .sv .top .sp { flex: 1; }
.sv .top .icon-btn { color: #fff; }
.sv .body { flex: 1; display: grid; place-items: center; padding: 40px 28px; text-align: center; font-size: 28px; font-weight: 700; color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; position: relative; }
.sv .body img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sv .body .cap { position: relative; z-index: 1; background: rgba(0,0,0,.45); padding: 8px 14px; border-radius: 12px; font-size: 20px; align-self: end; }
.sv .nav { position: absolute; top: 80px; bottom: 80px; width: 35%; z-index: 2; cursor: pointer; } .sv .nav.l { left: 0; } .sv .nav.r { right: 0; }
.sv .reply { display: flex; gap: 8px; padding: 12px; z-index: 3; }
.sv .reply input { flex: 1; height: 44px; border-radius: 22px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; padding: 0 18px; outline: none; }
.sv .reply input::placeholder { color: rgba(255,255,255,.8); }
.sv .reply .icon-btn { color: #fff; width: 44px; height: 44px; }
.sv .x { position: absolute; top: 16px; right: 16px; color: #fff; }
.bg-sunset { background: linear-gradient(160deg, #feda75, #fa7e1e, #d62976); } .bg-ig { background: var(--ig); }
.bg-ocean { background: linear-gradient(160deg, #43cea2, #185a9d); } .bg-night { background: linear-gradient(160deg, #0f0c29, #302b63, #24243e); }
.bg-candy { background: linear-gradient(160deg, #f7797d, #fbd786, #c6ffdd); } .bg-mono { background: #111; }
.story-compose .preview { height: 340px; border-radius: 16px; display: grid; place-items: center; color: #fff; font-size: 24px; font-weight: 700; padding: 24px; text-align: center; white-space: pre-wrap; position: relative; overflow: hidden; overflow-wrap: anywhere; }
.story-compose .preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-compose .preview span { position: relative; }
.story-compose .bgs { display: flex; gap: 8px; margin: 12px 0; } .story-compose .bgs button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border); }
.story-compose .bgs button.sel { box-shadow: 0 0 0 2px var(--text); }

/* lightbox, toasts */
.lightbox { position: fixed; inset: 0; z-index: 500; background: rgba(0,0,0,.9); display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 90vh; border-radius: 8px; }
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 600; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow); animation: pop .2s; max-width: 90vw; }
.toast.err { background: var(--red); color: #fff; }
.splash { height: 100%; display: grid; place-items: center; } .splash .logo { font-size: 64px; animation: fade 1s infinite alternate; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) { .active-now { display: none; } }
@media (max-width: 1000px) { .members, .panel { position: absolute; right: 0; top: 64px; bottom: 0; z-index: 20; box-shadow: var(--shadow); } }
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .rail, .side { position: fixed; top: 0; bottom: 0; z-index: 50; transition: transform .2s; }
  .rail { left: 0; width: var(--rail); } .side { left: var(--rail); width: min(300px, calc(100vw - var(--rail))); }
  .app:not(.drawer) .rail { transform: translateX(-110%); } .app:not(.drawer) .side { transform: translateX(calc(-100% - var(--rail) - 12px)); }
  .app.drawer::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 40; }
  .mobile-menu { display: grid; } .main-head { gap: 6px; padding: 0 6px; } .main-head .who .sub { display: none; } .main-head .topic, .main-head .search { display: none; }
  .msg-group .stack { max-width: 85%; } .msg .actions { top: auto; bottom: 100%; transform: none; } .msg .time { display: none !important; }
  .msg-group:not(.me) .msg .actions { left: 0; } .msg-group.me .msg .actions { right: 0; }
  .settings-nav { width: 150px; } .settings-pane { padding: 16px; } .roles-layout { flex-direction: column; } .roles-list { width: auto; }
  .incoming { left: 12px; right: 12px; width: auto; }
}

/* =====================================================================
   LUMI IDENTITY LAYER: ink + electric lime + teal, floating panels
   ===================================================================== */
@font-face { font-family: "Outfit"; src: url(/fonts/outfit-latin-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Outfit"; src: url(/fonts/outfit-latin-ext-wght-normal.woff2) format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+1E00-1EFF; }
:root {
  --ink: #17151C; --lime: #743AFB; --lime-deep: #5B21E6; --teal: #A78BFA; --teal-deep: #6A2EF0;
  --app-bg: #ECE8E1; --bg: #FFFFFF; --bg2: #F7F5F1; --bg3: #F0EDE7; --bg4: #E5E1D9;
  --hover: rgba(23,21,28,.045); --active: rgba(23,21,28,.075); --border: #E4E0D8; --border2: #EFECE6;
  --text: #17151C; --text2: #6E6977; --text3: #A6A1AD;
  --blue: #6A2EF0; --blue-hover: #5B21E6; --green: #5FB80A; --red: #E5484D; --yellow: #E9A23B;
  --ig: linear-gradient(135deg, #743AFB 0%, #A78BFA 100%);
  --ig-soft: linear-gradient(135deg, #F3EEFF 0%, #EAE6FF 100%);
  --lime-soft: #EFE9FF;
  --bubble-me: #17151C; --bubble-me-text: #FFFFFF; --bubble-them: #F0EDE7; --bubble-them-text: #17151C;
  --primary-bg: #17151C; --primary-text: #FFFFFF; --primary-hover: #000;
  --font: "Outfit", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; --logo: "Outfit", sans-serif;
  --radius: 18px; --rail: 72px;
}
[data-theme="dark"] {
  --app-bg: #0A090D; --bg: #141218; --bg2: #19171F; --bg3: #211F28; --bg4: #2B2833;
  --hover: rgba(255,255,255,.05); --active: rgba(255,255,255,.085); --border: #2A2731; --border2: #201E26;
  --text: #F3F1F6; --text2: #A29DAB; --text3: #6E6977; --blue: #A78BFA; --blue-hover: #C4B5FD;
  --ig-soft: linear-gradient(135deg, #1A1430 0%, #141026 100%); --lime-soft: rgba(116,58,251,.12);
  --bubble-me: #743AFB; --bubble-me-text: #17151C; --bubble-them: #24212B; --bubble-them-text: #F3F1F6;
  --primary-bg: #743AFB; --primary-text: #17151C; --primary-hover: #8B5CFF;
}
body { font-feature-settings: "ss01"; letter-spacing: -0.005em; }
::selection { background: var(--lime); color: var(--ink); }

/* wordmark */
.wordmark { font-family: var(--logo); font-weight: 700; font-size: 34px; letter-spacing: -0.055em; color: var(--text); line-height: 1; display: inline-block; position: relative; padding: .12em .06em .1em .02em; }
.wordmark::after { content: ""; position: absolute; width: .165em; height: .165em; border-radius: 50%; background: var(--lime); box-shadow: 0 0 .3em rgba(116,58,251,.8); right: .052em; top: .2em; }
.wordmark.lg { font-size: 56px; }
.splash { background: var(--app-bg); }

/* buttons */
.btn { border-radius: 12px; font-weight: 600; }
.btn.primary { background: var(--primary-bg); color: var(--primary-text); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.grad { background: var(--lime); color: var(--ink); } .btn.grad:hover { filter: none; background: #8B5CFF; }
.input, .textarea, .select { border-radius: 12px; background: var(--bg2); }
.input:focus, .textarea:focus, .select:focus { border-color: var(--teal-deep); box-shadow: 0 0 0 3px rgba(167,139,250,.18); }
.switch input:checked + span, [data-theme="dark"] .switch input:checked + span { background: var(--teal-deep); }

/* glow rings instead of gradient rings */
.ring { background: var(--ig); box-shadow: 0 0 14px rgba(116,58,251,.45); }
.ring.seen { box-shadow: none; }
.ring.speaking { animation: lumiGlow 1.1s ease-in-out infinite; background: var(--ig); }
@keyframes lumiGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(116,58,251,.0), 0 0 10px rgba(116,58,251,.5); } 50% { box-shadow: 0 0 0 5px rgba(116,58,251,.25), 0 0 22px rgba(167,139,250,.6); } }
.av .dot { background: var(--green); }

/* ---------- floating-panel shell ---------- */
.app { background: var(--app-bg); padding: 10px; gap: 10px; grid-template-columns: var(--rail) var(--side) 1fr; }
.rail, .side, .main { border: 0; border-radius: 22px; box-shadow: 0 1px 2px rgba(23,21,28,.05); overflow: hidden; }
.rail { padding: 12px 0; gap: 10px; }
.rail-item .pill { display: none; }
.rail-ring, .rail-item.unread .rail-ring, .rail-item.active .rail-ring { background: none; padding: 0; }
.rail-ring > .rail-btn { border: 0; }
.rail-btn { border-radius: 16px !important; width: 48px; height: 48px; transition: transform .15s, box-shadow .15s, background .15s; }
.rail-item:hover .rail-btn { transform: translateY(-2px); }
.rail-item.active .rail-btn { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--lime), 0 6px 18px rgba(116,58,251,.45); }
.rail-item.unread::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2.5px solid var(--bg); box-shadow: 0 0 8px var(--lime); }
.rail-btn.home { background: var(--ink); color: var(--lime); }
[data-theme="dark"] .rail-btn.home { background: var(--lime); color: var(--ink); }
.rail-btn.add:hover { background: var(--lime); color: var(--ink); }
.rail .sep { width: 28px; height: 3px; border-radius: 3px; background: var(--bg3); }
.badge { background: var(--ink); color: var(--lime); border-color: var(--bg); }
[data-theme="dark"] .badge { background: var(--lime); color: var(--ink); }

.side-head { height: 64px; }
.side-head .title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.side-search input { border-radius: 12px; }
.side-section { font-size: 14px; padding: 18px 12px 6px; }
.side-section.cat { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; color: var(--text2); }
.nav-item { border-radius: 14px; }
.nav-item.active { background: var(--lime-soft); }
[data-theme="dark"] .nav-item.active .n { color: var(--lime); }
.nav-item .unread-dot { background: var(--teal-deep); box-shadow: 0 0 6px var(--teal); }
.nav-item .count { background: var(--ink); color: var(--lime); }
[data-theme="dark"] .nav-item .count { background: var(--lime); color: var(--ink); }
.chan { border-radius: 12px; }
.chan.active { background: var(--lime-soft); }
.server-head .banner { background: var(--ig) center/cover; }
.server-head .row { height: 64px; }
.server-head .name { font-size: 19px; letter-spacing: -.02em; }
.voice-users { padding-left: 30px; }
.voice-user { border-radius: 10px; }
.voice-user .live { background: var(--red); }

.vc-panel { margin: 8px 8px 0; border: 0; border-radius: 16px; background: var(--lime-soft); padding: 8px 8px 8px 12px; }
.vc-panel .st { color: var(--teal-deep); }
[data-theme="dark"] .vc-panel .st { color: var(--lime); }
.side-foot { border-top: 0; }
.me-panel { margin: 8px; padding: 8px; border-radius: 16px; background: var(--bg2); }

/* main */
.main-head { height: 64px; border-bottom: 1px solid var(--border2); }
.main-head .t { font-size: 17px; letter-spacing: -.01em; }
.main-head .topic { border-left: 0; padding-left: 4px; }
.main-head .search { border-radius: 12px; }
.tabs .tab { border-radius: 999px; padding: 7px 16px; }
.tab.active { background: var(--ink); color: #fff; }
[data-theme="dark"] .tab.active { background: var(--lime); color: var(--ink); }
.tab .c { background: var(--lime); color: var(--ink); }
.members .grp { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 600; }
.member { border-radius: 14px; }
.member .crown { color: var(--yellow); }
.active-now h3, .add-friend h3 { letter-spacing: -.02em; }
.active-card { border-radius: 18px; border-color: var(--border); }
.friend { border-radius: 16px; }
.empty .art { border: 0; background: var(--lime-soft); color: var(--ink); }
[data-theme="dark"] .empty .art { color: var(--lime); }
.chat-intro .hash { background: var(--ink); color: var(--lime); border-radius: 30px; box-shadow: 0 10px 30px rgba(116,58,251,.25); }
[data-theme="dark"] .chat-intro .hash { background: var(--lime); color: var(--ink); }
.chat-intro .big { letter-spacing: -.02em; font-size: 26px; }
.day { text-transform: none; font-weight: 500; }
.day::before, .day::after { content: ""; display: inline-block; width: 40px; height: 1px; background: var(--border); vertical-align: middle; margin: 0 10px; }

/* messages */
.msg .bubble { border-radius: 20px; font-size: 15px; }
.msg-group.me .msg .bubble { background: var(--bubble-me); background-attachment: scroll; color: var(--bubble-me-text); }
.msg-group:not(.me) .msg:not(.first) .bubble, .msg-group:not(.me) .msg:not(.last) .bubble { border-top-left-radius: 20px; border-bottom-left-radius: 20px; }
.msg-group.me .msg:not(.first) .bubble, .msg-group.me .msg:not(.last) .bubble { border-top-right-radius: 20px; border-bottom-right-radius: 20px; }
.msg-group:not(.me) .msg.last .bubble { border-bottom-left-radius: 6px; }
.msg-group.me .msg.last .bubble { border-bottom-right-radius: 6px; }
.msg .bubble .mention { background: var(--lime); color: var(--ink); }
.msg-group.me .msg .bubble .mention { background: var(--lime); color: var(--ink); }
[data-theme="dark"] .msg-group.me .msg .bubble .mention { background: var(--ink); color: var(--lime); }
.msg.mentioned .bubble { box-shadow: 0 0 0 2px var(--lime); }
.msg .react.mine { border-color: var(--teal-deep); background: rgba(167,139,250,.12); }
.msg .actions { border-radius: 14px; }
.msg .actions button { border-radius: 10px; }
.heart-pop { font-size: 52px; filter: drop-shadow(0 0 12px rgba(116,58,251,.9)); }

/* composer */
.composer { border-radius: 20px; background: var(--bg2); border-color: transparent; padding: 6px 6px 6px 8px; }
.composer:focus-within { border-color: var(--border); background: var(--bg); box-shadow: 0 0 0 4px var(--lime-soft); }
.composer .send { width: 36px; height: 36px; padding: 0; border-radius: 12px; background: var(--primary-bg); color: var(--primary-text); display: grid; place-items: center; }
.composer .send:hover { background: var(--primary-hover); color: var(--primary-text); }
.reply-bar, .pending { border-radius: 16px 16px 0 0; }

/* calls */
.stage { background: #0E0D12; }
.tile { border-radius: 22px; background: #1C1A22; }
.tile.speaking { box-shadow: inset 0 0 0 3px var(--lime), 0 0 24px rgba(116,58,251,.35); }
.ctrl { border-radius: 16px; }
.ctrl.on { background: var(--lime); color: var(--ink); }
.ctrl.leave { border-radius: 16px; }
.join-voice { background: var(--ig-soft); }
.join-voice h2 { letter-spacing: -.02em; font-size: 30px; }
.incoming { border-radius: 26px; background: #17151C; box-shadow: 0 0 0 1px rgba(116,58,251,.25), 0 20px 60px rgba(0,0,0,.5); }
.incoming .accept { background: var(--lime); color: var(--ink); }

/* modals */
.overlay { background: rgba(14,13,18,.55); backdrop-filter: blur(6px); }
.modal { border-radius: 26px; }
.modal-head { justify-content: flex-start; padding: 0 22px; height: 60px; border-bottom: 0; font-size: 19px; letter-spacing: -.02em; }
.modal-head .back + span { margin-left: 34px; }
.modal-body { padding: 4px 22px 22px; }
.modal-foot { border-top: 0; padding: 0 22px 20px; }
.modal.wide .modal-head { border-bottom: 1px solid var(--border2); }
.settings-nav button { border-radius: 12px; }
.settings-nav button.active { background: var(--lime-soft); }
.settings-nav .lbl, .field label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.choice { border-radius: 16px; } .choice.sel { border-color: var(--teal-deep); background: rgba(167,139,250,.08); }
.menu { border-radius: 16px; } .menu button { border-radius: 10px; }
.tip { border-radius: 10px; background: var(--ink); color: #fff; }
[data-theme="dark"] .tip { background: var(--lime); color: var(--ink); }
.toast { border-radius: 14px; background: var(--ink); color: #fff; }
[data-theme="dark"] .toast { background: var(--lime); color: var(--ink); }
.toast.err { background: var(--red); color: #fff; }
.story .add { background: var(--ink); color: var(--lime); }
[data-theme="dark"] .story .add { background: var(--lime); color: var(--ink); }
.bg-lime { background: linear-gradient(160deg, #743AFB, #A78BFA); color: #17151C; }
.bg-sunset { background: linear-gradient(160deg, #FFB86B, #F2705E 55%, #3B82F6); }
.profile .pbanner { background: var(--ig) center/cover; }
.invite-card .ib { background: var(--ig) center/cover; }
.banner-up { border-radius: 18px; }

/* ---------- auth: split hero ---------- */
.auth { display: grid; align-items: stretch; justify-content: stretch; grid-template-columns: 1.1fr 1fr; gap: 0; padding: 0; min-height: 100vh; background: var(--app-bg); }
.auth-hero { position: relative; overflow: hidden; background: #0E0D12; color: #fff; margin: 12px 0 12px 12px; border-radius: 28px; display: flex; align-items: flex-end; padding: 56px; min-height: calc(100vh - 24px); }
.auth-hero .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; animation: drift 14s ease-in-out infinite alternate; }
.auth-hero .o1 { width: 420px; height: 420px; background: #743AFB; top: -120px; right: -80px; }
.auth-hero .o2 { width: 360px; height: 360px; background: #A78BFA; bottom: 60px; right: 120px; opacity: .55; animation-delay: -5s; }
.auth-hero .o3 { width: 300px; height: 300px; background: #3B82F6; top: 120px; left: -100px; opacity: .45; animation-delay: -9s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.hero-copy { position: relative; z-index: 1; max-width: 460px; }
.hero-copy .wordmark { color: #fff; margin-bottom: 28px; }
.hero-copy h1 { font-size: 64px; line-height: .98; letter-spacing: -.045em; margin: 0 0 16px; font-weight: 700; }
.hero-copy p { font-size: 18px; color: rgba(255,255,255,.72); margin: 0 0 22px; }
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chips span { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px; font-size: 14px; }
.float-card { position: absolute; z-index: 1; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(16px); padding: 10px 16px 10px 10px; border-radius: 18px; font-size: 13px; animation: bob 6s ease-in-out infinite; }
.float-card b { display: block; font-size: 14px; } .float-card span { color: rgba(255,255,255,.7); }
.float-card .fc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.float-card .fc-dot { width: 36px; height: 36px; border-radius: 12px; background: #743AFB; box-shadow: 0 0 18px #743AFB; }
.fc1 { top: 64px; left: 56px; } .fc2 { top: 170px; right: 56px; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.auth-panel { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 380px; background: transparent; border: 0; padding: 0; text-align: left; }
.auth-card .wordmark { margin: 0 0 36px; font-size: 34px; }
.auth-card h2 { font-size: 30px; letter-spacing: -.035em; margin: 0 0 8px; }
.auth-card .input { height: 48px; border-radius: 14px; font-size: 15px; margin-bottom: 10px; background: var(--bg); border-color: var(--border); }
.auth-card .btn.primary { height: 48px; border-radius: 14px; margin-top: 6px; font-size: 15px; }
.auth-card .or { margin: 16px 0; font-weight: 500; }
.auth-card .gbtn .btn { height: 48px !important; border-radius: 14px; font-size: 15px; }
.auth-switch { background: none; border: 0; padding: 18px 0 0; text-align: left; color: var(--text2); }
.auth-switch button { color: var(--teal-deep); }
[data-theme="dark"] .auth-switch button { color: var(--lime); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-hero { min-height: 300px; margin: 12px 12px 0; padding: 32px; } .hero-copy h1 { font-size: 44px; } .float-card { display: none; } }

@media (max-width: 760px) { .app { padding: 0; gap: 0; } .rail, .side, .main { border-radius: 0; } }


/* =====================================================================
   NEW LOGO + PURPLE ACCENT, ADMIN, CATEGORIES, SPOTLIGHT
   ===================================================================== */
:root { --on-accent: #fff; --lime-soft: #EFE9FF; }
[data-theme="dark"] { --primary-text: #fff; --bubble-me-text: #fff; --lime-soft: rgba(116,58,251,.18); }
::selection { color: #fff; }
.btn.grad, .rail-btn.add:hover, .tab .c, .incoming .accept, .ctrl.on, .bg-lime { color: #fff; }
[data-theme="dark"] .rail-btn.home, [data-theme="dark"] .badge, [data-theme="dark"] .nav-item .count, [data-theme="dark"] .tab.active,
[data-theme="dark"] .story .add, [data-theme="dark"] .chat-intro .hash, [data-theme="dark"] .toast, [data-theme="dark"] .tip { color: #fff; }
[data-theme="dark"] .msg-group.me .msg .bubble .mention { background: #fff; color: #743AFB; }
.msg .bubble .mention, .msg-group.me .msg .bubble .mention { color: #fff; }
.badge, .nav-item .count, .story .add { color: #fff; background: #743AFB; }
.chat-intro .hash { color: #fff; background: #0B0A10; }
.chat-intro .hash svg, .empty .art svg { color: inherit; }
[data-theme="dark"] .empty .art, [data-theme="dark"] .nav-item.active .n { color: #C4B5FD; }
.auth-switch button, [data-theme="dark"] .auth-switch button { color: #743AFB; }
[data-theme="dark"] .auth-switch button { color: #A78BFA; }

/* logo mark */
.mark { display: block; color: var(--text); }
.rail-btn.home { background: #0B0A10; }
[data-theme="dark"] .rail-btn.home { background: #1B1824; box-shadow: inset 0 0 0 1px #2A2633; }
.rail-btn.home .mark { width: 30px; height: 30px; color: #fff; }
.wordmark { display: inline-flex; align-items: center; gap: .26em; padding: 0; }
.wordmark::after { display: none; }
.wordmark .mark { width: 1.05em; height: 1.05em; }
.auth-hero .wordmark .mark { color: #fff; }
.splash .wordmark { font-size: 56px; }

/* owner / admin badges */
.rbadge { display: inline-flex; vertical-align: -3px; margin-left: 5px; flex: none; }
.rbadge svg { width: 16px; height: 16px; }
.pname .rbadge svg { width: 20px; height: 20px; }
.main-head .t .rbadge svg { width: 17px; height: 17px; }
.admin-btn { background: var(--bg3); }
.admin-btn svg { width: 24px; height: 24px; }
.row-line.is-banned { opacity: .65; }
.admin-modal .row-line { gap: 14px; }

/* categories */
.cat-head { cursor: pointer; user-select: none; border-radius: 10px; padding: 14px 6px 4px 8px; }
.cat-head:hover { color: var(--text); }
.cat-head .cat-name { display: flex; align-items: center; gap: 4px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-head .cat-tools { display: flex; gap: 0; opacity: 0; transition: opacity .12s; }
.cat-head:hover .cat-tools, .cat-head:focus-within .cat-tools { opacity: 1; }
.cat-head .icon-btn { width: 26px; height: 26px; color: var(--text2); }

/* spotlight: click a tile to zoom it */
.tile { cursor: zoom-in; transition: box-shadow .15s; }
.tile.focus { cursor: zoom-out; }
.stage .grid.has-focus { grid-template-columns: repeat(auto-fill, minmax(140px, 180px)); grid-template-rows: minmax(0, 1fr) 104px; grid-auto-rows: 104px; align-content: stretch; justify-content: center; }
.stage .grid.has-focus .tile { aspect-ratio: auto; height: 100%; min-height: 0; max-height: none; }
.stage .grid.has-focus .tile.focus { grid-column: 1 / -1; grid-row: 1; }
.stage .grid.has-focus .tile:not(.focus) .tile-av .av { width: 44px !important; height: 44px !important; font-size: 44px !important; }
.stage .grid.has-focus .tile:not(.focus) .lbl { font-size: 11px; padding: 2px 8px; left: 6px; bottom: 6px; }
.tile.focus video { object-fit: contain; }
.tile.focus::after { content: "Click to zoom out"; position: absolute; top: 10px; right: 12px; font-size: 12px; background: rgba(0,0,0,.5); padding: 3px 9px; border-radius: 8px; opacity: 0; transition: opacity .2s; }
.tile.focus:hover::after { opacity: 1; }
.tile.has-video:not(.focus):hover::after { content: "Click to zoom in"; position: absolute; top: 8px; right: 10px; font-size: 11px; background: rgba(0,0,0,.5); padding: 2px 8px; border-radius: 8px; }

/* sign-in: single centered card (no hero side) */
.auth { grid-template-columns: 1fr; place-items: center; background: radial-gradient(900px 500px at 50% -10%, rgba(116,58,251,.16), transparent 70%), var(--app-bg); }
.auth-panel { width: 100%; min-height: 100vh; }
.auth-card { background: var(--bg); border-radius: 26px; padding: 36px 34px 28px; box-shadow: 0 10px 40px rgba(23,21,28,.08); max-width: 420px; }
.auth-card .wordmark { margin-bottom: 28px; }
