/* ── Reset & Variables ───────────────────────────────────────────────────── */
:root {
  --bg:        #0b0b13;
  --s1:        #11111c;
  --s2:        #17172a;
  --s3:        #1e1e32;
  --border:    #2a2a42;
  --border2:   #35355a;
  --accent:    #7c6ff7;
  --accent-h:  #9485ff;
  --green:     #4ecca3;
  --red:       #f05e5e;
  --yellow:    #f0b35e;
  --text:      #e6e6f0;
  --muted:     #7070a0;
  --muted2:    #4a4a6a;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 4px 24px rgba(0,0,0,.5);
  --nav-bg:    rgba(11,11,19,.85);
  --overlay-bg: rgba(11,11,19,.92);
}

html[data-theme="light"] {
  --bg:        #f5f5fa;
  --s1:        #ffffff;
  --s2:        #eeeef6;
  --s3:        #e4e4ef;
  --border:    #d0d0e4;
  --border2:   #bcbcd0;
  --accent:    #6c5fe6;
  --accent-h:  #5a4ed0;
  --green:     #2aa87a;
  --red:       #d44040;
  --yellow:    #c9832a;
  --text:      #1a1a2e;
  --muted:     #6060a0;
  --muted2:    #9898b8;
  --shadow:    0 4px 24px rgba(0,0,0,.12);
  --nav-bg:    rgba(255,255,255,.9);
  --overlay-bg: rgba(245,245,250,.94);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
button { cursor: pointer; border: none; background: none; color: inherit; font: inherit; }
input  { font: inherit; color: inherit; background: none; border: none; outline: none; }
a { color: var(--accent); text-decoration: none; }
svg { display: block; flex-shrink: 0; }

/* ── Common Utilities ────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.dropdown-only { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: 14px; transition: all .18s; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 0 20px rgba(124,111,247,.35);
}
.btn-primary:hover { background: var(--accent-h); transform: translateY(-1px); }
.btn-secondary {
  background: var(--s3); color: var(--text);
  border: 1px solid var(--border2);
}
.btn-secondary:hover { background: var(--border); border-color: var(--accent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #d94f4f; }

/* Theme toggle */
.theme-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--muted);
  cursor: pointer; transition: all .15s;
}
.theme-btn:hover { background: var(--border); color: var(--text); border-color: var(--accent); }
.theme-btn svg { width: 16px; height: 16px; }
.lang-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); color: var(--muted);
  cursor: pointer; transition: all .15s;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.lang-btn:hover { background: var(--border); color: var(--text); border-color: var(--accent); }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--s3); border: 1px solid var(--border2); border-radius: 30px;
  padding: 10px 22px; font-size: 14px; z-index: 9999;
  box-shadow: var(--shadow); animation: fadeUp .25s ease;
  pointer-events: none; white-space: nowrap;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  display: flex; align-items: center; justify-content: center; z-index: 5000;
  backdrop-filter: blur(4px);
}
.modal {
  background: var(--s2); border: 1px solid var(--border2); border-radius: 14px;
  padding: 32px; width: 100%; max-width: 360px; box-shadow: var(--shadow);
}
.modal h3 { font-size: 18px; margin-bottom: 16px; }
.modal input {
  width: 100%; background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px;
  font-size: 15px;
}
.modal input:focus { border-color: var(--accent); }
.modal .btn { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.home-page { overflow-y: auto; }

/* ── Auth / top navbar ───────────────────────────────────────────────────── */
.home-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: var(--nav-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.home-nav-logo {
  font-size: 22px; font-weight: 800; letter-spacing: -1px;
  display: flex; align-items: center; gap: 8px;
}
.home-nav-logo span:first-of-type { color: var(--accent); }
.nav-logo-img { width: 34px; height: 34px; display: block; flex-shrink: 0; }
.home-nav-right { display: flex; align-items: center; gap: 10px; }
.auth-login-btn {
  background: var(--accent); color: #fff; border-radius: var(--radius-sm);
  padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s; border: none;
}
.auth-login-btn:hover { background: var(--accent-h); }
.auth-user-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 6px 12px;
  font-size: 13px; color: var(--text);
}
.auth-user-badge .auth-phone { color: var(--muted); font-size: 12px; font-family: monospace; }
.auth-logout-btn {
  background: none; border: 1px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--muted); padding: 6px 12px; font-size: 12px; cursor: pointer;
  transition: all .15s;
}
.auth-logout-btn:hover { border-color: var(--red); color: var(--red); }

/* ── Auth modal ──────────────────────────────────────────────────────────── */
.auth-modal-step { display: flex; flex-direction: column; gap: 14px; }
.auth-modal-step.hidden { display: none !important; }
.auth-phone-input {
  width: 100%; background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 16px;
  color: var(--text); direction: ltr; letter-spacing: 1px; outline: none;
  transition: border-color .18s;
}
.auth-phone-input:focus { border-color: var(--accent); }
.otp-input-wrap { display: flex; gap: 8px; justify-content: center; }
.otp-digit {
  width: 46px; height: 56px; text-align: center;
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); font-size: 24px; font-weight: 700;
  color: var(--text); outline: none; transition: border-color .15s;
}
.otp-digit:focus { border-color: var(--accent); }
.otp-countdown { font-size: 13px; color: var(--muted); text-align: center; }
.otp-resend-btn {
  background: none; border: none; color: var(--accent); font-size: 13px;
  cursor: pointer; text-decoration: underline; padding: 0;
}
.otp-resend-btn:disabled { color: var(--muted); text-decoration: none; cursor: default; }
.auth-phone-display {
  font-size: 13px; color: var(--muted); text-align: center;
  direction: ltr; letter-spacing: 0.5px;
}
.auth-change-phone {
  background: none; border: none; color: var(--accent); font-size: 12px;
  cursor: pointer; text-decoration: underline; padding: 0 4px;
}

/* Hero logo row */
.hero-logo-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 16px;
}
.hero-logo-img { width: 72px; height: 72px; display: block; flex-shrink: 0; }
.hero-logo-wrap .logo { margin-bottom: 0; }

/* Hero */
.hero {
  min-height: calc(100vh - 53px);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 40px 20px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(124,111,247,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 70% 70%, rgba(78,204,163,.12) 0%, transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative; text-align: center; width: 100%; max-width: 560px;
}
.logo {
  font-size: 52px; font-weight: 800; letter-spacing: -2px; margin-bottom: 16px;
  display: inline-block;
}
.logo-zi   { color: var(--accent); }
.logo-room { color: var(--text); }

.hero-title {
  font-size: clamp(24px, 5vw, 36px); font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 12px;
}
.hero-sub {
  color: var(--muted); font-size: 17px; margin-bottom: 36px;
}

/* Name input */
.name-row {
  margin-bottom: 32px;
}
.name-input-wrap {
  display: flex; align-items: center; gap: 0;
  background: var(--s2); border: 1px solid var(--border2); border-radius: var(--radius);
  overflow: hidden; max-width: 340px; margin: 0 auto;
  transition: border-color .18s;
}
.name-input-wrap:focus-within { border-color: var(--accent); }
.name-input-icon { padding: 0 12px; color: var(--muted); font-size: 18px; }
.name-input-wrap input {
  flex: 1; padding: 12px 14px 12px 0; font-size: 15px;
}

/* Action cards */
.action-cards {
  display: flex; gap: 0; align-items: stretch;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: 14px; overflow: hidden;
}
.action-card { flex: 1; padding: 28px 24px; }
.action-card:first-child { border-right: 1px solid var(--border); }
.action-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.action-card p  { color: var(--muted); font-size: 13px; margin-bottom: 18px; line-height: 1.4; }
.action-icon { font-size: 28px; margin-bottom: 12px; }
.action-card .btn { width: 100%; }

.join-row {
  display: flex; gap: 8px;
}
.join-row input {
  flex: 1; background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 15px;
  letter-spacing: 1px; transition: border-color .18s;
}
.join-row input:focus { border-color: var(--accent); }

@media (max-width: 540px) {
  .action-cards { flex-direction: column; }
  .action-card:first-child { border-right: none; border-bottom: 1px solid var(--border); }
}

/* My rooms section */
.my-rooms-section {
  margin-top: 28px; text-align: left;
}
.my-rooms-header {
  margin-bottom: 12px;
}
.my-rooms-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--muted);
}
.my-rooms-list {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.my-room-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 11px 14px;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color .18s, transform .15s;
  text-align: left; min-width: 130px; max-width: 180px;
  color: var(--text);
}
.my-room-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
}
.my-room-label {
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.my-room-sub {
  font-size: 10px; color: var(--muted2); letter-spacing: 0.5px;
  font-family: 'SF Mono', 'Fira Mono', 'Roboto Mono', monospace;
}
.my-room-meta {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
}
.my-room-role {
  font-size: 10px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; background: var(--s3);
  white-space: nowrap;
}
.my-room-role.my-room-role-owner       { color: var(--accent); }
.my-room-role.my-room-role-manager     { color: var(--green);  }
.my-room-role.my-room-role-contributor { color: var(--yellow); }
.my-room-role.my-room-role-member      { color: var(--muted);  }
.my-room-lock { color: var(--muted); flex-shrink: 0; }
.my-room-time { font-size: 10px; color: var(--muted2); margin-left: auto; }

/* Features section */
.features {
  padding: 80px 20px; max-width: 900px; margin: 0 auto;
}
.features > h2 {
  text-align: center; font-size: 26px; font-weight: 700;
  letter-spacing: -0.5px; margin-bottom: 48px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--s1); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 22px;
  transition: border-color .18s, transform .18s;
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-icon { font-size: 26px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.feature-card p  { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Home footer */
.home-footer {
  text-align: center; padding: 32px 20px;
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--border);
}

/* ── User menu (verified user icon + dropdown in home nav) ───────────────── */
.user-menu-wrap { position: relative; }
.user-icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; flex-shrink: 0;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: 50%; color: var(--text); cursor: pointer;
  transition: all .15s;
}
.user-icon-btn:hover { background: var(--border); border-color: var(--accent); }
.user-icon-btn svg  { width: 18px; height: 18px; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px; z-index: 1000;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 8px 0; animation: fadeUp .18s ease;
}
.user-dd-phone {
  padding: 10px 16px 4px;
  font-size: 13px; font-family: monospace; letter-spacing: 0.5px;
  color: var(--muted); direction: ltr;
}
.user-dd-balance {
  padding: 4px 16px 10px; font-size: 13px; color: var(--muted2);
}
.user-dd-balance strong { color: var(--green); font-size: 15px; }
.user-dd-divider { height: 1px; background: var(--border); margin: 4px 0; }
.user-dd-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 9px 16px;
  font-size: 13px; text-align: left; color: var(--text);
  cursor: pointer; background: none; border: none;
  transition: background .12s;
}
.user-dd-btn:hover { background: var(--s3); }
.user-dd-logout { color: var(--red); }
.user-dd-logout:hover { background: rgba(240,94,94,.08); }
html[dir="rtl"] .user-dropdown { right: auto; left: 0; }
html[dir="rtl"] .user-dd-btn   { text-align: right; }

/* ── Wallet modal ─────────────────────────────────────────────────────────── */
.wallet-modal {
  max-width: 440px; max-height: 85vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 16px;
}
.wallet-modal .btn { width: auto; }
.wallet-topup-form .btn { width: 100%; }
.wallet-modal-header {
  display: flex; align-items: center; justify-content: space-between;
}
.wallet-modal-header h3 { margin-bottom: 0; }
.wallet-modal-close {
  background: none; border: none; color: var(--muted);
  font-size: 18px; cursor: pointer; padding: 4px 8px;
  border-radius: var(--radius-sm); transition: color .12s; line-height: 1;
}
.wallet-modal-close:hover { color: var(--text); }
.wallet-balance-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  background: var(--s3); border: 1px solid var(--border2); border-radius: var(--radius-sm);
}
.wallet-balance-label { font-size: 13px; color: var(--muted); }
.wallet-balance-val   { font-size: 18px; font-weight: 700; color: var(--green); }
.wallet-add-credit-btn { font-size: 13px; padding: 7px 16px; }
.wallet-topup-form {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px; background: var(--s3);
  border: 1px solid var(--border2); border-radius: var(--radius-sm);
}
.wallet-amount-input {
  width: 100%; padding: 10px 14px;
  background: var(--s2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); font-size: 15px; color: var(--text);
  outline: none; direction: ltr; transition: border-color .15s;
}
.wallet-amount-input:focus { border-color: var(--accent); }
.wallet-amount-input[type=number]::-webkit-inner-spin-button,
.wallet-amount-input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.wallet-amount-input[type=number] { -moz-appearance: textfield; }
.wallet-gateway-label { font-size: 12px; color: var(--muted); font-weight: 600; }
.wallet-gateway-list  { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-gateway-btn {
  padding: 7px 14px; border-radius: var(--radius-sm);
  background: var(--s2); border: 1px solid var(--border2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; color: var(--text);
}
.wallet-gateway-btn:hover { border-color: var(--accent); }
.wallet-gateway-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.wallet-tx-list { display: flex; flex-direction: column; gap: 8px; }
.wallet-tx-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  background: var(--s3); border-radius: var(--radius-sm);
}
.wallet-tx-badge {
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 12px; white-space: nowrap; flex-shrink: 0;
}
.wallet-tx-badge.credit { background: rgba(78,204,163,.15); color: var(--green); }
.wallet-tx-badge.debit  { background: rgba(240,94,94,.15);  color: var(--red);   }
.wallet-tx-badge.refund { background: rgba(240,179,94,.15); color: var(--yellow);}
.wallet-tx-info { flex: 1; min-width: 0; }
.wallet-tx-reason {
  font-size: 13px; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wallet-tx-date { font-size: 11px; color: var(--muted2); margin-top: 2px; }
.wallet-tx-amount-val {
  font-size: 14px; font-weight: 700; flex-shrink: 0; direction: ltr;
}
.wallet-tx-amount-val.credit { color: var(--green); }
.wallet-tx-amount-val.debit  { color: var(--red);   }
.wallet-tx-amount-val.refund { color: var(--yellow); }
.wallet-pagination {
  display: flex; align-items: center; justify-content: space-between; padding-top: 4px;
}
.wallet-page-btn {
  background: none; border: 1px solid var(--border2); border-radius: var(--radius-sm);
  color: var(--muted); font-size: 12px; padding: 5px 12px; cursor: pointer;
  transition: all .15s;
}
.wallet-page-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--text); }
.wallet-page-btn:disabled { opacity: .4; cursor: default; }
.wallet-page-info { font-size: 12px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   ROOM PAGE
   ═══════════════════════════════════════════════════════════════════════════ */
.room-page {
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh; /* 100dvh fixes mobile browser toolbar cutoff */
  overflow: hidden;
}

/* ── Room Header ─────────────────────────────────────────────────────────── */
.room-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px; height: 52px; flex-shrink: 0;
  background: var(--s1); border-bottom: 1px solid var(--border);
  z-index: 100;
}
.room-header-left  { display: flex; align-items: center; gap: 12px; }
.room-header-center{ display: flex; align-items: center; gap: 16px; }
.room-header-right { display: flex; align-items: center; gap: 10px; }

/* Desktop: hamburger hidden, dropdown inline */
.header-menu-btn { display: none; }
.header-dropdown-panel { display: flex; align-items: center; gap: 10px; }

.room-logo {
  font-size: 18px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 7px;
  direction: ltr; /* always LTR — "Zi" must precede "Room" */
}
.room-logo span:first-of-type { color: var(--accent); }
.room-logo-img { width: 28px; height: 28px; display: block; flex-shrink: 0; }

.room-code-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 4px 12px;
  font-size: 13px; font-family: monospace; letter-spacing: 1px;
  cursor: pointer; transition: border-color .18s;
}
.room-code-pill:hover { border-color: var(--accent); }
.room-code-pill svg { width: 13px; height: 13px; opacity: .6; }

.share-room-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: transparent; border: 1px solid var(--border2);
  cursor: pointer; color: var(--muted); transition: color .18s, border-color .18s;
}
.share-room-btn:hover { color: var(--text); border-color: var(--accent); }
.share-room-btn svg { width: 14px; height: 14px; }

/* Share modal */
.share-modal { max-width: 340px; }
.share-qr-wrap {
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; width: 180px; height: 180px;
  background: #fff; border-radius: 10px; padding: 8px;
}
.share-qr-wrap canvas, .share-qr-wrap img { display: block; width: 100% !important; height: 100% !important; }
.share-link-row { display: flex; gap: 8px; align-items: stretch; }
.share-link-input {
  flex: 1; background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 12px; font-family: monospace; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 0;
}
.share-copy-btn {
  flex-shrink: 0; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .18s;
}
.share-copy-btn:hover { opacity: .82; }

.room-name-display {
  font-size: 15px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}

.participants-badge {
  display: flex; align-items: center; gap: 5px;
  color: var(--muted); font-size: 13px;
}
.participants-badge svg { width: 15px; height: 15px; }

.room-timer { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

.leave-btn {
  background: rgba(240,94,94,.15); color: var(--red);
  border: 1px solid rgba(240,94,94,.3);
  border-radius: var(--radius-sm); padding: 6px 16px; font-weight: 600;
  font-size: 13px; transition: all .18s;
}
.leave-btn:hover { background: var(--red); color: #fff; }

/* ── Room Body ───────────────────────────────────────────────────────────── */
.room-body {
  display: flex; flex: 1; overflow: hidden; position: relative;
}

/* Video area */
.video-area {
  flex: 1; position: relative; background: var(--bg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}

/* Video grid */
.video-grid {
  display: grid; width: 100%; height: 100%;
  gap: 6px; padding: 6px;
  align-items: center; justify-items: center;
}
.video-tile {
  position: relative; background: var(--s2);
  border-radius: 10px; overflow: hidden;
  width: 100%; height: 100%;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.video-tile.speaking { border-color: var(--green); }
.tile-inner {
  position: absolute; inset: 0;
  transform-origin: center;
  will-change: transform;
}
.tile-inner video {
  width: 100%; height: 100%; object-fit: contain; background: #000;
  transform: scaleX(-1); /* mirror local video */
}
.video-tile.remote .tile-inner video { transform: none; }
.video-tile.screen-share .tile-inner video { transform: none; }

.tile-label {
  position: absolute; bottom: 8px; left: 10px;
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.6); border-radius: 5px;
  padding: 3px 8px; font-size: 12px; font-weight: 600;
}
.tile-label .mic-off { color: var(--red); font-size: 11px; }

.tile-hand {
  position: absolute; top: 8px; right: 8px;
  font-size: 20px; animation: bounce .6s infinite alternate;
}
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(-4px); } }

.tile-no-video {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: var(--accent);
  background: var(--s2);
}

/* Pin button (top-left of tile) */
.tile-pin-btn {
  position: absolute; top: 8px; left: 8px; z-index: 10;
  background: rgba(0,0,0,.55); border: none; border-radius: 50%;
  width: 28px; height: 28px;
  display: none; align-items: center; justify-content: center;
  font-size: 14px; color: rgba(255,255,255,.85); transition: background .15s;
}
/* Non-admins: read-only indicator when tile is pinned */
.video-tile.pinned .tile-pin-btn { display: flex; background: rgba(124,111,247,.75); }
/* Admins: show on hover (interactive) */
.can-pin .video-tile:hover .tile-pin-btn { display: flex; cursor: pointer; }
/* Admins: always show when tile is pinned */
.can-pin .video-tile .tile-pin-btn.pinned { display: flex; cursor: pointer; background: rgba(124,111,247,.75); }
/* Pinned tile: accent border */
.video-tile.pinned { border-color: rgba(124,111,247,.6); }

/* Tile action buttons (PiP + Expand) */
.tile-actions {
  position: absolute; bottom: 8px; right: 8px;
  display: flex; gap: 4px;
  opacity: 0; transition: opacity .2s; z-index: 10;
}
.video-tile:hover .tile-actions { opacity: 1; }
/* Always visible on touch devices (no hover available) */
@media (pointer: coarse) {
  .tile-actions { opacity: 1; }
  .video-area.has-spotlight .video-grid .tile-actions { display: flex; opacity: 1; }
}
.tile-action-btn {
  background: rgba(0,0,0,.55); border: none; border-radius: 6px;
  width: 28px; height: 28px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.85); cursor: pointer; transition: background .15s;
}
.tile-action-btn:hover { background: rgba(124,111,247,.75); }
.tile-action-btn svg { width: 14px; height: 14px; }

/* Grid layout by participant count */
.video-grid[data-count="1"]  { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.video-grid[data-count="2"]  { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
.video-grid[data-count="3"],
.video-grid[data-count="4"]  { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.video-grid[data-count="5"],
.video-grid[data-count="6"]  { grid-template-columns: repeat(3, 1fr); grid-template-rows: 1fr 1fr; }
.video-grid[data-count="7"],
.video-grid[data-count="8"],
.video-grid[data-count="9"]  { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); }
.video-grid[data-count="10"],
.video-grid[data-count="11"],
.video-grid[data-count="12"] { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); }
/* 13+ — grid scrolls inside video-area */
.video-grid[data-many="1"] {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  align-items: start;
  overflow-y: auto;
}
@media (max-width: 960px) {
  .video-grid[data-many="1"] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .video-grid[data-many="1"] { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
}

/* ── Spotlight Stage ─────────────────────────────────────────────────────── */
#spotlightStage {
  display: none;
  position: relative;
  flex-shrink: 0;
}
#spotlightStage .video-tile {
  position: absolute !important;
  inset: 0; width: 100%; height: 100%;
  border-radius: 0;
}

/* Spotlight mode: main tile on the left, thumbnail strip on the right */
.video-area.has-spotlight {
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
}
.video-area.has-spotlight #spotlightStage {
  display: block; flex: 1;
}
.video-area.has-spotlight .video-grid {
  width: 150px; height: 100%; flex-shrink: 0;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: unset !important;
  grid-auto-rows: 130px;
  align-items: start;
  overflow-y: auto; padding: 4px; gap: 4px;
}
.video-area.has-spotlight .video-grid .tile-label { font-size: 10px; }
.video-area.has-spotlight .video-grid .tile-actions { display: none; }
.video-area.has-spotlight .video-grid .video-tile:hover .tile-actions { display: flex; opacity: 1; }

/* Fill mode: thumbnail strip hidden, spotlight tile fills everything */
.video-area.fill-mode .video-grid { display: none !important; }
.video-area.fill-mode #spotlightStage { display: block; flex: 1; }

/* Mobile spotlight: thumbnails at bottom */
@media (max-width: 700px) {
  .video-area.has-spotlight { flex-direction: column; }
  .video-area.has-spotlight .video-grid {
    width: 100%; height: 110px; flex-shrink: 0;
    grid-template-columns: repeat(auto-fill, 130px) !important;
    grid-template-rows: 1fr !important;
    grid-auto-rows: unset !important;
    overflow-x: auto; overflow-y: hidden;
  }
}

/* ── Whiteboard tile ─────────────────────────────────────────────────────── */
.whiteboard-tile .tile-inner { background: #fff; }
.whiteboard-tile .wb-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  touch-action: none;
  display: block;
}
/* Toolbar: revealed on hover, sits at top of tile so it doesn't overlap tile-actions */
.wb-tile-toolbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 15;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 10px;
  background: rgba(0,0,0,.65);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.whiteboard-tile:hover .wb-tile-toolbar { opacity: 1; pointer-events: auto; }
@media (pointer: coarse) { .wb-tile-toolbar { opacity: 1; pointer-events: auto; } }
.wb-tile-toolbar input[type="color"] {
  width: 28px; height: 24px; border-radius: 4px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.3); padding: 2px; background: transparent;
}
.wb-tile-toolbar input[type="range"] { accent-color: var(--accent); width: 80px; }
.wb-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); padding: 4px 10px; font-size: 12px; color: #fff;
  cursor: pointer; transition: all .15s;
}
.wb-btn:hover  { border-color: var(--accent); background: rgba(124,111,247,.35); }
.wb-btn.active { background: var(--accent); border-color: var(--accent); }

/* ── PDF / Image presentation tile ──────────────────────────────────────── */
.pdf-tile .tile-inner { background: #1a1a2e; }
/* Both canvases sit at intrinsic size (set by JS width/height attributes).
   max-width/max-height shrink them to fit the tile; centering via translate. */
.pdf-page-canvas, .pdf-annot-canvas {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 100%; max-height: 100%;
  display: block;
}
.pdf-page-canvas { touch-action: none; }
.pdf-annot-canvas { touch-action: none; cursor: default; z-index: 2; }
.pdf-tile-toolbar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 15;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 5px 8px;
  background: rgba(0,0,0,.72);
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.pdf-tile:hover .pdf-tile-toolbar { opacity: 1; pointer-events: auto; }
@media (pointer: coarse) { .pdf-tile-toolbar { opacity: 1; pointer-events: auto; } }
.pdf-nav-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); padding: 3px 9px; font-size: 13px; color: #fff;
  cursor: pointer; line-height: 1.4; transition: all .15s;
}
.pdf-nav-btn:hover { border-color: var(--accent); background: rgba(124,111,247,.35); }
.pdf-page-wrap {
  display: flex; align-items: center; gap: 4px; color: #fff; font-size: 12px;
}
.pdf-page-wrap input[type="number"] {
  width: 40px; text-align: center; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
  color: #fff; font-size: 12px; padding: 2px 4px;
  -moz-appearance: textfield;
}
.pdf-page-wrap input[type="number"]::-webkit-outer-spin-button,
.pdf-page-wrap input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.pdf-total-label { color: rgba(255,255,255,.6); }
.pdf-color-row { display: flex; align-items: center; gap: 5px; }
.pdf-color-btn {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--c, #ef4444); border: 2px solid transparent;
  cursor: pointer; transition: border-color .15s; flex-shrink: 0;
}
.pdf-color-btn.active { border-color: #fff; }
.pdf-tile-toolbar input[type="range"] { accent-color: var(--accent); width: 70px; }
.pdf-toolbar-btn {
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius-sm); padding: 3px 9px; font-size: 12px; color: #fff;
  cursor: pointer; transition: all .15s;
}
.pdf-toolbar-btn:hover  { border-color: var(--accent); background: rgba(124,111,247,.35); }
.pdf-toolbar-btn.active { background: var(--accent); border-color: var(--accent); }
.pdf-toolbar-sep { width: 1px; background: rgba(255,255,255,.2); height: 18px; flex-shrink: 0; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.room-sidebar {
  width: 320px; flex-shrink: 0;
  display: flex; flex-direction: column;
  background: var(--s1); border-left: 1px solid var(--border);
  transition: width .2s ease;
}
.room-sidebar.collapsed { width: 0; overflow: hidden; }

.sidebar-tabs {
  display: flex; align-items: center; border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sidebar-close-btn {
  display: none;
  flex-shrink: 0; padding: 8px 10px; margin-left: auto;
  color: var(--muted); transition: color .15s;
  align-items: center; justify-content: center;
}
.sidebar-close-btn:hover { color: var(--text); }
.sidebar-tab {
  flex: 1; padding: 12px 8px; font-size: 13px; font-weight: 600;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: all .15s; position: relative;
}
.sidebar-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.sidebar-tab:hover:not(.active) { color: var(--text); }

.unread-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--accent); color: #fff; border-radius: 20px;
  font-size: 11px; font-weight: 700; margin-left: 5px;
}

.tab-content {
  display: none; flex: 1; flex-direction: column; overflow: hidden;
}
.tab-content.active { display: flex; }

/* Chat tab */
.chat-messages {
  flex: 1; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.chat-msg {
  padding: 7px 10px; border-radius: 8px;
  max-width: 95%;
  animation: fadeIn .15s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }
.chat-msg.own   { background: rgba(124,111,247,.18); align-self: flex-end; }
.chat-msg.other { background: var(--s3); align-self: flex-start; }
.chat-msg.system { align-self: center; font-size: 12px; color: var(--muted); background: none; }
.msg-header { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.msg-name   { font-size: 12px; font-weight: 700; color: var(--accent); }
.msg-time   { font-size: 11px; color: var(--muted); }
.msg-text   { font-size: 14px; word-break: break-word; }
.typing-indicator { padding: 4px 10px; font-size: 12px; color: var(--muted); font-style: italic; }

.chat-input-wrap {
  display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input-wrap input {
  flex: 1; background: var(--s3); border: 1px solid var(--border2);
  border-radius: 20px; padding: 9px 14px; font-size: 14px;
  transition: border-color .15s;
}
.chat-input-wrap input:focus { border-color: var(--accent); }
.send-btn {
  background: var(--accent); color: #fff; border-radius: 50%;
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.send-btn:hover { background: var(--accent-h); }
.send-btn svg { width: 16px; height: 16px; }

/* Members tab */
.members-list {
  flex: 1; overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 4px;
}
.member-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--s2); border: 1px solid var(--border);
  transition: border-color .15s;
}
.member-row:hover { border-color: var(--border2); }
.member-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.member-info { flex: 1; min-width: 0; }
.member-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-role { font-size: 11px; color: var(--muted); }
.member-icons { display: flex; gap: 5px; color: var(--muted); font-size: 13px; }
.member-icons .on  { color: var(--green); }
.member-icons .off { color: var(--red); }

/* Member action dropdown */
.member-actions { position: relative; flex-shrink: 0; }
.member-menu-btn {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 18px; padding: 2px 7px;
  border-radius: var(--radius-sm); line-height: 1;
  transition: background .15s, color .15s;
}
.member-menu-btn:hover { background: var(--border); color: var(--text); }
.member-menu {
  position: fixed; z-index: 5000;
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 6px;
  min-width: 175px; box-shadow: 0 8px 32px rgba(0,0,0,.6);
}
.member-menu.hidden { display: none; }
.menu-section { margin-bottom: 4px; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.menu-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.menu-label {
  font-size: 10px; color: var(--muted); text-transform: uppercase;
  padding: 2px 8px 5px; letter-spacing: .6px;
}
.menu-role-btn {
  display: block; width: 100%; text-align: left; padding: 5px 8px;
  background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text); transition: background .12s;
}
.menu-role-btn:hover { background: var(--border); }
.menu-role-btn.active { color: var(--accent); font-weight: 600; }
.menu-perm-label {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 8px; cursor: pointer; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--text); transition: background .12s; user-select: none;
}
.menu-perm-label:hover { background: var(--border); }
.menu-perm-label input[type=checkbox] { margin: 0; accent-color: var(--accent); cursor: pointer; }
.menu-kick-btn {
  display: block; width: 100%; text-align: left; padding: 6px 8px;
  background: none; border: none; cursor: pointer; border-radius: var(--radius-sm);
  font-size: 12px; color: var(--red); transition: background .12s;
}
.menu-kick-btn:hover { background: rgba(240,94,94,.12); }

/* Files tab */
.files-tab-content {
  flex-direction: column; overflow: hidden;
}
.file-drop-zone {
  margin: 10px; border: 2px dashed var(--border2); border-radius: var(--radius);
  padding: 18px; text-align: center; font-size: 13px; color: var(--muted);
  cursor: pointer; transition: all .18s; flex-shrink: 0;
}
.file-drop-zone:hover, .file-drop-zone.drag-over {
  border-color: var(--accent); color: var(--text);
  background: rgba(124,111,247,.06);
}
.file-drop-zone span { display: block; font-size: 22px; margin-bottom: 6px; }
.file-drop-zone b { color: var(--accent); cursor: pointer; }

.upload-progress-wrap {
  margin: 0 10px 8px; display: flex; flex-direction: column; gap: 6px;
}

/* Rich upload card */
.upload-card {
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 10px 12px;
}
.upload-card.remote-upload { border-left: 3px solid var(--green); }
.upload-card-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.upload-icon { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.upload-card-info { flex: 1; min-width: 0; }
.upload-name {
  font-size: 12px; font-weight: 500; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.upload-status-line { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.upload-pct { font-size: 11px; font-weight: 700; color: var(--accent); min-width: 28px; }
.remote-upload .upload-pct { color: var(--green); }
.upload-status-txt { font-size: 11px; color: var(--muted); }
.upload-prog-bar { height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.upload-prog-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width .25s ease; }
.remote-upload .upload-prog-fill { background: var(--green); }
.upload-card-actions { display: flex; gap: 6px; }
.upload-btn {
  flex: 1; padding: 4px 6px; background: var(--s2);
  border: 1px solid var(--border2); border-radius: 4px;
  font-size: 11px; color: var(--muted); cursor: pointer; transition: all .15s;
}
.upload-btn:hover { background: var(--border); color: var(--text); }
.upload-btn.stop-btn:hover { border-color: var(--red); color: var(--red); }

.files-list {
  flex: 1; overflow-y: auto; padding: 0 10px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.file-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--s2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 9px 10px;
}
.file-icon { font-size: 20px; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.file-actions { display: flex; gap: 6px; }
.file-action-btn {
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: 5px; padding: 4px 8px; font-size: 12px;
  transition: all .15s;
}
.file-action-btn:hover { border-color: var(--accent); }
.file-action-btn.del:hover { border-color: var(--red); color: var(--red); }

/* ── Bottom Toolbar ──────────────────────────────────────────────────────── */
.room-toolbar {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 16px; height: 62px; flex-shrink: 0;
  background: var(--s1); border-top: 1px solid var(--border);
  z-index: 100;
}
.tool-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 56px; height: 48px; border-radius: 10px; padding: 0 8px;
  background: var(--s3); border: 1px solid var(--border);
  font-size: 10px; color: var(--muted); font-weight: 600;
  transition: all .18s; position: relative; flex-shrink: 0;
}
.tool-btn svg { width: 20px; height: 20px; }
.tool-btn:hover { background: var(--s2); border-color: var(--border2); color: var(--text); }
.tool-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-btn.danger { background: rgba(240,94,94,.15); border-color: rgba(240,94,94,.3); color: var(--red); }
.tool-btn.danger:hover { background: var(--red); color: #fff; }
.tool-btn.off {
  background: rgba(240,94,94,.12); border-color: rgba(240,94,94,.25); color: var(--red);
}
.tool-sep {
  width: 1px; height: 32px; background: var(--border); flex-shrink: 0; margin: 0 3px;
}

/* ── Sidebar backdrop (mobile overlay) ──────────────────────────────────── */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 299;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.sidebar-backdrop.active { display: block; }

/* ── Mobile layout (≤ 700px) ─────────────────────────────────────────────── */
@media (max-width: 700px) {

  /* Header: compact single row */
  .room-header { padding: 0 10px; height: 52px; gap: 0; }
  .room-header-left { gap: 6px; flex-shrink: 1; min-width: 0; overflow: hidden; }
  .room-logo { font-size: 16px; flex-shrink: 0; }
  .room-name-display { display: none; }
  .room-code-pill {
    padding: 3px 8px; font-size: 11px; letter-spacing: 0;
    flex-shrink: 1; min-width: 0; max-width: 110px;
  }
  .room-code-pill #roomCodeDisplay {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .room-code-pill svg { display: none; }
  .room-header-center { gap: 8px; flex-shrink: 0; margin: 0 6px; }
  .participants-badge { font-size: 11px; }
  .participants-badge svg { width: 13px; height: 13px; }
  .room-timer { font-size: 11px; }
  .room-header-right { gap: 6px; flex-shrink: 0; }
  .leave-btn { padding: 5px 10px; font-size: 12px; }

  /* Hamburger button: visible only on mobile */
  .header-menu-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; flex-shrink: 0;
    background: var(--s3); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); color: var(--muted);
    cursor: pointer; transition: all .15s;
  }
  .header-menu-btn:hover,
  .header-menu-btn.active { background: var(--border); color: var(--text); border-color: var(--accent); }

  /* Dropdown panel: fixed sheet below header */
  .header-dropdown-panel {
    position: fixed;
    top: 52px; right: 0;
    z-index: 250;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
    min-width: 190px;
    background: var(--s1);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 0 10px;
    box-shadow: -4px 8px 24px rgba(0,0,0,.45);
    display: none;
  }
  .header-dropdown-panel.open { display: flex; }

  /* Dropdown items: full-width rows with text visible */
  .header-dropdown-panel .set-pwd-btn {
    width: 100%; justify-content: flex-start;
    margin-right: 0; height: 38px; padding: 0 12px; font-size: 13px;
  }
  .header-dropdown-panel .dropdown-only { display: inline; }
  .header-dropdown-panel .lang-btn {
    width: 100%; height: 38px; font-size: 13px; justify-content: flex-start;
    padding: 0 12px; border-radius: var(--radius-sm);
  }
  .header-dropdown-panel .theme-btn {
    width: 100%; height: 38px; justify-content: flex-start; padding: 0 12px;
    border-radius: var(--radius-sm);
  }
  .header-dropdown-panel .theme-btn svg { margin-right: 8px; }

  /* Sidebar: full-height slide-in overlay from right */
  .room-sidebar {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(300px, 88vw);
    z-index: 300;
    transform: translateX(110%);
    transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
    box-shadow: -6px 0 28px rgba(0,0,0,.6);
  }
  /* collapsed has no effect on mobile — transform handles visibility */
  .room-sidebar.collapsed { transform: translateX(110%); width: min(300px, 88vw); overflow: visible; }
  .room-sidebar.mobile-open { transform: translateX(0); }
  .sidebar-close-btn { display: flex; }

  /* Toolbar: horizontal scroll strip */
  .room-toolbar {
    height: 54px;
    padding: 4px 8px;
    gap: 4px;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
    mask-image: linear-gradient(to right, transparent, black 10px, black calc(100% - 10px), transparent);
  }
  .room-toolbar::-webkit-scrollbar { display: none; }
  .tool-btn {
    min-width: 44px; height: 40px;
    padding: 0 6px; border-radius: 10px;
    flex-shrink: 0;
  }
  .tool-btn svg { width: 18px; height: 18px; }
  .tool-btn span { display: none; }
  .tool-sep { margin: 0 1px; height: 26px; }

  /* Toast above toolbar */
  .toast { bottom: calc(54px + 10px); }

}

/* ── Set Password button (header) ───────────────────────────────────────── */
.set-pwd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); font-size: 12px; color: var(--muted);
  cursor: pointer; transition: all .15s; margin-right: 8px; white-space: nowrap;
  flex-shrink: 0;
}
.set-pwd-btn:hover { background: var(--border); color: var(--text); border-color: var(--accent); }
.room-lock-icon { font-size: 12px; margin-right: 2px; }

/* ── LiveKit status dot ──────────────────────────────────────────────────── */
.lk-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background-color .3s;
}
.lk-status-dot.lk-connecting {
  background: #f59e0b;
  animation: lkPulse 1.2s ease-in-out infinite;
}
.lk-status-dot.lk-connected  { background: #22c55e; }
.lk-status-dot.lk-disconnected { background: #ef4444; }
@keyframes lkPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* ── LiveKit connecting banner ───────────────────────────────────────────── */
.lk-connecting-banner {
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(30, 60, 100, 0.92);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lk-connecting-banner svg { flex-shrink: 0; opacity: .85; animation: lkPulse 1.2s ease-in-out infinite; }
.lk-connecting-banner span { flex: 1; min-width: 0; }

/* ── LiveKit reconnect banner ────────────────────────────────────────────── */
.lk-reconnect-banner {
  position: fixed;
  top: 52px; left: 0; right: 0;
  z-index: 50; /* below sidebar (300) — never blocks the UI */
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  background: rgba(160, 40, 40, 0.94);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  color: #fff; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.lk-reconnect-banner svg { flex-shrink: 0; opacity: .85; }
.lk-reconnect-banner span { flex: 1; min-width: 0; }
.lk-reconnect-btn {
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.35);
  color: #fff; border-radius: 5px; padding: 3px 10px;
  font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0;
  transition: background .15s;
}
.lk-reconnect-btn:hover { background: rgba(255,255,255,.32); }
.lk-dismiss-btn {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 17px; cursor: pointer; flex-shrink: 0; padding: 0 2px; line-height: 1;
  transition: color .15s;
}
.lk-dismiss-btn:hover { color: #fff; }

/* ── Room settings & upgrade modals ─────────────────────────────────────── */
.modal-wide { max-width: 520px; }
.settings-name-group {
  padding-bottom: 14px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.settings-name-label {
  display: block; font-size: 12px; font-weight: 600;
  color: var(--muted); margin-bottom: 7px; letter-spacing: 0.3px;
}
.settings-name-input {
  width: 100%; background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 9px 12px;
  font-size: 14px; transition: border-color .18s;
}
.settings-name-input:focus { border-color: var(--accent); }
.settings-label {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; cursor: pointer; user-select: none;
  line-height: 1.4;
}
.settings-label:last-of-type { border-bottom: none; }
.settings-label input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent);
  flex-shrink: 0; align-self: center; margin: 0;
}
.settings-label span { flex: 1; }
.upgrade-status {
  background: var(--s3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px;
  font-size: 13px; color: var(--muted); line-height: 1.6;
}
.upgrade-plan-card {
  background: var(--s3); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 14px; margin-bottom: 10px;
  transition: border-color .15s;
}
.upgrade-plan-card:hover { border-color: var(--accent); }
.upgrade-plan-title { font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.upgrade-plan-price { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.upgrade-plan-select { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.upgrade-plan-select label { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.upgrade-days-input {
  width: 58px; background: var(--s2); border: 1px solid var(--border2);
  border-radius: 5px; padding: 4px 8px; font-size: 13px; color: var(--text);
  text-align: center; outline: none;
}
.upgrade-days-input:focus { border-color: var(--accent); }
.upgrade-plan-total { font-size: 12px; color: var(--accent); font-weight: 600; margin-left: auto; }
.btn-upgrade-buy {
  background: var(--accent); color: #fff; border-radius: 5px;
  padding: 5px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .15s; border: none;
}
.btn-upgrade-buy:hover { background: var(--accent-h); }

/* ── Tab overlays ────────────────────────────────────────────────────────── */
.tab-overlay {
  position: fixed; inset: 0; background: var(--overlay-bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 8000; backdrop-filter: blur(8px);
}
.tab-overlay-content {
  text-align: center; max-width: 360px; width: 90%;
  padding: 40px 32px; background: var(--s2);
  border: 1px solid var(--border2); border-radius: 16px; box-shadow: var(--shadow);
}
.tab-overlay-icon { font-size: 48px; margin-bottom: 16px; }
.tab-overlay-content h3 { font-size: 20px; margin-bottom: 10px; }
.tab-overlay-content p { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ═══════════════════════════════════════════════════════════════════════════
   RTL OVERRIDES — active when html[dir="rtl"] (Persian / fa)
   ═══════════════════════════════════════════════════════════════════════════ */

html[dir="rtl"] body {
  font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── Home page ───────────────────────────────────────────────────────────── */
html[dir="rtl"] .action-card:first-child {
  border-right: none;
  border-left: 1px solid var(--border);
}
html[dir="rtl"] .name-input-wrap input { padding: 12px 0 12px 14px; }
html[dir="rtl"] .my-rooms-section { text-align: right; }
html[dir="rtl"] .my-room-card    { text-align: right; }
html[dir="rtl"] .my-room-code    { direction: ltr; text-align: left; }
html[dir="rtl"] .my-room-time    { margin-left: 0; margin-right: auto; }

/* ── Keep codes, phone numbers, and OTP inputs LTR always ────────────────── */
html[dir="rtl"] .join-row input    { direction: ltr; text-align: left; }
html[dir="rtl"] .room-code-pill    { direction: ltr; }
html[dir="rtl"] .share-link-input  { direction: ltr; text-align: left; }
html[dir="rtl"] .auth-phone-display { direction: rtl; letter-spacing: 0; }
html[dir="rtl"] #authPhoneDisplay  { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ── Video tiles (absolute-positioned elements flip sides) ───────────────── */
html[dir="rtl"] .tile-label    { left: auto;  right: 10px; }
html[dir="rtl"] .tile-pin-btn  { left: auto;  right: 8px;  }
html[dir="rtl"] .tile-hand     { right: auto; left: 8px;   }
html[dir="rtl"] .tile-actions  { right: auto; left: 8px;   }

/* ── Room header ─────────────────────────────────────────────────────────── */
html[dir="rtl"] .set-pwd-btn    { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .room-lock-icon { margin-right: 0; margin-left: 2px; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
html[dir="rtl"] .room-sidebar      { border-left: none; border-right: 1px solid var(--border); }
html[dir="rtl"] .sidebar-close-btn { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .unread-badge      { margin-left: 0; margin-right: 5px; }

/* ── Member dropdown ─────────────────────────────────────────────────────── */
/* .member-menu position is JS-controlled (position:fixed) — no RTL override needed */
html[dir="rtl"] .menu-role-btn { text-align: right; }
html[dir="rtl"] .menu-kick-btn { text-align: right; }

/* ── Files tab ───────────────────────────────────────────────────────────── */
html[dir="rtl"] .upload-card.remote-upload { border-left: none; border-right: 3px solid var(--green); }

/* ── Upgrade modal ───────────────────────────────────────────────────────── */
html[dir="rtl"] .upgrade-plan-total { margin-left: 0; margin-right: auto; }

/* ── AI Assistant section (inside chat tab) ──────────────────────────────── */

/* When AI section is active, the chat tab becomes a vertical split */
#tab-chat { flex-direction: column; }
.chat-section {
  flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
}
/* ── AI Analyze button: idle ↔ loading states ── */
.analyze-icon-spin { display: none; transform-origin: center; }
@keyframes ai-spin { to { transform: rotate(360deg); } }
#aiAnalyzeBtn.loading .analyze-icon-idle { display: none; }
#aiAnalyzeBtn.loading .analyze-icon-spin { display: inline-block; animation: ai-spin .7s linear infinite; }
#aiAnalyzeBtn.loading { cursor: wait; }
#aiAnalyzeBtn:not(.loading):hover { color: var(--accent); }

/* ── Auto-analysis pulse dot (Tier 2 background run) ── */
.ai-monitor-pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 4px; flex-shrink: 0;
  animation: ai-monitor-pulse 1.2s ease-in-out infinite;
}
.ai-monitor-pulse.hidden { display: none !important; }
@keyframes ai-monitor-pulse {
  0%, 100% { opacity: .35; transform: scale(.75); }
  50%       { opacity: 1;   transform: scale(1.2);  }
}

/* ── AI Monitor alert badge on section header ── */
.ai-alert-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ef4444; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 8px; padding: 0 4px;
  margin-left: 4px; line-height: 1; vertical-align: middle;
}
.ai-alert-badge.hidden { display: none; }

/* ── AI Monitor alert list ── */
.ai-alerts {
  display: flex; flex-direction: column; gap: 4px;
  padding: 6px 8px; border-bottom: 1px solid var(--border);
}
.ai-alerts.hidden { display: none; }
.ai-alert {
  display: flex; align-items: flex-start; gap: 6px;
  padding: 6px 8px; border-radius: 6px; font-size: 12px; line-height: 1.4;
  border-left: 3px solid transparent;
}
.ai-alert-high   { background: rgba(239,68,68,.12);  border-color: #ef4444; }
.ai-alert-medium { background: rgba(234,179,8,.10);  border-color: #eab308; }
.ai-alert-low    { background: rgba(34,197,94,.10);  border-color: #22c55e; }
.ai-alert-icon   { flex-shrink: 0; font-size: 13px; line-height: 1.4; }
.ai-alert-text   { flex: 1; color: var(--text); }
.ai-alert-dismiss {
  background: none; border: none; cursor: pointer; color: var(--muted);
  font-size: 15px; padding: 0 2px; line-height: 1; flex-shrink: 0;
  transition: color .15s;
}
.ai-alert-dismiss:hover { color: var(--red, #ef4444); }
html[data-theme="light"] .ai-alert-high   { background: rgba(239,68,68,.08); }
html[data-theme="light"] .ai-alert-medium { background: rgba(234,179,8,.08); }
html[data-theme="light"] .ai-alert-low    { background: rgba(34,197,94,.08); }

.ai-section {
  flex: 0 0 42%; min-height: 0; display: flex; flex-direction: column; overflow: hidden;
  border-top: 2px solid var(--border);
}
.ai-section.hidden { display: none !important; }
/* When AI section is hidden, chat section fills the whole tab */
.ai-section.hidden ~ .chat-section,
#tab-chat:not(:has(.ai-section:not(.hidden))) .chat-section { flex: 1; }

.ai-section-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; border-bottom: 1px solid var(--border);
  flex-shrink: 0; background: var(--s2);
}
.ai-section-title {
  font-size: 12px; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; gap: 4px;
}

.ai-messages {
  flex: 1; overflow-y: auto; padding: 10px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-msg {
  max-width: 88%; font-size: 13px; line-height: 1.5;
  border-radius: var(--radius); padding: 8px 12px; word-break: break-word;
}
.ai-msg.user {
  background: rgba(124,111,247,.2); align-self: flex-end;
  border-bottom-right-radius: 4px; white-space: pre-wrap;
}
.ai-msg.assistant {
  background: var(--s3); color: var(--text); align-self: flex-start;
  border-bottom-left-radius: 4px; display: flex; flex-direction: column; gap: 4px;
}
.ai-msg.streaming .ai-msg-body::after {
  content: '▌'; animation: ai-blink .7s step-end infinite; opacity: .7;
}
@keyframes ai-blink { 50% { opacity: 0; } }

/* Markdown rendered content in AI assistant messages */
.ai-msg-body { min-width: 0; }
.ai-msg-body p { margin: 0; }
.ai-msg-body p + p { margin-top: 5px; }
.ai-msg-body h1, .ai-msg-body h2, .ai-msg-body h3,
.ai-msg-body h4, .ai-msg-body h5, .ai-msg-body h6 {
  font-weight: 600; line-height: 1.3; margin: 8px 0 3px;
}
.ai-msg-body h1 { font-size: 1.15em; }
.ai-msg-body h2 { font-size: 1.07em; }
.ai-msg-body h3, .ai-msg-body h4, .ai-msg-body h5, .ai-msg-body h6 { font-size: 1em; }
.ai-msg-body strong { font-weight: 600; }
.ai-msg-body em { font-style: italic; }
.ai-msg-body ul, .ai-msg-body ol { padding-left: 1.4em; margin: 3px 0; }
.ai-msg-body li { margin: 2px 0; }
.ai-msg-body code {
  background: rgba(0,0,0,.25); border-radius: 3px;
  padding: 1px 5px; font-family: monospace; font-size: .88em;
}
.ai-msg-body pre {
  background: rgba(0,0,0,.3); border-radius: 6px;
  padding: 10px 12px; overflow-x: auto; margin: 5px 0;
}
.ai-msg-body pre code { background: none; padding: 0; font-size: .85em; border-radius: 0; }
.ai-msg-body blockquote {
  border-left: 3px solid var(--accent); padding-left: 10px;
  color: var(--muted); margin: 5px 0;
}
.ai-msg-body table { border-collapse: collapse; font-size: .9em; margin: 5px 0; width: 100%; }
.ai-msg-body th, .ai-msg-body td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; }
.ai-msg-body th { background: rgba(0,0,0,.2); font-weight: 600; }
.ai-msg-body a { color: var(--accent); text-decoration: underline; }
.ai-msg-body hr { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
html[data-theme="light"] .ai-msg-body code { background: rgba(0,0,0,.08); }
html[data-theme="light"] .ai-msg-body pre { background: rgba(0,0,0,.06); }

.ai-typing-indicator {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 16px; height: 22px;
}
.ai-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--muted);
  animation: ai-dot-bounce .9s infinite;
}
.ai-dot:nth-child(2) { animation-delay: .15s; }
.ai-dot:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot-bounce { 0%,80%,100% { transform: translateY(0); } 40% { transform: translateY(-5px); } }

.ai-input-wrap {
  padding: 6px 8px 8px; border-top: 1px solid var(--border); display: flex;
  align-items: flex-end; gap: 6px; background: var(--s1); flex-shrink: 0;
}
.ai-input {
  flex: 1; background: var(--s2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 7px 10px; color: var(--text);
  font-size: 13px; resize: none; font-family: inherit; line-height: 1.4;
  transition: border .15s; min-height: 34px; max-height: 100px;
}
.ai-input:focus { border-color: var(--accent); outline: none; }
.btn-icon {
  background: none; border: none; cursor: pointer;
  color: var(--muted); padding: 4px; border-radius: 4px; transition: all .15s;
}
.btn-icon:hover { color: var(--text); background: var(--s3); }
.ai-clear-btn:hover { color: var(--red) !important; }

/* AI forward button on chat messages */
.msg-ai-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 1px 4px; border-radius: 4px; font-size: 15px;
  line-height: 1; flex-shrink: 0; opacity: .55; transition: opacity .15s, background .15s;
}
.has-ai .chat-msg:hover .msg-ai-btn { display: inline-flex; align-items: center; }
.msg-ai-btn:hover { opacity: 1; background: rgba(124,111,247,.14); }
/* always visible on touch screens */
@media (pointer: coarse) {
  .has-ai .msg-ai-btn { display: inline-flex !important; opacity: .7; }
}

/* Copy button on AI assistant messages */
.ai-copy-btn {
  display: inline-block; background: none; border: none; cursor: pointer;
  font-size: 13px; opacity: 0; padding: 0 2px; margin-left: 4px;
  vertical-align: middle; transition: opacity .15s; flex-shrink: 0;
  line-height: 1;
}
.ai-msg.assistant:hover .ai-copy-btn { opacity: .6; }
.ai-copy-btn:hover { opacity: 1 !important; }
@media (pointer: coarse) { .ai-copy-btn { opacity: .6; } }

html[dir="rtl"] .ai-alert { border-left: none; border-right: 3px solid transparent; }
html[dir="rtl"] .ai-alert-high   { border-right-color: #ef4444; }
html[dir="rtl"] .ai-alert-medium { border-right-color: #eab308; }
html[dir="rtl"] .ai-alert-low    { border-right-color: #22c55e; }
html[dir="rtl"] .ai-alert-badge  { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .ai-msg.user { align-self: flex-start; border-bottom-right-radius: var(--radius); border-bottom-left-radius: 4px; }
html[dir="rtl"] .ai-msg.assistant { align-self: flex-end; border-bottom-left-radius: var(--radius); border-bottom-right-radius: 4px; }
html[dir="rtl"] .ai-input { text-align: right; }
html[dir="rtl"] .ai-copy-btn { margin-left: 0; margin-right: 4px; }
html[dir="rtl"] .ai-msg-body ul, html[dir="rtl"] .ai-msg-body ol { padding-left: 0; padding-right: 1.4em; }
html[dir="rtl"] .ai-msg-body blockquote { border-left: none; border-right: 3px solid var(--accent); padding-left: 0; padding-right: 10px; }
html[dir="rtl"] .ai-msg-body th, html[dir="rtl"] .ai-msg-body td { text-align: right; }

/* ── Mobile (≤ 700px) ────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  html[dir="rtl"] .room-sidebar {
    right: auto; left: 0;
    transform: translateX(-110%);
    box-shadow: 6px 0 28px rgba(0,0,0,.6);
  }
  html[dir="rtl"] .room-sidebar.collapsed  { transform: translateX(-110%); width: min(300px, 88vw); }
  html[dir="rtl"] .room-sidebar.mobile-open { transform: translateX(0); }

  html[dir="rtl"] .room-toolbar {
    -webkit-mask-image: linear-gradient(to left, transparent, black 10px, black calc(100% - 10px), transparent);
    mask-image: linear-gradient(to left, transparent, black 10px, black calc(100% - 10px), transparent);
  }

  html[dir="rtl"] .header-dropdown-panel { right: auto; left: 0; border-radius: 0 0 10px 0; }
  html[dir="rtl"] .header-dropdown-panel .set-pwd-btn { margin-left: 0; }
  html[dir="rtl"] .header-dropdown-panel .theme-btn svg { margin-right: 0; margin-left: 8px; }
}
