/* ═══════════════════════════════════════
   MACROSOFT TEAMS - Stylesheet
   Teams-Inspired Light Theme
   ═══════════════════════════════════════ */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f0f0f0;
  --bg-input: #ffffff;
  --bg-hover: #f5f5f5;
  --bg-rail: #292929;
  --bg-rail-hover: #3d3d3d;
  --bg-rail-active: #4f4f4f;
  --text-primary: #242424;
  --text-secondary: #616161;
  --text-muted: #adadad;
  --accent: #6264a7;
  --accent-hover: #4f52b2;
  --accent-light: #e8ebfa;
  --online: #92c353;
  --danger: #c4314b;
  --danger-hover: #d13438;
  --border: #e0e0e0;
  --shadow: rgba(0, 0, 0, 0.08);
  --radius: 6px;
  --radius-lg: 12px;
}

/* ──────────────────────────────────
   RESET & BASE
   ────────────────────────────────── */

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow: hidden;
}

a {
  color: var(--accent-hover);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* ──────────────────────────────────
   BUTTONS
   ────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-full {
  width: 100%;
}

.btn-small {
  padding: 4px 10px;
  font-size: 12px;
}

.btn-icon {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius);
  font-size: 16px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.btn-icon i {
  font-size: 16px;
  line-height: 1;
}

/* ──────────────────────────────────
   FORM ELEMENTS
   ────────────────────────────────── */

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(98, 100, 167, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.toggle-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

/* ──────────────────────────────────
   AUTH PAGES (keep dark)
   ────────────────────────────────── */

.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #1E1E2E 0%, #1a1a2e 50%, #16213e 100%);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #2B2B3D;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid #3B3B4F;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.logo-icon {
  display: inline-block;
  margin-bottom: 12px;
}

.auth-logo h1 {
  font-size: 22px;
  font-weight: 700;
  color: #7B83EB;
  letter-spacing: 1px;
}

.auth-card h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 24px;
  color: #E1E1E6;
}

.auth-card .form-group label {
  color: #A0A0B0;
}

.auth-card .form-group input {
  background: #3B3B4F;
  border-color: #3B3B4F;
  color: #E1E1E6;
}

.auth-card .form-group input::placeholder {
  color: #6B6B80;
}

.auth-card .form-group input:focus {
  border-color: #6264A7;
  box-shadow: 0 0 0 2px rgba(98, 100, 167, 0.25);
}

.error-message {
  background: rgba(196, 49, 75, 0.15);
  border: 1px solid var(--danger);
  color: #ff6b7a;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

.error-message.shake {
  animation: shake 0.4s ease;
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #3B3B4F;
}

.auth-footer p {
  color: #A0A0B0;
  font-size: 13px;
}

/* ──────────────────────────────────
   APP LAYOUT
   ────────────────────────────────── */

.app-container {
  display: grid;
  grid-template-columns: 68px 320px 1fr;
  height: 100vh;
  overflow: hidden;
}

/* ──────────────────────────────────
   ICON RAIL
   ────────────────────────────────── */

.icon-rail {
  background: var(--bg-rail);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 68px;
  height: 100vh;
  overflow: hidden;
}

.rail-top,
.rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
}

.rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: transparent;
  border: none;
  color: #b4b4b4;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
  transition: all 0.15s ease;
}

.rail-btn:hover {
  background: var(--bg-rail-hover);
  color: #e0e0e0;
}

.rail-btn.active {
  background: var(--bg-rail-active);
  color: #ffffff;
}

.rail-label {
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  margin-top: 1px;
}

.rail-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ──────────────────────────────────
   SIDEBAR
   ────────────────────────────────── */

.sidebar {
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px;
}

.sidebar-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.sidebar-header-actions {
  display: flex;
  gap: 2px;
}

.sidebar-header-actions .btn-icon {
  color: var(--text-muted);
  padding: 6px;
}
.sidebar-header-actions .btn-icon:hover {
  color: var(--text-primary);
}

/* Filter pills */
.sidebar-filters {
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  overflow-x: auto;
}

.filter-pill {
  padding: 4px 12px;
  border-radius: 16px;
  border: none;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  background: var(--border);
}

.filter-pill.active {
  background: var(--accent-light);
  color: var(--accent);
}

.filter-pill i {
  font-size: 10px;
}

/* Sidebar content */
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

/* Quick links */
.sidebar-quick-links {
  padding: 4px 0;
}

.sidebar-link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-primary);
  transition: background 0.1s ease;
}

.sidebar-link-item:hover {
  background: var(--bg-hover);
}

.sidebar-link-item i {
  width: 20px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Collapsible sections */
.sidebar-section {
  border-top: 1px solid var(--border);
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.add-channel-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
  background: none;
  border: none;
}

.section-header-row:hover .add-channel-btn,
.add-channel-btn:focus {
  opacity: 1;
}

.add-channel-btn:hover {
  background: var(--hover-bg);
  color: var(--text-primary);
}

.section-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-family: inherit;
  transition: background 0.1s;
}

.section-toggle:hover {
  background: var(--bg-hover);
}

.section-toggle i {
  font-size: 10px;
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.section-toggle.collapsed i {
  transform: rotate(-90deg);
}

.section-content.collapsed {
  display: none;
}

/* Team group */
.team-group {
  padding: 0;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.1s;
}

.team-header:hover {
  background: var(--bg-hover);
}

.team-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 10px;
  color: var(--text-muted);
  width: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.team-toggle.collapsed i {
  transform: rotate(-90deg);
}

.team-channels.collapsed {
  display: none;
}

.team-avatar,
.channel-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.team-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

/* Channel items in sidebar */
.channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 52px;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.1s ease;
  position: relative;
  font-size: 14px;
  color: var(--text-primary);
}

.channel-item:hover {
  background: var(--bg-hover);
}

.channel-item.active {
  background: var(--accent-light);
  color: var(--accent-hover);
  border-radius: 4px;
  margin: 0 8px;
  padding-left: 44px;
}

.channel-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.channel-item.active .channel-icon {
  color: var(--accent-hover);
}

.channel-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.join-badge {
  font-size: 11px;
  color: var(--accent-hover);
  font-weight: 500;
}

/* Private channels group */
.private-channels-group {
  padding: 0;
}

/* See all teams link */
.see-all-teams {
  display: block;
  padding: 10px 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.see-all-teams:hover {
  text-decoration: underline;
}

/* Sidebar footer */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-primary);
}

.user-status {
  font-size: 11px;
  color: var(--online);
}

.sidebar-actions {
  display: flex;
  gap: 2px;
}

/* ──────────────────────────────────
   AVATAR
   ────────────────────────────────── */

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  text-transform: uppercase;
}

.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}

/* ──────────────────────────────────
   MAIN AREA & TOP BAR
   ────────────────────────────────── */

.main-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.top-bar {
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  min-height: 48px;
  gap: 0;
}

.mobile-menu-btn {
  display: none;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 16px;
  flex-shrink: 0;
}

.top-bar-left h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

/* Tab navigation */
.top-bar-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  height: 100%;
}

.tab-btn {
  background: none;
  border: none;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  position: relative;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.tab-btn.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

.tab-add {
  font-size: 12px;
  padding: 14px 12px;
}

.top-bar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.meet-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 14px;
}

.meet-now-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.meet-now-chevron {
  font-size: 10px;
  color: var(--text-muted);
}

.member-count {
  font-size: 12px;
  color: var(--text-muted);
}

/* ──────────────────────────────────
   CONTENT WRAPPER
   ────────────────────────────────── */

.content-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ──────────────────────────────────
   CHAT AREA
   ────────────────────────────────── */

.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.messages-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.welcome-message {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.welcome-message h3 {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Messages */
.message {
  display: flex;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: background 0.1s ease;
  animation: fadeIn 0.2s ease;
}

.message:hover {
  background: var(--bg-hover);
}

.message:hover .message-actions {
  opacity: 1;
}

.message-avatar {
  flex-shrink: 0;
  padding-top: 2px;
}

.message-body {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.message-author {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
}

.message-author.own {
  color: var(--accent-hover);
}

.message-time {
  font-size: 11px;
  color: var(--text-muted);
}

/* Message action buttons */
.message-actions {
  display: flex;
  gap: 2px;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.msg-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background 0.1s;
  color: var(--text-muted);
}

.msg-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.msg-action-btn i {
  font-size: 13px;
}

.message-content {
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  color: var(--text-primary);
}

.message-content a {
  color: var(--accent-hover);
}

.message-content code {
  background: var(--bg-tertiary);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 13px;
}

.deleted-content {
  color: var(--text-muted);
  font-style: italic;
}

/* System messages */
.system-message {
  justify-content: center;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 20px;
  font-size: 12px;
  color: var(--text-muted);
  min-height: 24px;
}

.typing-dots {
  display: flex;
  gap: 3px;
}

.typing-dots span {
  width: 5px;
  height: 5px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingPulse 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) { animation-delay: 0s; }
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Message input - Teams style */
.message-input-bar {
  padding: 12px 20px 16px;
  background: var(--bg-primary);
  position: relative;
}

.input-container {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input-container:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.message-input-bar textarea {
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 120px;
  line-height: 1.4;
}

.message-input-bar textarea::placeholder {
  color: var(--text-muted);
}

.input-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 8px;
  border-top: 1px solid var(--border);
}

.input-actions .btn-icon {
  color: var(--text-muted);
  padding: 6px 8px;
}

.input-actions .btn-icon:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.input-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

.btn-send {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: auto;
}

.btn-send:hover {
  background: var(--bg-hover);
  color: var(--accent);
}

.btn-send i {
  font-size: 16px;
}

/* Attach btn */
.attach-btn {
  font-size: 16px;
}

/* File preview bar */
.file-preview-bar {
  display: flex;
  gap: 8px;
  padding: 8px 10px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  flex-wrap: wrap;
}

.file-preview-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  max-width: 200px;
}

.file-thumb {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 4px;
}

.file-thumb-icon {
  font-size: 20px;
}

.file-thumb-icon i {
  font-size: 20px;
  color: var(--text-muted);
}

.file-preview-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  color: var(--text-secondary);
}

.file-remove-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 0 2px;
}

.file-remove-btn:hover {
  color: var(--danger);
}

/* Drag and drop */
.chat-area.drag-over {
  outline: 2px dashed var(--accent);
  outline-offset: -4px;
  background: rgba(98, 100, 167, 0.05);
}

/* Message file attachments */
.message-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.file-attachment.image-attachment {
  max-width: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.file-attachment.image-attachment img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

.file-attachment.file-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  transition: background 0.15s;
}

.file-attachment.file-link:hover {
  background: var(--bg-tertiary);
  text-decoration: none;
}

.file-icon {
  font-size: 20px;
}

.file-icon i {
  font-size: 18px;
  color: var(--text-muted);
}

.file-name {
  font-weight: 500;
}

.file-size {
  color: var(--text-muted);
  font-size: 11px;
}

/* Emoji reactions */
.message-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s;
}

.reaction-badge:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.reaction-badge.own {
  background: var(--accent-light);
  border-color: var(--accent);
}

.reaction-count {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* Thread link */
.thread-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--accent-hover);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  font-weight: 500;
}

.thread-link:hover {
  text-decoration: underline;
}

/* Meeting banner */
.meeting-message {
  padding: 4px 12px !important;
}

.meeting-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--accent-light);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-hover);
}

.meeting-icon {
  font-size: 20px;
}

.meeting-icon i {
  font-size: 18px;
  color: var(--accent-hover);
}

.meeting-text {
  flex: 1;
  font-weight: 500;
  font-size: 13px;
}

/* ──────────────────────────────────
   MEMBERS PANEL
   ────────────────────────────────── */

.members-panel {
  width: 240px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.members-panel.hidden {
  width: 0;
  opacity: 0;
  border-left: none;
  overflow: hidden;
}

.members-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.members-header h3 {
  font-size: 14px;
  font-weight: 600;
}

.members-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.member-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
}

.member-item:hover {
  background: var(--bg-hover);
}

.member-info {
  flex: 1;
  min-width: 0;
}

.member-name {
  font-size: 13px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-role {
  font-size: 11px;
  color: var(--text-muted);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.online-dot.online {
  background: var(--online);
  box-shadow: 0 0 4px var(--online);
}

.online-dot.offline {
  background: var(--text-muted);
}

/* ──────────────────────────────────
   THREAD PANEL
   ────────────────────────────────── */

.thread-panel {
  width: 340px;
  background: var(--bg-primary);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.thread-header h3 {
  font-size: 15px;
  font-weight: 600;
}

.thread-parent {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.thread-parent .message {
  margin: 0;
  padding: 4px 0;
}

.thread-replies {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}

.thread-reply {
  display: flex;
  gap: 8px;
  padding: 8px 4px;
  animation: fadeIn 0.2s ease;
}

.thread-reply-body {
  flex: 1;
  min-width: 0;
}

.thread-reply-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.thread-input-bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
}

.thread-input-bar textarea {
  flex: 1;
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 80px;
  line-height: 1.4;
}

.thread-input-bar textarea:focus {
  border-color: var(--accent);
}

.thread-input-bar .btn-send {
  width: 34px;
  height: 34px;
  background: var(--accent);
  color: white;
  border-radius: var(--radius);
}

.thread-input-bar .btn-send:hover {
  background: var(--accent-hover);
  color: white;
}

/* ──────────────────────────────────
   EMOJI PICKER
   ────────────────────────────────── */

.emoji-picker {
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 2500;
  padding: 12px;
  max-width: 320px;
  animation: fadeIn 0.15s ease;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 2px;
  max-height: 240px;
  overflow-y: auto;
}

.emoji-item {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emoji-item:hover {
  background: var(--bg-hover);
}

/* ──────────────────────────────────
   VIDEO OVERLAY
   ────────────────────────────────── */

.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 15, 25, 0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

.video-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.video-header span:last-child {
  font-size: 13px;
  font-weight: 400;
  color: #a0a0a0;
}

.video-grid {
  flex: 1;
  display: grid;
  gap: 12px;
  padding: 12px 24px;
  overflow: hidden;
}

.video-grid.grid-1 {
  grid-template-columns: 1fr;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.video-grid.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.video-grid.grid-4 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.video-grid.grid-many {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.video-grid.grid-6 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.video-grid.grid-9 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
}

.video-grid.grid-16 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
}

.video-grid.grid-25 {
  grid-template-columns: repeat(5, 1fr);
  grid-auto-rows: 1fr;
}

.video-grid.grid-huge {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  grid-auto-rows: minmax(100px, 1fr);
}

/* Screen share layout */
.video-grid.has-screen-share {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.video-tile.screen-share-tile {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  min-height: 0;
}

.video-tile.screen-share-tile video {
  object-fit: contain;
  background: #000;
}

/* Active effect button */
.video-control-btn.active {
  background: var(--primary);
}

.video-control-btn.active:hover {
  background: var(--primary-hover);
}

.video-tile {
  position: relative;
  background: #2b2b3d;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
}

.video-tile video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-tile.local video {
  transform: scaleX(-1);
}

.video-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.video-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
}

.video-control-btn {
  background: #323244;
  border: none;
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-control-btn:hover {
  background: #3B3B4F;
  transform: scale(1.05);
}

.video-control-btn.muted {
  background: var(--danger);
}

.video-control-btn.end-call-btn {
  background: var(--danger);
}

.video-control-btn.end-call-btn:hover {
  background: var(--danger-hover);
}

.video-control-btn i {
  font-size: 22px;
}

/* ──────────────────────────────────
   MODALS
   ────────────────────────────────── */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 440px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px var(--shadow);
  animation: slideUp 0.3s ease;
}

.modal-large {
  max-width: 700px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.modal-close {
  font-size: 18px;
}

.modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
}

/* ──────────────────────────────────
   INVITE MODAL
   ────────────────────────────────── */

.invite-results {
  margin-top: 12px;
}

.invite-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.invite-user-item:hover {
  background: var(--bg-hover);
}

.invite-user-name {
  flex: 1;
  font-size: 14px;
}

.no-results {
  text-align: center;
  color: var(--text-muted);
  padding: 20px;
  font-size: 13px;
}

/* ──────────────────────────────────
   ADMIN PANEL
   ────────────────────────────────── */

.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border: 1px solid var(--border);
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.admin-user-info {
  flex: 1;
  min-width: 0;
}

.admin-user-name {
  display: block;
  font-weight: 500;
  font-size: 13px;
}

.admin-user-email {
  font-size: 11px;
  color: var(--text-muted);
}

.admin-user-badges {
  display: flex;
  gap: 6px;
}

.role-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.role-badge.admin {
  background: var(--accent-light);
  color: var(--accent);
}

.status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}

.status-badge.active {
  background: rgba(146, 195, 83, 0.15);
  color: var(--online);
}

.status-badge.inactive {
  background: rgba(196, 49, 75, 0.15);
  color: var(--danger);
}

.admin-user-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.admin-self-label {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}

/* ──────────────────────────────────
   CONTEXT MENU
   ────────────────────────────────── */

.context-menu {
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 0;
  min-width: 160px;
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 3000;
  animation: fadeIn 0.1s ease;
}

.context-item {
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.1s;
  color: var(--text-primary);
}

.context-item:hover {
  background: var(--bg-hover);
}

.context-item.danger {
  color: var(--danger);
}

.context-item.disabled {
  color: var(--text-muted);
  cursor: default;
}

/* ──────────────────────────────────
   ACTIVITY PANEL
   ────────────────────────────────── */

.activity-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.activity-header {
  padding: 20px 20px 0;
}

.activity-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.activity-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.activity-tab {
  background: none;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  font-family: inherit;
  transition: all 0.15s;
}

.activity-tab:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.activity-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.activity-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.activity-empty i {
  font-size: 40px;
  opacity: 0.3;
}

.activity-item {
  display: flex;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.1s;
  border-bottom: 1px solid var(--bg-tertiary);
}

.activity-item:hover {
  background: var(--bg-hover);
}

.activity-item .avatar {
  flex-shrink: 0;
}

.activity-item-body {
  flex: 1;
  min-width: 0;
}

.activity-item-header {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
}

.activity-item-actor {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}

.activity-item-action {
  font-size: 12px;
  color: var(--text-secondary);
}

.activity-item-channel {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.activity-item-preview {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}

.activity-item-time {
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-left: auto;
}

/* ──────────────────────────────────
   STICKER PICKER
   ────────────────────────────────── */

.sticker-picker {
  position: fixed;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px var(--shadow);
  z-index: 2500;
  padding: 0;
  width: 320px;
  max-height: 360px;
  animation: fadeIn 0.15s ease;
  overflow: hidden;
}

.sticker-picker-header {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
}

.sticker-picker-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.sticker-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 8px;
  cursor: pointer;
  font-size: 28px;
  text-align: center;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticker-item:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  transform: scale(1.05);
}

/* ──────────────────────────────────
   FORMAT TOOLBAR
   ────────────────────────────────── */

.format-toolbar {
  display: flex;
  gap: 2px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}

.format-action {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.15s;
}

.format-action:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* ──────────────────────────────────
   MENTION DROPDOWN & HIGHLIGHTS
   ────────────────────────────────── */

.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 16px;
  right: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 -4px 16px var(--shadow);
  z-index: 2000;
  max-height: 200px;
  overflow-y: auto;
  animation: fadeIn 0.1s ease;
}

.mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.1s;
}

.mention-item:hover,
.mention-item.selected {
  background: var(--accent-light);
}

.mention-item-name {
  font-size: 13px;
  font-weight: 500;
}

.mention-item-username {
  font-size: 12px;
  color: var(--text-muted);
}

.mention-highlight {
  color: var(--accent-hover);
  font-weight: 600;
  background: var(--accent-light);
  padding: 0 3px;
  border-radius: 3px;
}

/* ──────────────────────────────────
   COMING SOON PANEL
   ────────────────────────────────── */

.coming-soon-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-primary);
}

.coming-soon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--text-muted);
}

.coming-soon-content i {
  font-size: 48px;
  opacity: 0.3;
}

.coming-soon-content h3 {
  font-size: 20px;
  color: var(--text-secondary);
}

/* ──────────────────────────────────
   DM ITEMS & NEW CHAT MODAL
   ────────────────────────────────── */

.dm-item {
  gap: 10px;
}

.dm-item .avatar.small {
  width: 28px;
  height: 28px;
  min-width: 28px;
  font-size: 11px;
}

/* New Chat Modal */
.new-chat-modal {
  width: 440px;
  max-height: 520px;
}

.new-chat-modal .modal-header {
  padding: 20px 24px 16px;
  border-bottom: none;
}

.new-chat-modal .modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.new-chat-modal .modal-body {
  padding: 0 24px 24px;
}

.new-chat-search-wrapper {
  position: relative;
  margin-bottom: 16px;
}

.new-chat-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.new-chat-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.new-chat-search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(98, 100, 167, 0.15);
}

.new-chat-search-input::placeholder {
  color: var(--text-muted);
}

.new-chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text-muted);
  gap: 12px;
}

.new-chat-empty-state i {
  font-size: 32px;
  opacity: 0.4;
}

.new-chat-empty-state p {
  font-size: 13px;
  text-align: center;
  margin: 0;
  line-height: 1.5;
}

.user-results-list {
  max-height: 340px;
  overflow-y: auto;
  border-radius: 8px;
}

.user-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}

.user-result-item:hover {
  background: var(--bg-hover);
}

.user-result-item .avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  font-size: 13px;
  font-weight: 600;
}

.user-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.user-result-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-result-username {
  font-size: 12px;
  color: var(--text-muted);
}

.user-result-username {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ──────────────────────────────────
   ANIMATIONS
   ────────────────────────────────── */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
  75% { transform: translateX(-4px); }
}

@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ──────────────────────────────────
   RESPONSIVE
   ────────────────────────────────── */

@media (max-width: 1024px) {
  .app-container {
    grid-template-columns: 68px 1fr;
  }

  .sidebar {
    position: fixed;
    left: 68px;
    top: 0;
    bottom: 0;
    width: 320px;
    z-index: 600;
    box-shadow: 4px 0 20px var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu-btn {
    display: block;
  }

  .members-panel {
    display: none;
  }

  .members-panel.visible {
    display: flex;
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 500;
    box-shadow: -4px 0 20px var(--shadow);
  }
}

@media (max-width: 768px) {
  .app-container {
    grid-template-columns: 1fr;
  }

  .icon-rail {
    display: none;
  }

  .sidebar {
    left: 0;
    width: 100%;
  }

  .top-bar-tabs {
    display: none;
  }

  .meet-now-text,
  .meet-now-chevron {
    display: none;
  }

  .video-grid.grid-2,
  .video-grid.grid-4,
  .video-grid.grid-6 {
    grid-template-columns: 1fr;
  }

  .video-grid.grid-9,
  .video-grid.grid-16,
  .video-grid.grid-25 {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-user-row {
    flex-wrap: wrap;
  }

  .admin-user-actions {
    width: 100%;
    margin-top: 8px;
  }

  .stat-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
