/* ── Reset & Variables ──────────────────────────────────────────────────── */
:root {
  --bg:       #0a0f1e;
  --bg2:      #0f172a;
  --bg3:      #1e293b;
  --border:   #1e293b;
  --text:     #e2e8f0;
  --muted:    #64748b;
  --blue:     #3b82f6;
  --green:    #10b981;
  --purple:   #8b5cf6;
  --orange:   #f59e0b;
  --cyan:     #06b6d4;
  --red:      #ef4444;
  --nav-h:    58px;
  --radius:   12px;
  --shadow:   0 4px 24px rgba(0,0,0,.4);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', sans-serif; font-size: 14px; line-height: 1.6; }
a { color: var(--blue); text-decoration: none; }
button { cursor: pointer; border: none; outline: none; }
input, select, textarea { outline: none; }
code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: var(--bg3); padding: 2px 6px; border-radius: 4px; color: var(--cyan); }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg3); border-radius: 3px; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  background: rgba(10,15,30,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--text); margin-right: 16px; }
.nav-brand span { color: var(--muted); }
.nav-brand b { color: var(--blue); }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 8px;
  color: var(--muted); font-size: 13px; transition: all .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--bg3); }
.nav-links a.active { color: var(--blue); }
.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-user { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.btn-logout { background: var(--bg3); color: var(--muted); padding: 5px 12px; border-radius: 6px; font-size: 12px; transition: .2s; }
.btn-logout:hover { color: var(--red); }

/* ── Role Badges ─────────────────────────────────────────────────────────── */
.role-badge { font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.role-admin    { background: rgba(139,92,246,.2); color: var(--purple); border: 1px solid rgba(139,92,246,.3); }
.role-reseller { background: rgba(59,130,246,.2); color: var(--blue); border: 1px solid rgba(59,130,246,.3); }
.role-user     { background: rgba(16,185,129,.2); color: var(--green); border: 1px solid rgba(16,185,129,.3); }

/* ── Main content ────────────────────────────────────────────────────────── */
.main-content { margin-top: var(--nav-h); padding: 24px; min-height: calc(100vh - var(--nav-h)); }
.main-content.full-page { margin-top: 0; padding: 0; }

/* ── Page header ─────────────────────────────────────────────────────────── */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.page-header h2 { font-size: 22px; font-weight: 700; }
.breadcrumb { color: var(--muted); font-size: 13px; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(59,130,246,.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 20%, rgba(139,92,246,.15) 0%, transparent 50%),
              var(--bg);
  overflow: hidden;
}
#particles { position: absolute; inset: 0; pointer-events: none; }
.hero-inner { position: relative; text-align: center; padding: 40px 20px; max-width: 700px; }
.hero-logo { margin-bottom: 20px; animation: float 3s ease-in-out infinite; }
.hero-logo img { filter: drop-shadow(0 0 30px rgba(59,130,246,.5)); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero-title { font-size: clamp(40px,8vw,72px); font-weight: 800; letter-spacing: -2px; margin-bottom: 12px; }
.hero-title span { color: var(--blue); }
.hero-sub { color: var(--muted); font-size: 16px; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; justify-content: center; margin-bottom: 36px; flex-wrap: wrap; }
.hstat { text-align: center; }
.hstat-val { display: block; font-size: 32px; font-weight: 800; color: var(--blue); font-family: 'JetBrains Mono', monospace; }
.hstat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; padding: 12px 28px; border-radius: 10px;
  font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 8px;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(59,130,246,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59,130,246,.5); color: #fff; }
.btn-secondary { background: var(--bg3); color: var(--text); padding: 12px 28px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: .2s; }
.btn-secondary:hover { background: var(--border); }

/* ── Features ────────────────────────────────────────────────────────────── */
.features { padding: 60px 24px; max-width: 1100px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; }
.feat-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color .2s, transform .2s;
}
.feat-card:hover { border-color: var(--blue); transform: translateY(-4px); }
.feat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ic-blue   { background: rgba(59,130,246,.15); color: var(--blue); }
.ic-green  { background: rgba(16,185,129,.15); color: var(--green); }
.ic-purple { background: rgba(139,92,246,.15); color: var(--purple); }
.ic-orange { background: rgba(245,158,11,.15); color: var(--orange); }
.ic-cyan   { background: rgba(6,182,212,.15);  color: var(--cyan); }
.ic-red    { background: rgba(239,68,68,.15);  color: var(--red); }
.feat-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feat-card p  { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ── Site footer ─────────────────────────────────────────────────────────── */
.site-footer { text-align: center; padding: 24px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--border); }

/* ── Login ───────────────────────────────────────────────────────────────── */
#login-bg { position: fixed; inset: 0; z-index: 0; }
.login-wrap { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card {
  background: rgba(15,23,42,.85); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.08); border-radius: 20px;
  padding: 40px; width: 100%; max-width: 400px;
  box-shadow: var(--shadow);
  animation: slideUp .4s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo h2 { font-size: 28px; font-weight: 800; margin-top: 12px; }
.login-logo h2 span { color: var(--blue); }
.login-logo p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.alert-error { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input, .form-group input, .form-group select {
  width: 100%; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); padding: 10px 12px;
  font-size: 14px; font-family: inherit; transition: border-color .2s;
}
.input-icon input { padding-left: 40px; }
.form-group input:focus, .form-group select:focus, .input-icon input:focus { border-color: var(--blue); }
.btn-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff; padding: 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px; transition: opacity .2s;
}
.btn-login:hover { opacity: .9; }
.login-footer { text-align: center; margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ── Stat Cards ──────────────────────────────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; gap: 16px;
  position: relative; overflow: hidden; transition: transform .2s;
}
.stat-card::before { content:''; position:absolute; inset:0; opacity:.06; }
.sc-blue::before   { background: var(--blue); }
.sc-green::before  { background: var(--green); }
.sc-purple::before { background: var(--purple); }
.sc-orange::before { background: var(--orange); }
.stat-card:hover { transform: translateY(-3px); }
.sc-icon { width: 44px; height: 44px; border-radius: 10px; display:flex; align-items:center; justify-content:center; flex-shrink: 0; }
.sc-blue .sc-icon   { background: rgba(59,130,246,.15);  color: var(--blue); }
.sc-green .sc-icon  { background: rgba(16,185,129,.15);  color: var(--green); }
.sc-purple .sc-icon { background: rgba(139,92,246,.15);  color: var(--purple); }
.sc-orange .sc-icon { background: rgba(245,158,11,.15);  color: var(--orange); }
.sc-info { flex: 1; }
.sc-val   { display: block; font-size: 26px; font-weight: 800; font-family: 'JetBrains Mono', monospace; line-height: 1.1; }
.sc-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.sc-trend { font-size: 11px; font-weight: 600; color: var(--green); }

/* ── Charts ──────────────────────────────────────────────────────────────── */
.charts-row { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-bottom: 24px; }
@media(max-width:768px){ .charts-row{ grid-template-columns:1fr; } }
.chart-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.chart-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chart-header h3 { font-size: 14px; font-weight: 600; }
.chart-badge { background: var(--bg3); color: var(--muted); font-size: 11px; padding: 3px 8px; border-radius: 20px; }

/* ── Quick Actions ───────────────────────────────────────────────────────── */
.quick-actions { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.quick-actions h3 { font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.qa-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.qa-btn {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg3); color: var(--text);
  padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 500;
  transition: .2s; border: 1px solid var(--border);
}
.qa-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ── Table ───────────────────────────────────────────────────────────────── */
.table-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead tr { background: var(--bg3); }
.data-table th { padding: 12px 16px; text-align: left; font-weight: 600; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .5px; white-space: nowrap; }
.data-table td { padding: 12px 16px; border-top: 1px solid var(--border); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,.02); }
.empty-row { text-align: center; color: var(--muted); padding: 32px; }

/* ── Status dot ──────────────────────────────────────────────────────────── */
.status-dot { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.status-dot::before { content:''; width:8px; height:8px; border-radius: 50%; display:inline-block; }
.status-dot.active::before   { background: var(--green); box-shadow: 0 0 6px var(--green); }
.status-dot.inactive::before { background: var(--red); }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-add { background: linear-gradient(135deg,var(--blue),var(--purple)); color:#fff; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; }
.btn-sm { font-size: 11px; padding: 4px 10px; border-radius: 6px; font-weight: 500; transition: .15s; }
.btn-toggle { background: rgba(59,130,246,.15); color: var(--blue); border: 1px solid rgba(59,130,246,.2); }
.btn-toggle:hover { background: rgba(59,130,246,.25); }
.btn-del { background: rgba(239,68,68,.15); color: var(--red); border: 1px solid rgba(239,68,68,.2); }
.btn-del:hover { background: rgba(239,68,68,.25); }
.btn-cancel { background: var(--bg3); color: var(--muted); padding: 9px 18px; border-radius: 8px; font-size: 13px; }

/* ── Modal ───────────────────────────────────────────────────────────────── */
.modal-overlay { display:none; position:fixed; inset:0; z-index:200; background:rgba(0,0,0,.6); backdrop-filter:blur(4px); align-items:center; justify-content:center; }
.modal-overlay.show { display:flex; }
.modal-box { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; padding: 28px; width: 100%; max-width: 440px; box-shadow: var(--shadow); }
.modal-box h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

/* ── Reseller Cards ──────────────────────────────────────────────────────── */
.reseller-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 16px; }
.reseller-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.rc-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--purple)); display:flex; align-items:center; justify-content:center; font-size:18px; font-weight:700; margin-bottom:12px; }
.rc-info h4 { font-size: 15px; font-weight: 600; }
.rc-uname, .rc-email { display: block; font-size: 12px; color: var(--muted); }
.rc-stats { display: flex; gap: 16px; margin: 12px 0; }
.rc-sv { display: block; font-size: 16px; font-weight: 700; }
.rc-sl { font-size: 11px; color: var(--muted); }
.rc-actions { display: flex; gap: 8px; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state svg { margin: 0 auto 16px; display: block; opacity: .4; }

/* ── Sync ─────────────────────────────────────────────────────────────────── */
.sync-status-bar { display: flex; align-items: center; gap: 12px; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; }
.sync-indicator { width: 12px; height: 12px; border-radius: 50%; background: var(--muted); transition: .3s; }
.sync-indicator.online  { background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.sync-indicator.offline { background: var(--red); }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.5} }
#syncTime { margin-left: auto; font-size: 12px; color: var(--muted); }
.sync-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 16px; }
.sync-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.sync-card-icon { width: 52px; height: 52px; border-radius: 12px; display:flex; align-items:center; justify-content:center; margin-bottom:14px; }
.sync-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.sync-card p  { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.btn-sync { display: flex; align-items: center; gap: 8px; background: var(--bg3); color: var(--text); padding: 9px 16px; border-radius: 8px; font-size: 13px; transition: .2s; border: 1px solid var(--border); }
.btn-sync:hover { border-color: var(--blue); color: var(--blue); }
.sync-log { margin-top: 12px; background: #0a0f1e; border-radius: 8px; padding: 10px; font-family: 'JetBrains Mono',monospace; font-size: 11px; max-height: 120px; overflow-y: auto; }
.log-info  { display: block; color: var(--cyan); }
.log-step  { display: block; color: var(--muted); margin-top: 4px; }
.log-step:last-child { color: var(--green); }

/* ── Chat ────────────────────────────────────────────────────────────────── */
.chat-layout { display: flex; height: calc(100vh - var(--nav-h) - 48px); gap: 16px; }
.chat-sidebar { width: 220px; flex-shrink: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.cs-header { padding: 16px; border-bottom: 1px solid var(--border); }
.cs-header h3 { font-size: 13px; font-weight: 600; }
.cs-rooms { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.room-btn { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; text-align: left; transition: .15s; }
.room-btn:hover, .room-btn.active { background: var(--bg3); color: var(--text); }
.room-btn.active { color: var(--blue); }
.cs-online { padding: 12px; border-top: 1px solid var(--border); flex: 1; overflow-y: auto; }
.cs-online h4 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.cs-online ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cs-online li { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.ol-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.cs-online em { font-style: normal; color: var(--muted); font-size: 10px; }
.btn-call { margin-left: auto; background: none; font-size: 13px; padding: 2px; cursor: pointer; border: none; }
.cs-voice { padding: 12px; border-top: 1px solid var(--border); }
.cs-voice h4 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.btn-voice { display: flex; align-items: center; gap: 6px; width: 100%; background: var(--bg3); color: var(--muted); padding: 8px 12px; border-radius: 8px; font-size: 12px; transition: .2s; border: 1px solid var(--border); }
.btn-voice.active { background: rgba(16,185,129,.15); color: var(--green); border-color: rgba(16,185,129,.3); }
.call-status { font-size: 11px; color: var(--green); margin-top: 6px; min-height: 16px; }
.chat-main { flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.cm-header { padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.typing-indicator { margin-left: auto; font-size: 11px; color: var(--muted); font-style: italic; }
.cm-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg-system { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.msg-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-row.mine { flex-direction: row-reverse; }
.msg-avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,var(--blue),var(--purple)); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.msg-bubble { max-width: 70%; background: var(--bg3); border-radius: 12px 12px 12px 4px; padding: 10px 14px; font-size: 13px; }
.msg-bubble.mine { background: rgba(59,130,246,.2); border-radius: 12px 12px 4px 12px; }
.msg-sender { display: block; font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.msg-sender.admin    { color: var(--purple); }
.msg-sender.reseller { color: var(--blue); }
.msg-sender.user     { color: var(--green); }
.msg-text { display: block; word-break: break-word; }
.msg-time { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; text-align: right; }
.msg-img img { max-width: 220px; max-height: 180px; border-radius: 8px; cursor: zoom-in; display: block; margin-top: 6px; }
.msg-video { max-width: 240px; border-radius: 8px; display: block; margin-top: 6px; }
.msg-audio { width: 200px; margin-top: 6px; }
.msg-file { display: inline-flex; align-items: center; gap: 6px; background: var(--bg2); border: 1px solid var(--border); padding: 6px 10px; border-radius: 8px; font-size: 12px; color: var(--blue); margin-top: 6px; }
.cm-input { border-top: 1px solid var(--border); padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.file-preview { display: flex; align-items: center; gap: 8px; background: var(--bg3); border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--muted); }
.file-preview button { background: none; color: var(--muted); font-size: 14px; line-height: 1; }
.input-row { display: flex; align-items: center; gap: 8px; }
.attach-btn { width: 36px; height: 36px; border-radius: 8px; background: var(--bg3); display:flex; align-items:center; justify-content:center; cursor:pointer; color: var(--muted); transition:.15s; flex-shrink:0; }
.attach-btn:hover { color: var(--blue); }
.msg-input { flex: 1; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 14px; font-size: 13px; font-family: inherit; transition: border-color .2s; }
.msg-input:focus { border-color: var(--blue); }
.send-btn { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(135deg,var(--blue),var(--purple)); color:#fff; display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:.2s; }
.send-btn:hover { opacity:.85; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:640px){
  .chat-layout{ flex-direction:column; height:auto; }
  .chat-sidebar{ width:100%; flex-direction:row; flex-wrap:wrap; height:auto; }
  .cs-rooms{ flex-direction:row; }
  .navbar{ padding:0 12px; }
  .nav-links a span{ display:none; }
}
