:root {
  --bg-primary: #080c14;
  --bg-card: rgba(18, 24, 38, 0.7);
  --bg-input: rgba(13, 19, 32, 0.85);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-focus: #00d2ff;
  --accent-blue: #0088cc;
  --accent-cyan: #00d2ff;
  --accent-purple: #7928ca;
  --accent-gradient: linear-gradient(135deg, #0088cc 0%, #00d2ff 50%, #6366f1 100%);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
}

/* Background Glowing Mesh */
.mesh-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 136, 204, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(0, 210, 255, 0.05) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2.5rem;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-card);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
}

.brand-logo svg {
  width: 24px;
  height: 24px;
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.version-tag {
  font-size: 0.72rem;
  background: rgba(0, 210, 255, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pill-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-disconnected .status-dot {
  background: var(--danger);
  box-shadow: 0 0 10px var(--danger);
}

.status-connecting {
  background: rgba(245, 158, 11, 0.1);
  color: #fde68a;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-connecting .status-dot {
  background: var(--warning);
  animation: pulse 1.5s infinite;
}

.status-connected {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.status-connected .status-dot {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Layout Container */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Cards & Glassmorphism */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.step-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border-radius: 9999px;
  letter-spacing: 0.05em;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.link {
  color: var(--accent-cyan);
  text-decoration: none;
  font-weight: 500;
}
.link:hover {
  text-decoration: underline;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.required {
  color: var(--accent-cyan);
}

.input-field {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
}

.input-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.15);
}

.code-input {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-align: center;
}

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.btn-icon {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
}
.btn-icon:hover {
  color: var(--text-primary);
}

/* Buttons */
.button-group {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  outline: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 136, 204, 0.35);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 22px rgba(0, 136, 204, 0.55);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-primary);
}

.btn-outline-danger {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
  transform: translateY(-1px);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn-glow {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.2) 0%, rgba(99, 102, 241, 0.2) 100%);
  border: 1px solid rgba(0, 210, 255, 0.4);
  color: var(--accent-cyan);
}
.btn-glow:hover {
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

.btn-sm {
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
  line-height: 1.2;
}

.btn-outline-warning {
  background: transparent;
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}
.btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.15);
}

.w-100 { width: 100%; }
.flex-1 { flex: 1; }

/* Notice Banners */
.code-notice {
  display: flex;
  gap: 1rem;
  background: rgba(0, 136, 204, 0.1);
  border: 1px solid rgba(0, 136, 204, 0.3);
  padding: 1rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  align-items: center;
}

.warning-notice {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
}

.notice-icon {
  font-size: 1.5rem;
}

.code-notice p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* User Profile Card */
.profile-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-top: 1rem;
}

.avatar-ring {
  position: relative;
}

.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--bg-primary);
}

.user-details h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.user-handle {
  font-size: 0.85rem;
  color: var(--accent-cyan);
}

.user-badges {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.tab-btn.active {
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.1);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

/* Actions Panel */
.action-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.action-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.action-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 380px;
}

.switch-badge {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  font-weight: 600;
}

/* Inspector */
.search-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.inspect-results {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem;
  max-height: 260px;
  overflow-y: auto;
}

.inspect-header {
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

.inspect-header h4 {
  font-size: 1rem;
}

.inspect-header p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.participant-item {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

/* Info blocks */
.info-block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-card);
}

.info-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.info-value {
  font-size: 0.85rem;
  color: var(--text-primary);
}

/* Console Section */
.console-card {
  grid-column: 1 / -1;
  padding: 1.25rem;
}

.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.console-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #f59e0b; }
.terminal-dot.green { background: #10b981; }

.btn-icon-small {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}
.btn-icon-small:hover {
  color: var(--text-primary);
}

.console-output {
  background: #04070d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 1rem;
  height: 200px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-line {
  line-height: 1.4;
  word-break: break-all;
}

.log-time {
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.log-info { color: #cbd5e1; }
.log-success { color: #34d399; }
.log-warning { color: #fbbf24; }
.log-error { color: #f87171; }

/* Utilities */
.hidden { display: none !important; }

.loader {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .navbar {
    padding: 1rem 1.5rem;
  }
}

/* ==========================================================================
   Multi-Tenant SaaS & Admin Regulation Styles
   ========================================================================== */

/* SaaS Auth Modal */
.saas-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.saas-modal {
  width: 100%;
  max-width: 440px;
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
}

.saas-modal-title {
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.saas-modal-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.saas-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-card);
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.saas-tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-weight: 600;
  padding-bottom: 0.65rem;
  cursor: pointer;
  font-size: 0.95rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.saas-tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.header-user-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  z-index: 150;
}

.nav-user-pill {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-card);
  border-radius: 30px;
  padding: 0.35rem 0.85rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: inherit;
}

.nav-user-pill-btn {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.nav-user-pill-btn:hover,
.nav-user-pill-btn.active {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.35);
  color: var(--accent-cyan);
}

.pill-caret-svg {
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.nav-user-pill-btn:hover .pill-caret-svg,
.nav-user-pill-btn.active .pill-caret-svg {
  opacity: 1;
}

.nav-user-pill-btn.active .pill-caret-svg {
  transform: rotate(180deg);
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: #0d1424 !important; /* 100% solid, fully opaque */
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 210, 255, 0.15) !important;
  padding: 0.5rem 0;
  z-index: 99999 !important;
  animation: landingDropdownFadeIn 0.16s ease-out;
}

.role-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  text-transform: uppercase;
}

.role-superAdmin {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(239, 68, 68, 0.3) 100%);
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.role-admin {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.role-user {
  background: rgba(0, 210, 255, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(0, 210, 255, 0.3);
}

.btn-admin {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 700;
  border: none;
  border-radius: 20px;
  padding: 0.35rem 0.95rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.btn-admin:hover {
  transform: translateY(-1px);
}

/* Account Switcher Bar */
.accounts-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.account-select {
  background: var(--bg-input);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
}

/* Admin Dashboard Modal / Drawer */
.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.9);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.admin-window {
  width: 100%;
  max-width: 1050px;
  max-height: 90vh;
  background: #0d1320;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-card);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
}

.metric-val {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.data-table-container {
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: left;
}

.data-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 0.5rem 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-card);
  white-space: nowrap;
}

.data-table td {
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.78rem;
}

.status-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}
.status-badge.active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.status-badge.suspended { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-badge.banned { background: rgba(239, 68, 68, 0.25); color: #f87171; }
.status-badge.warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.status-badge.muted { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* ==========================================================================
   Full Screen Landing Page & Hero Section Styles
   ========================================================================== */
.landing-page-container {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}

.hero-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem 2rem;
  max-width: 980px;
  margin: 0 auto;
  z-index: 10;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: 9999px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.35rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 760px;
  line-height: 1.65;
  margin: 0 auto 2.25rem;
}

.hero-cta-group {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.landing-footer {
  padding: 1.25rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border-card);
  background: rgba(8, 12, 20, 0.7);
  backdrop-filter: blur(16px);
  font-size: 0.88rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Dashboard Workspace overlay / view */
.dashboard-view-container {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 150px);
}

/* ==========================================================================
   User Dashboard Layout (Sidebar Left, Header, Stats, Charts & Projects)
   ========================================================================== */
.app-dashboard-layout {
  display: flex;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-primary);
}

/* Sidebar Left */
.dashboard-sidebar {
  width: 260px;
  background: rgba(10, 15, 26, 0.95);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem 1rem;
  z-index: 20;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border-card);
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.5rem;
  list-style: none;
}

.sidebar-link-btn {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.sidebar-link-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
}

.sidebar-link-btn.active {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.25);
  color: var(--accent-cyan);
  font-weight: 600;
}

.sidebar-icon {
  font-size: 1.15rem;
}

/* User identity in sidebar: hidden on desktop mode (already visible in top header) */
.sidebar-user-profile {
  display: none !important;
}

/* Main Dashboard Area */
.dashboard-main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Dashboard Header Top */
.dashboard-top-header {
  height: 68px;
  border-bottom: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(20px);
  position: relative;
  z-index: 100;
}

.top-header-left h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.top-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Connection Beamer */
.status-beamer {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.3s ease;
}

.status-beamer.disconnected {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

.status-beamer.connected {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.35);
}

.beamer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-beamer.disconnected .beamer-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.status-beamer.connected .beamer-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

button.status-beamer {
  cursor: pointer;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  transition: all 0.25s ease;
  outline: none;
}

button.status-beamer:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.25);
  transform: translateY(-1px);
}

/* Dashboard Content Scrollable Area */
.dashboard-content-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Stats Cards */
.stats-grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card-item {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  position: relative;
  overflow: hidden;
}

.stat-card-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
}

.stat-card-num {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.stat-card-lbl {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Chart Card */
.dashboard-chart-card {
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.chart-bars-wrap {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  height: 180px;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 0.5rem;
}

.chart-bar-fill {
  width: 100%;
  max-width: 44px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #00d2ff 0%, #0088cc 100%);
  min-height: 4px;
  transition: height 0.5s ease;
}

.chart-bar-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 70px;
}

.chart-bar-val {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Extraction Bar */
.extract-bar {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-card);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
}

.extract-bar input {
  flex: 1;
}

.extract-options-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-top: 0.6rem;
  padding: 0 0.5rem;
  flex-wrap: wrap;
}

.extract-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.extract-checkbox-label input[type="checkbox"] {
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

/* Fine Harvest Members Table */
.harvest-table-card {
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-pills-wrap {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
}

.filter-pill.active {
  background: rgba(0, 210, 255, 0.15);
  border-color: rgba(0, 210, 255, 0.4);
  color: var(--accent-cyan);
  font-weight: 600;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 260px;
}

.harvest-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.76rem;
}

.harvest-data-table th {
  padding: 0.45rem 0.6rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-card);
  text-align: left;
  white-space: nowrap;
}

.harvest-data-table td {
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 0.76rem;
}

.harvest-data-table td .btn-sm {
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
}

.harvest-data-table td:last-child {
  white-space: nowrap;
}

.harvest-data-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.username-tag {
  color: var(--accent-cyan);
  font-weight: 600;
  font-size: 0.75rem;
}

/* ==========================================================================
   Responsive Sidebar, Hamburger Toggle & Mobile Optimization
   ========================================================================== */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 9px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.sidebar-close-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.sidebar-close-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* Sidebar User Profile Card */
.sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
}

.sidebar-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  overflow: hidden;
}

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

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

@media (max-width: 860px) {
  .hamburger-btn {
    display: flex;
  }

  .sidebar-close-btn {
    display: flex;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 35px rgba(0, 0, 0, 0.7);
  }

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

  .sidebar-brand {
    justify-content: space-between;
  }

  /* Declutter Mobile Top Header */
  .dashboard-top-header {
    padding: 0 1rem;
    height: 58px;
  }

  .top-header-left h2 {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
  }

  .top-header-right {
    gap: 0.65rem;
  }

  /* Hide user pill from mobile top header (moved to sidebar) */
  .dashboard-top-header .nav-user-pill,
  .dashboard-top-header .header-user-menu-wrapper {
    display: none !important;
  }

  /* Only show user in sidebar on mobile */
  .sidebar-user-profile {
    display: flex !important;
  }

  /* Make status beamer a compact glowing dot on mobile */
  .beamer-text {
    display: none !important;
  }

  .status-beamer {
    padding: 0.35rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }

  #openConnectTelegramModalBtn.status-beamer {
    width: auto !important;
    height: auto !important;
    border-radius: 9999px !important;
    padding: 0.3rem 0.7rem !important;
    gap: 0.45rem !important;
  }

  /* Compact button on mobile */
  .btn-text-desktop {
    display: none !important;
  }

  .btn-text-mobile {
    display: inline !important;
  }

  #openConnectTelegramModalBtn {
    padding: 0.35rem 0.75rem;
    font-size: 0.82rem;
  }

  .dashboard-content-scroll {
    padding: 1.25rem 1rem;
    gap: 1.25rem;
  }

  .stats-grid-dashboard {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }

  .stat-card-item {
    padding: 1rem;
  }

  .stat-card-num {
    font-size: 1.6rem;
  }

  .extract-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .extract-bar input {
    width: 100%;
    max-width: 100% !important;
  }

  .extract-bar button {
    width: 100%;
  }

  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input-wrap {
    min-width: 100%;
  }
}

@media (max-width: 520px) {
  .dashboard-top-header {
    padding: 0 0.75rem;
  }

  .top-header-left h2 {
    max-width: 105px;
    font-size: 0.95rem;
  }

  .stats-grid-dashboard {
    grid-template-columns: 1fr;
  }

  .top-header-right {
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Custom Confirmation & Ban/Delete Action Dialog
   ========================================================================== */
.custom-dialog-card {
  max-width: 480px;
  background: rgba(18, 24, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 0, 0, 0.5);
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.93) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.custom-dialog-header {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin-bottom: 1.35rem;
}

.custom-dialog-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.custom-dialog-icon-wrap.variant-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.3);
}

.custom-dialog-icon-wrap.variant-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.3);
}

.custom-dialog-icon-wrap.variant-info {
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.45);
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.3);
}

.custom-dialog-icon-wrap.variant-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 22px rgba(16, 185, 129, 0.3);
}

.custom-dialog-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.custom-dialog-tag.tag-danger {
  color: #f87171;
}

.custom-dialog-tag.tag-warning {
  color: #fbbf24;
}

.custom-dialog-tag.tag-info {
  color: var(--accent-cyan);
}

.custom-dialog-tag.tag-success {
  color: #34d399;
}

.custom-dialog-message {
  font-size: 0.96rem;
  color: #f1f5f9;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.custom-dialog-notice {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 0.85rem;
}

.custom-dialog-notice.notice-danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
  color: #fca5a5;
}

.custom-dialog-notice.notice-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.28);
  color: #fcd34d;
}

.custom-dialog-notice.notice-info {
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.28);
  color: #a5f3fc;
}

.custom-dialog-notice.notice-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
}

/* ==========================================================================
   Direct Messaging & Chat Threads
   ========================================================================== */
.chat-bubble {
  max-width: 82%;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-word;
  position: relative;
}

.chat-bubble.outbound {
  align-self: flex-end;
  background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
  color: #fff;
  border-bottom-right-radius: 3px;
}

.chat-bubble.inbound {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-card);
  border-bottom-left-radius: 3px;
}

.chat-bubble-meta {
  font-size: 0.65rem;
  opacity: 0.75;
  margin-top: 0.2rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

/* Row selection highlight in extracted members table */
tr.row-selected {
  background: rgba(0, 210, 255, 0.08) !important;
}

input[type="checkbox"].member-row-cb,
input[type="checkbox"]#selectAllMembersCb {
  accent-color: var(--accent-cyan);
  cursor: pointer;
  width: 14px;
  height: 14px;
}

/* --------------------------------------------------------------------------
   Top-Left Brand Logo Navigation & Mobile Header Brand
   -------------------------------------------------------------------------- */
.sidebar-brand-click {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-brand-click:hover {
  opacity: 0.88;
  transform: scale(0.98);
}

.header-mobile-brand {
  display: none;
  transition: opacity 0.2s ease;
}

.header-mobile-brand:hover {
  opacity: 0.85;
}

@media (max-width: 860px) {
  .header-mobile-brand {
    display: flex !important;
  }
}

/* --------------------------------------------------------------------------
   Landing Page: Logged-in User Icon & Dropdown Menu (Clean, Simple, No Icons)
   -------------------------------------------------------------------------- */
.landing-user-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.landing-user-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.landing-user-icon-btn:hover,
.landing-user-icon-btn.active {
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.4);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}

.landing-user-icon-svg {
  width: 20px;
  height: 20px;
}

.landing-user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: #0d1424 !important; /* 100% solid, fully opaque */
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 210, 255, 0.15) !important;
  padding: 0.5rem 0;
  z-index: 99999 !important;
  animation: landingDropdownFadeIn 0.16s ease-out;
}

@keyframes landingDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-dropdown-user-header {
  padding: 0.6rem 1.15rem 0.55rem;
}

.landing-dropdown-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.landing-dropdown-email {
  font-size: 0.77rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0.2rem;
}

.landing-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.35rem 0;
}

.landing-dropdown-items {
  display: flex;
  flex-direction: column;
}

.landing-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.6rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #cbd5e1;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.landing-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding-left: 1.3rem;
}

.landing-dropdown-logout-btn {
  color: #f87171 !important;
}

.landing-dropdown-logout-btn:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #fca5a5 !important;
  padding-left: 1.3rem !important;
}
