/* ══════════════════════════════════════════════════════════════
   ШАПКА — единый стиль с montegid.com
══════════════════════════════════════════════════════════════ */

/* Topbar — чёрная полоска сверху */
.site-topbar {
  background: #111;
  height: 34px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1001;
}
.site-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-topbar-date {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 11px;
  color: #aaa;
  letter-spacing: .02em;
}
.site-topbar-socials {
  display: flex;
  align-items: center;
  gap: 14px;
}
.site-topbar-socials a {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 11px;
  color: #aaa;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color .2s;
}
.site-topbar-socials a:hover { color: #fff; }
.site-topbar-socials a i { font-size: 12px; }

/* Header — белый с логотипом */
.site-header {
  background: #fff;
  border-bottom: 3px solid #c0392b;
  position: fixed;
  top: 34px; left: 0; right: 0;
  z-index: 1000;
  height: 60px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Логотип */
.site-logo a {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 1px;
}
.site-logo .logo-title {
  font-family: 'Oswald', 'PT Sans', Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #c0392b;
  letter-spacing: .08em;
  line-height: 1;
}
.site-logo .logo-sub {
  font-family: 'PT Sans', Arial, sans-serif;
  font-size: 9px;
  color: #888;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-logo a i { display: none; }

/* Навигация */
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0; padding: 0;
}
.site-nav a {
  display: block;
  padding: 0 18px;
  height: 60px;
  line-height: 60px;
  text-decoration: none;
  color: #222;
  font-family: 'Oswald', 'PT Sans', Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.site-nav a:hover {
  background: #f5f5f5;
  color: #c0392b;
}
.site-nav a.active {
  background: #c0392b;
  color: #fff;
}

/* Гамбургер */
.site-nav-toggle {
  display: none;
  background: none; border: none;
  color: #222; font-size: 20px;
  cursor: pointer; padding: 4px 8px;
}

/* Мобильное меню */
.site-nav-mobile {
  display: none !important;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  position: fixed;
  top: 94px; left: 0; right: 0;
  z-index: 999;
}
.site-nav-mobile.open { display: block !important; }
.site-nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.site-nav-mobile li a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: #222;
  font-family: 'Oswald', 'PT Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid #f0f0f0;
  transition: background .15s, color .15s;
}
.site-nav-mobile li a:hover,
.site-nav-mobile li a.active {
  color: #c0392b;
  background: #fafafa;
}

/* Сдвигаем контент под topbar+header */
.auth-screen { top: 94px !important; }
.chat-screen { height: calc(100vh - 94px) !important; margin-top: 94px; }

@media (max-width: 768px) {
  .site-topbar { display: none; }
  .site-header { top: 0; height: 54px; }
  .site-header-inner { height: 54px; padding: 0 16px; }
  .site-logo .logo-title { font-size: 18px; }
  .site-nav { display: none; }
  .site-nav-toggle { display: block; }
  .site-nav-mobile { top: 54px; }
  .auth-screen { top: 54px !important; }
  .chat-screen { height: calc(100vh - 54px) !important; margin-top: 54px; }
}

/* ═══════════════════════════════════════════
   chat-montegid · Светлая тема
   Стиль: montegid.com — белый, синий, золотой
═══════════════════════════════════════════ */

:root {
  --bg-0:        #f0f4f8;
  --bg-1:        #ffffff;
  --bg-2:        #f5f7fa;
  --bg-3:        #eaf0f6;
  --bg-hover:    #e2eaf3;
  --border:      rgba(0,0,0,.08);
  --border-mid:  rgba(0,0,0,.12);

  --accent:       #2b9fd8;
  --accent-hover: #1e8bc3;
  --accent-dim:   rgba(43,159,216,.12);
  --accent-dark:  #1a2744;
  --gold:         #e8a020;
  --danger:       #e05252;

  --text-primary:   #1a2744;
  --text-secondary: #4a5a7a;
  --text-muted:     #8a9ab8;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --font-ui:   'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --sidebar-w: 240px;
  --online-w:  200px;
  --header-h:  58px;

  --transition: .18s cubic-bezier(.4,0,.2,1);
  --shadow-sm:  0 1px 4px rgba(26,39,68,.08);
  --shadow-md:  0 4px 16px rgba(26,39,68,.10);
  --shadow-lg:  0 8px 32px rgba(26,39,68,.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: var(--font-ui);
  background: var(--bg-0);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar        { width: 4px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: #c8d4e8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a0b4cc; }

.hidden { display: none !important; }

/* ══════════════════════════════════════
   AUTH SCREEN
══════════════════════════════════════ */
.auth-screen {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #e8f4fb 0%, #f0f4f8 50%, #fdf6ec 100%);
  z-index: 100;
}

.auth-bg {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none;
}
.auth-grid {
  position: absolute; inset: -40px;
  background-image:
    linear-gradient(rgba(43,159,216,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43,159,216,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent);
}

/* Декоративные горы как на сайте */
.auth-bg::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 180px;
  background: linear-gradient(180deg, transparent, rgba(43,159,216,.06));
  clip-path: polygon(0 60%, 15% 30%, 30% 55%, 45% 20%, 60% 45%, 75% 15%, 90% 40%, 100% 25%, 100% 100%, 0 100%);
}

.auth-card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-lg);
  animation: auth-in .4s cubic-bezier(.34,1.56,.64,1);
}
@keyframes auth-in {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Золотая линия сверху как акцент */
.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 36px; right: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: 0 0 3px 3px;
}

.auth-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  font-size: 18px; font-weight: 700;
  color: var(--accent-dark);
}
.auth-logo em {
  font-style: normal;
  color: var(--accent);
}

.auth-tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 10px;
  border: none; background: transparent;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}
.auth-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.auth-tab:hover:not(.active) { color: var(--text-secondary); }

.auth-form { display: none; flex-direction: column; gap: 16px; }
.auth-form.active { display: flex; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .04em; text-transform: uppercase;
}
.field input {
  background: var(--bg-2);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px; outline: none;
  transition: var(--transition);
}
.field input:focus {
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field input::placeholder { color: var(--text-muted); }

.auth-error {
  font-size: 13px; color: var(--danger);
  min-height: 18px;
}

.btn-primary {
  width: 100%; padding: 12px;
  background: var(--accent);
  color: white; border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(43,159,216,.3);
}
.btn-primary:hover  { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43,159,216,.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ══════════════════════════════════════
   CHAT LAYOUT
══════════════════════════════════════ */
.chat-screen {
  display: flex; height: 100vh; overflow: hidden;
}

/* ── Sidebar ──────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--accent-dark);
  display: flex; flex-direction: column;
  overflow: hidden;
  transition: transform var(--transition);
}

.sidebar-header {
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
  background: rgba(0,0,0,.15);
}
.sidebar-logo {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700;
  color: white;
}

.sidebar-section-title {
  padding: 20px 16px 6px;
  font-size: 10px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.room-list {
  list-style: none; flex: 1;
  overflow-y: auto; padding: 4px 8px;
}
.room-list li {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  transition: var(--transition);
  user-select: none;
}
.room-list li:hover  { background: rgba(255,255,255,.08); color: white; }
.room-list li.active {
  background: rgba(43,159,216,.3);
  color: white; font-weight: 500;
}
.room-hash { color: rgba(255,255,255,.3); font-weight: 700; font-size: 15px; }
.room-list li.active .room-hash { color: rgba(255,255,255,.7); }

.sidebar-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 12px;
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  background: rgba(0,0,0,.1);
}
.user-badge { display: flex; align-items: center; gap: 10px; flex: 1; overflow: hidden; }
.user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0; text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.2);
}
.user-info { display: flex; flex-direction: column; overflow: hidden; }
.user-nick {
  font-size: 13px; font-weight: 600; color: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.user-status { font-size: 11px; color: rgba(255,255,255,.4); }
.user-status.online::before {
  content: '●'; color: #4ade80;
  margin-right: 4px; font-size: 8px; vertical-align: 1px;
}

.btn-logout {
  background: none; border: none;
  color: rgba(255,255,255,.4);
  cursor: pointer; padding: 6px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center;
  transition: var(--transition); flex-shrink: 0;
}
.btn-logout:hover { color: #ff8080; background: rgba(255,80,80,.15); }

/* ── Chat main ────────────────────────── */
.chat-main {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; background: var(--bg-0);
}

.chat-header {
  height: var(--header-h); flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.chat-header-left { display: flex; align-items: center; gap: 12px; }

.sidebar-toggle {
  display: none; background: none; border: none;
  color: var(--text-secondary); cursor: pointer;
  padding: 4px; border-radius: var(--radius-sm);
}
.sidebar-toggle:hover { color: var(--accent); background: var(--accent-dim); }

.chat-room-info { display: flex; align-items: center; gap: 4px; }
.chat-room-hash { font-size: 18px; color: var(--text-muted); font-weight: 700; line-height: 1; }
.chat-room-name { font-size: 16px; font-weight: 700; color: var(--accent-dark); }

/* Золотой акцент под названием комнаты */
.chat-room-info::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
}

.online-badge {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--text-secondary);
  background: var(--bg-2);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.online-dot {
  width: 8px; height: 8px;
  background: #4ade80; border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .5; }
}

/* ── Messages ─────────────────────────── */
.messages-container {
  flex: 1; overflow-y: auto;
  padding: 20px; display: flex;
  flex-direction: column; gap: 2px;
}

.messages-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-muted); gap: 10px;
  text-align: center; padding: 40px;
}
.messages-empty svg { opacity: .25; color: var(--accent); }
.messages-empty p { font-size: 16px; font-weight: 600; color: var(--text-secondary); }
.messages-empty small { font-size: 13px; }

.msg-group {
  display: flex; gap: 12px;
  padding: 5px 8px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
  animation: msg-in .2s ease;
}
.msg-group:hover { background: rgba(43,159,216,.04); }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.msg-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: white;
  flex-shrink: 0; text-transform: uppercase;
  align-self: flex-start; margin-top: 2px;
  box-shadow: var(--shadow-sm);
}

.msg-body { flex: 1; min-width: 0; }
.msg-meta {
  display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px;
}
.msg-nick { font-weight: 700; font-size: 14px; color: var(--accent-dark); }
.msg-nick.is-me { color: var(--accent); }
.msg-time { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.msg-text {
  font-size: 14px; color: var(--text-primary);
  line-height: 1.55; word-break: break-word; white-space: pre-wrap;
}

.msg-group.grouped { padding-top: 1px; padding-bottom: 1px; }
.msg-group.grouped .msg-avatar { visibility: hidden; }
.msg-group.grouped .msg-meta   { display: none; }

/* ── Typing ───────────────────────────── */
.typing-indicator {
  padding: 4px 28px 8px;
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted); min-height: 28px;
}
.typing-dots { display: flex; gap: 3px; }
.typing-dots span {
  width: 5px; height: 5px;
  background: var(--accent); border-radius: 50%;
  animation: bounce 1.2s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%           { transform: translateY(-5px); }
}

/* ── Input ────────────────────────────── */
.chat-input-area {
  flex-shrink: 0;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  box-shadow: 0 -2px 8px rgba(26,39,68,.04);
}

.chat-input-wrapper {
  display: flex; align-items: flex-end; gap: 10px;
  background: var(--bg-2);
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  transition: var(--transition);
}
.chat-input-wrapper:focus-within {
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.msg-input {
  flex: 1; background: none; border: none;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px; line-height: 1.5;
  resize: none; outline: none;
  max-height: 140px; overflow-y: auto;
}
.msg-input::placeholder { color: var(--text-muted); }

.btn-send {
  background: var(--accent); border: none;
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: white; cursor: pointer;
  transition: var(--transition); flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(43,159,216,.3);
}
.btn-send:hover:not(:disabled) {
  background: var(--accent-hover); transform: scale(1.05);
}
.btn-send:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.input-meta {
  display: flex; justify-content: space-between;
  padding: 4px 2px 0;
  font-size: 11px; color: var(--text-muted);
}
.char-count.warn { color: #f59e0b; }
.char-count.over { color: var(--danger); }

/* ── Online panel ─────────────────────── */
.online-panel {
  width: var(--online-w); flex-shrink: 0;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  overflow-y: auto; padding: 16px 0;
}
.online-panel-title {
  padding: 0 16px 10px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 2px solid var(--gold);
  margin: 0 16px 8px;
  padding: 0 0 8px;
}
.online-list { list-style: none; padding: 0 8px; }
.online-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px;
  font-size: 13px; color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.online-list li:hover { background: var(--bg-2); }
.online-list li .u-dot {
  width: 8px; height: 8px;
  border-radius: 50%; background: #4ade80; flex-shrink: 0;
}

/* ── Toast ────────────────────────────── */
.toast-container {
  position: fixed; bottom: 24px; right: 24px;
  z-index: 9999; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.toast {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px; color: var(--text-primary);
  box-shadow: var(--shadow-md);
  animation: toast-in .25s ease;
  pointer-events: auto; max-width: 320px;
}
.toast.error   { border-left-color: var(--danger); }
.toast.success { border-left-color: #22c55e; }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) { .online-panel { display: none; } }

@media (max-width: 640px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    z-index: 50; transform: translateX(-100%);
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sidebar-toggle { display: flex; }
  .input-hint { display: none; }
}

/* ══════════════════════════════════════
   ДОПОЛНЕНИЯ v2: Админ, ЛС, Баны
══════════════════════════════════════ */

/* Удалённое сообщение */
.msg-deleted { color: var(--text-muted); font-style: italic; font-size: 13px; }

/* Кнопка удаления сообщения */
.btn-del-msg {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 12px; padding: 0 4px;
  border-radius: 4px; opacity: 0;
  transition: var(--transition);
  margin-left: auto;
}
.msg-group:hover .btn-del-msg { opacity: 1; }
.btn-del-msg:hover { color: var(--danger); background: rgba(224,82,82,.1); }

/* Значок роли */
.role-admin { font-size: 12px; margin-left: 2px; }

/* Контекстное меню пользователя */
.user-ctx-menu {
  background: var(--bg-1);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  overflow: hidden;
  animation: ctx-in .15s ease;
}
@keyframes ctx-in {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.ctx-header {
  padding: 10px 14px 8px;
  font-weight: 700; font-size: 13px;
  color: var(--accent-dark);
  border-bottom: 1px solid var(--border);
}
.ctx-separator {
  padding: 6px 14px 4px;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.ctx-btn {
  display: block; width: 100%;
  padding: 8px 14px; text-align: left;
  background: none; border: none;
  color: var(--text-secondary); font-size: 13px;
  cursor: pointer; transition: var(--transition);
}
.ctx-btn:hover { background: var(--bg-2); color: var(--text-primary); }
.ctx-ban { color: #e8a020; }
.ctx-ban:hover { background: rgba(232,160,32,.08); }
.ctx-perm { color: var(--danger); }
.ctx-perm:hover { background: rgba(224,82,82,.08); }

/* Админ-панель */
.admin-panel {
  position: fixed; inset: 0;
  background: rgba(26,39,68,.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.admin-panel > div {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 800px;
  max-height: 85vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: auth-in .3s ease;
}
.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 2px solid var(--gold);
}
.admin-panel-header h2 { font-size: 18px; color: var(--accent-dark); }
.admin-panel-header button {
  background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 18px; padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.admin-panel-header button:hover { background: var(--bg-2); color: var(--danger); }

.admin-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
}
.stat-card {
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 14px; text-align: center;
  border: 1px solid var(--border);
}
.stat-num { font-size: 28px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

.admin-table-wrap { overflow-y: auto; flex: 1; padding: 0 24px 20px; }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.admin-table th {
  text-align: left; padding: 8px 10px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-table td { padding: 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.admin-table tr:hover td { background: var(--bg-2); }
.banned-row td { background: rgba(224,82,82,.04); }

.role-badge {
  display: inline-block; padding: 2px 8px;
  border-radius: 20px; font-size: 11px; font-weight: 600;
}
.role-badge.admin { background: rgba(232,160,32,.15); color: #b07800; }
.role-badge.user  { background: var(--accent-dim); color: var(--accent); }

.ban-badge  { background: rgba(224,82,82,.12); color: var(--danger); padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.ok-badge   { background: rgba(34,197,94,.1); color: #16a34a; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }

.ban-select {
  padding: 4px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-2); color: var(--text-primary);
  font-size: 12px; cursor: pointer;
}
.btn-unban {
  padding: 4px 12px; border-radius: var(--radius-sm);
  border: 1px solid #22c55e; background: rgba(34,197,94,.1);
  color: #16a34a; font-size: 12px; cursor: pointer;
  transition: var(--transition);
}
.btn-unban:hover { background: #22c55e; color: white; }

/* Админ пункт меню */
.admin-menu-item {
  border-top: 1px solid rgba(255,255,255,.1) !important;
  margin-top: 8px !important;
  color: var(--gold) !important;
}
.admin-menu-item:hover { background: rgba(232,160,32,.15) !important; }

/* ══════════════════════════════════════
   v3: Readonly, Edit, Admin tabs, Delete
══════════════════════════════════════ */

/* Readonly режим */
.chat-input-wrapper.readonly {
  background: #fef3f3 !important;
  border-color: var(--danger) !important;
}
.msg-input:disabled { cursor: not-allowed; color: var(--text-muted); }

/* Индикатор редактирования */
.edit-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  font-size: 12px; color: var(--accent);
}
.edit-indicator button {
  margin-left: auto; background: none; border: none;
  color: var(--text-muted); cursor: pointer; font-size: 14px;
  padding: 0 4px; border-radius: 4px;
}
.edit-indicator button:hover { color: var(--danger); }

/* Кнопки действий над сообщением */
.msg-action-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; padding: 2px 5px;
  border-radius: 4px; color: var(--text-muted);
  transition: var(--transition);
}
.btn-edit-msg:hover { color: var(--accent); background: var(--accent-dim); }
.btn-del-msg:hover  { color: var(--danger); background: rgba(224,82,82,.1); }

/* Пометка "ред." */
.msg-edited { font-size: 11px; color: var(--text-muted); font-style: italic; margin-left: 4px; }

/* Кнопка переименования комнаты */
.btn-rename-room {
  margin-left: auto; background: none; border: none;
  color: rgba(255,255,255,.3); cursor: pointer;
  font-size: 12px; padding: 2px 5px; border-radius: 4px;
  opacity: 0; transition: var(--transition);
}
.room-list li:hover .btn-rename-room { opacity: 1; }
.btn-rename-room:hover { color: var(--gold); }

/* Кнопка создания комнаты */
.room-create-btn {
  color: var(--gold) !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  margin-top: 4px !important;
}
.room-create-btn:hover { background: rgba(232,160,32,.15) !important; }

/* Контекстное меню — новые кнопки */
.ctx-green { color: #22c55e !important; }
.ctx-green:hover { background: rgba(34,197,94,.08) !important; }
.ctx-red { color: var(--danger) !important; }
.ctx-red:hover { background: rgba(224,82,82,.08) !important; }

/* Админ-панель — табы */
.admin-panel {
  position: fixed; inset: 0;
  background: rgba(26,39,68,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.admin-panel-inner {
  background: var(--bg-1);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 920px;
  max-height: 90vh;
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: auth-in .3s ease;
}
.admin-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 2px solid var(--gold);
  flex-shrink: 0;
}
.admin-panel-header h2 { font-size: 17px; color: var(--accent-dark); }
.admin-close-btn {
  background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-size: 18px; padding: 4px 8px;
  border-radius: var(--radius-sm); transition: var(--transition);
}
.admin-close-btn:hover { background: var(--bg-2); color: var(--danger); }

.admin-stats {
  display: flex; gap: 10px; flex-wrap: wrap;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 10px 16px; text-align: center;
  min-width: 90px;
}
.stat-num { font-size: 24px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

/* Табы в панели */
.admin-tabs {
  display: flex; gap: 0;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0; overflow-x: auto;
  padding: 0 16px;
}
.admin-tab {
  padding: 10px 14px; border: none; background: transparent;
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: var(--transition);
}
.admin-tab:hover { color: var(--text-primary); }
.admin-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.admin-content { flex: 1; overflow-y: auto; padding: 16px 24px; }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
.admin-empty { text-align: center; color: var(--text-muted); padding: 40px; font-size: 14px; }

/* Таблица */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; padding: 8px 10px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-muted);
  border-bottom: 2px solid var(--border);
}
.admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); }
.admin-table tr:hover td { background: var(--bg-2); }
.banned-row td { background: rgba(224,82,82,.04); }
.msg-preview { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-secondary); }
.room-hash-sm { color: var(--text-muted); font-weight: 700; margin-right: 2px; }

.role-badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }
.role-badge.admin { background: rgba(232,160,32,.15); color: #b07800; }
.role-badge.user  { background: var(--accent-dim); color: var(--accent); }
.ban-badge { background: rgba(224,82,82,.12); color: var(--danger); padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }

.ban-select {
  padding: 4px 8px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-mid);
  background: var(--bg-2); color: var(--text-primary);
  font-size: 12px; cursor: pointer; margin-right: 6px;
}
.btn-success-sm {
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid #22c55e; background: rgba(34,197,94,.1);
  color: #16a34a; font-size: 12px; cursor: pointer; transition: var(--transition);
}
.btn-success-sm:hover { background: #22c55e; color: white; }
.btn-danger-sm {
  padding: 4px 10px; border-radius: var(--radius-sm);
  border: 1px solid var(--danger); background: rgba(224,82,82,.1);
  color: var(--danger); font-size: 12px; cursor: pointer; transition: var(--transition);
}
.btn-danger-sm:hover { background: var(--danger); color: white; }

code { font-family: var(--font-mono); font-size: 12px; background: var(--bg-2); padding: 2px 5px; border-radius: 3px; }

/* ── Ссылки в сообщениях ──────────────────────────────────── */
.msg-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
  transition: var(--transition);
}
.msg-link:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

.msg-link-blocked {
  color: var(--text-muted);
  font-style: italic;
  font-size: 12px;
  background: rgba(224,82,82,.08);
  padding: 1px 6px;
  border-radius: 3px;
  cursor: default;
}

/* Кнопки действий — под текстом сообщения */

/* Заблокированная ссылка для админа — видна но не кликабельна */
.msg-link-blocked-admin {
  color: var(--text-muted);
  text-decoration: underline dashed;
  text-underline-offset: 2px;
  cursor: help;
}

/* ── Строка контента сообщения (кнопки + текст + reply) ───── */
.msg-content-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

/* Кнопки действий — слева от текста */
.btn-edit-msg:hover { color: var(--accent); background: var(--accent-dim); }
.btn-del-msg:hover  { color: var(--danger); background: rgba(224,82,82,.1); }

/* Кнопка ответа — справа от текста */
.msg-quote:hover { background: var(--bg-hover); }
.msg-quote-nick {
  font-size: 12px; font-weight: 700;
  color: var(--accent); flex-shrink: 0;
  white-space: nowrap;
}
.msg-quote-text {
  font-size: 12px; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Индикатор редактирования/ответа */
.edit-indicator {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border-left: 3px solid var(--accent);
  font-size: 12px; color: var(--accent);
}
.edit-indicator button {
  margin-left: auto; background: none; border: none;
  color: var(--text-muted); cursor: pointer;
  font-size: 16px; padding: 0 4px; border-radius: 4px;
}
.edit-indicator button:hover { color: var(--danger); }

/* ══════════════════════════════════════
   v4: Кнопки всегда видны + мобильная
══════════════════════════════════════ */

/* Кнопки действий — всегда видны на своих сообщениях */
#room-list li[draggable="true"]:active { cursor: grabbing; }
#room-list li.dragging { opacity: .4; }
#room-list li.drag-over {
  border-top: 2px solid var(--gold);
  background: rgba(232,160,32,.1) !important;
}

/* ══════════════════════════════════════
   МОБИЛЬНАЯ АДАПТАЦИЯ
══════════════════════════════════════ */
@media (max-width: 768px) {

  /* Кнопки всегда видны на мобильном */
    
  /* Размер кнопок больше для тапа */
  .msg-action-btn {
    font-size: 14px;
    padding: 4px 7px;
    min-width: 28px;
    min-height: 28px;
    display: flex; align-items: center; justify-content: center;
  }
  
  /* Сайдбар поверх контента */
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .25s ease;
    width: 280px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,.3);
  }

  /* Затемнение фона при открытом сайдбаре */
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 199;
  }
  .sidebar.open ~ .sidebar-overlay { display: block; }

  /* Тоггл всегда виден */
  .sidebar-toggle { display: flex !important; }

  /* Панель онлайн — скрыть */
  .online-panel { display: none !important; }

  /* Заголовок чата */
  .chat-header { padding: 0 12px; }
  .chat-room-name { font-size: 15px; }

  /* Поле ввода */
  .chat-input-area { padding: 8px 12px 12px; }
  .msg-input { font-size: 16px; } /* предотвращает зум на iOS */

  /* Сообщения */
  .messages-container { padding: 12px; }
  .msg-group { padding: 3px 4px; }
  .msg-avatar { width: 32px; height: 32px; font-size: 12px; }
  .msg-text { font-size: 15px; }

  /* Контекстное меню — растянуть */
  .user-ctx-menu {
    min-width: 220px;
    font-size: 15px;
  }
  .ctx-btn { padding: 12px 16px; font-size: 15px; }

  /* Админ-панель на мобильном */
  .admin-panel { padding: 8px; }
  .admin-panel-inner { max-height: 95vh; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-tabs { overflow-x: auto; }
  .admin-table { font-size: 12px; }
  .admin-table th, .admin-table td { padding: 6px 8px; }

  /* Toast снизу по центру */
  .toast-container {
    bottom: 16px; right: 12px; left: 12px;
    align-items: center;
  }
  .toast { max-width: 100%; text-align: center; }
}

@media (max-width: 480px) {
  .sidebar { width: 260px; }
  .input-hint { display: none; }
  .msg-avatar { width: 28px; height: 28px; font-size: 11px; }
  .msg-nick { font-size: 13px; }
  .msg-text { font-size: 14px; }
  .chat-input-area { padding: 6px 10px 10px; }
}

/* ══════════════════════════════════════
   ПРИНУДИТЕЛЬНОЕ отображение кнопок
══════════════════════════════════════ */

/* Своё сообщение — кнопки всегда видны */

/* ══════════════════════════════════════
   Кнопки действий — финальные правила
══════════════════════════════════════ */

/* Базовый стиль кнопок — скрыты */
.msg-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  visibility: hidden;
  flex-shrink: 0;
  padding-top: 1px;
  transition: visibility .15s;
}

.msg-reply-btn {
  background: none; border: none; cursor: pointer;
  font-size: 14px; padding: 2px 5px;
  border-radius: 4px; color: var(--text-muted);
  visibility: hidden;
  flex-shrink: 0; margin-top: 1px;
  transition: visibility .15s, color .15s, background .15s;
}

/* Показать при наведении */
.msg-group:hover .msg-actions,
.msg-group:hover .msg-reply-btn { visibility: visible; }

/* Всегда видны на своих сообщениях */
.msg-group.is-mine .msg-actions,
.msg-group.is-mine .msg-reply-btn { visibility: visible; }

/* Всегда видны для админа на чужих */
.msg-group.is-admin-view .msg-actions,
.msg-group.is-admin-view .msg-reply-btn { visibility: visible; }

/* Hover эффекты */
.msg-action-btn {
  background: none; border: none; cursor: pointer;
  font-size: 12px; padding: 2px 4px;
  border-radius: 4px; color: var(--text-muted);
  transition: color .15s, background .15s;
  line-height: 1;
}
.btn-edit-msg:hover { color: var(--accent); background: var(--accent-dim); }
.btn-del-msg:hover  { color: var(--danger); background: rgba(224,82,82,.1); }
.msg-reply-btn:hover { color: var(--accent); background: var(--accent-dim); }

/* Мобильные — всегда видны (нет hover) */
@media (hover: none) {
  .msg-actions,
  .msg-reply-btn { visibility: visible; }
}

/* Мобильные — крупнее для тапа */
@media (max-width: 768px) {
  .msg-action-btn {
    font-size: 14px; padding: 4px 7px;
    min-width: 28px; min-height: 28px;
  }
  .msg-reply-btn {
    font-size: 16px; padding: 4px 7px;
    min-width: 28px; min-height: 28px;
  }
}

/* ── Удаление канала ──────────────────────────────────────── */
.btn-delete-room {
  margin-left: 2px; background: none; border: none;
  color: rgba(255,255,255,.2); cursor: pointer;
  font-size: 11px; padding: 2px 4px; border-radius: 4px;
  opacity: 0; transition: var(--transition);
}
.room-list li:hover .btn-delete-room { opacity: 1; }
.btn-delete-room:hover { color: #ff8080 !important; }

/* ── DM badge (непрочитанные) ─────────────────────────────── */
.dm-badge {
  margin-left: auto;
  color: #4ade80;
  font-size: 10px;
  animation: pulse 1.5s infinite;
}

/* ── DM сообщения ─────────────────────────────────────────── */
.dm-msg.is-mine .msg-nick { color: var(--accent); }
/* ═══════════════════════════════════════════════════════════
   ADMIN BADGE — SHIELD + RED NICK
═══════════════════════════════════════════════════════════ */
.role-admin {
  font-size: 14px;
  margin-left: 3px;
  vertical-align: middle;
  filter: drop-shadow(0 0 3px rgba(220,50,50,0.5));
}
.is-admin-nick {
  color: #e03232 !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(220,50,50,0.25);
}
.online-admin-nick {
  color: #e03232;
  font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   GUEST READ-ONLY INPUT
═══════════════════════════════════════════════════════════ */
.readonly-guest .msg-input {
  background: rgba(44, 90, 160, 0.05);
  cursor: pointer;
  color: #6b7280;
  font-style: italic;
}
.readonly-guest .btn-send {
  background: linear-gradient(135deg, #2c5aa0, #1a3a70);
  opacity: 1;
  cursor: pointer;
}
.readonly-guest .btn-send:hover {
  transform: scale(1.05);
}
.readonly-guest::after {
  content: '👁 Режим чтения';
  position: absolute;
  top: -22px;
  left: 12px;
  font-size: 10px;
  color: #9ca3af;
  letter-spacing: 0.05em;
}
#chat-input-wrapper {
  position: relative;
}

/* ═══════════════════════════════════════════════════════════
   AUTH MODAL
═══════════════════════════════════════════════════════════ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.75);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.auth-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 380px;
  max-width: calc(100vw - 32px);
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.auth-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none; border: none;
  font-size: 18px; color: #9ca3af;
  cursor: pointer; padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}
.auth-modal-close:hover { background: #f3f4f6; color: #374151; }
.auth-modal-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.auth-modal-msg {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 18px;
  text-align: center;
}
.auth-modal-tabs {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 20px;
}
.auth-modal-tab {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s;
}
.auth-modal-tab.active {
  background: #fff;
  color: #1a2744;
  box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.auth-modal-form {
  display: none;
}
.auth-modal-form.active {
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   ADMIN PANEL IMPROVEMENTS
═══════════════════════════════════════════════════════════ */
.admin-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-shield-icon {
  font-size: 22px;
  filter: drop-shadow(0 0 4px rgba(44,90,160,0.4));
}
.admin-panel-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a2744;
}
.stat-card.stat-warn .stat-num { color: #e8a020; }
.stat-card.stat-danger .stat-num { color: #e05252; }
.msg-count-badge {
  background: #e8f0fe;
  color: #2c5aa0;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}
.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 0 2px;
}
.admin-search-bar input {
  flex: 1;
  padding: 8px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  outline: none;
  transition: border 0.2s;
}
.admin-search-bar input:focus {
  border-color: #2c5aa0;
}
.admin-search-count {
  font-size: 12px;
  color: #9ca3af;
  white-space: nowrap;
}
.admin-ip-form {
  max-width: 400px;
  padding: 8px 0;
}
.admin-ip-form .field {
  margin-bottom: 14px;
}
.admin-ip-form .field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}
.admin-ip-form .field input {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  box-sizing: border-box;
}

/* ═══════════════════════════════════════════════════════════
   GUEST BUTTON ON AUTH SCREEN
═══════════════════════════════════════════════════════════ */
.auth-guest-divider {
  display: flex;
  align-items: center;
  margin: 16px 0 12px;
  gap: 12px;
  color: #9ca3af;
  font-size: 12px;
}
.auth-guest-divider::before,
.auth-guest-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}
.btn-guest {
  width: 100%;
  padding: 11px;
  background: transparent;
  border: 1.5px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-guest:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #1f2937;
}
.btn-guest i {
  font-size: 15px;
  color: #6b7280;
}