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

:root {
  --bg-0: #03010a;
  --bg-1: #080418;
  --bg-2: #0d0824;
  --bg-3: #140e3a;
  --bg-4: #1c1550;
  --bg-hover: #120e30;
  --accent: #00d4ff;
  --accent-dim: #00a8cc;
  --accent-glow: rgba(0, 212, 255, 0.3);
  --accent-soft: rgba(0, 212, 255, 0.08);
  --accent-2: #c084fc;
  --accent-2-glow: rgba(192, 132, 252, 0.25);
  --nebula-pink: #ff6b9d;
  --nebula-purple: #a855f7;
  --nebula-blue: #3b82f6;
  --nebula-cyan: #22d3ee;
  --galaxy-core: #e879f9;
  --text-1: #e8e8ff;
  --text-2: #9090b8;
  --text-3: #5a5a80;
  --border: rgba(100, 60, 200, 0.15);
  --border-light: rgba(100, 80, 220, 0.2);
  --green: #00e5a0;
  --green-dim: rgba(0, 229, 160, 0.1);
  --red: #f04747;
  --red-dim: rgba(240, 71, 71, 0.12);
  --yellow: #fbbf24;
  --yellow-dim: rgba(251, 191, 36, 0.12);
  --blue: #60a5fa;
  --blue-dim: rgba(96, 165, 250, 0.12);
  --radius: 10px;
  --radius-lg: 14px;
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(88, 28, 135, 0.08);
  --transition: 0.25s ease;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-0);
  background-image: 
    radial-gradient(ellipse at 15% 50%, rgba(88, 0, 180, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 20%, rgba(0, 100, 200, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 90%, rgba(150, 0, 200, 0.06) 0%, transparent 40%),
    radial-gradient(ellipse at 70% 60%, rgba(0, 180, 255, 0.04) 0%, transparent 40%);
  background-attachment: fixed;
  color: var(--text-1);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    radial-gradient(1px 1px at 8% 12%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1px 1px at 15% 38%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1.5px 1.5px at 22% 65%, rgba(0,212,255,0.7), transparent),
    radial-gradient(1px 1px at 30% 8%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 38% 82%, rgba(168,85,247,0.5), transparent),
    radial-gradient(1px 1px at 45% 28%, rgba(255,255,255,0.4), transparent),
    radial-gradient(2px 2px at 52% 55%, rgba(255,107,157,0.5), transparent),
    radial-gradient(1px 1px at 58% 15%, rgba(255,255,255,0.35), transparent),
    radial-gradient(1px 1px at 65% 72%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1.5px 1.5px at 72% 42%, rgba(0,212,255,0.5), transparent),
    radial-gradient(1px 1px at 78% 88%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 85% 18%, rgba(168,85,247,0.4), transparent),
    radial-gradient(1.5px 1.5px at 92% 62%, rgba(255,255,255,0.45), transparent),
    radial-gradient(1px 1px at 96% 35%, rgba(0,212,255,0.3), transparent),
    radial-gradient(1px 1px at 5% 92%, rgba(255,255,255,0.25), transparent),
    radial-gradient(1px 1px at 42% 48%, rgba(255,255,255,0.2), transparent),
    radial-gradient(1px 1px at 68% 95%, rgba(168,85,247,0.35), transparent),
    radial-gradient(1px 1px at 12% 75%, rgba(255,255,255,0.3), transparent),
    radial-gradient(1px 1px at 88% 50%, rgba(255,255,255,0.4), transparent);
  pointer-events: none;
  z-index: 0;
  animation: starTwinkle 8s ease-in-out infinite alternate;
}

body::after {
  content: '';
  position: fixed;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse 600px 400px at 15% 20%, rgba(168, 85, 247, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 500px 500px at 80% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse 700px 350px at 50% 80%, rgba(255, 107, 157, 0.04) 0%, transparent 65%),
    radial-gradient(ellipse 400px 600px at 25% 65%, rgba(34, 211, 238, 0.03) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: nebulaDrift 30s ease-in-out infinite alternate;
}

@keyframes starTwinkle {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

@keyframes nebulaDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -1%) rotate(1deg); }
  66% { transform: translate(-1%, 2%) rotate(-0.5deg); }
  100% { transform: translate(1%, -2%) rotate(0.5deg); }
}

@keyframes shootingStar {
  0% { transform: translateX(0) translateY(0) rotate(-35deg); opacity: 1; width: 0; }
  70% { opacity: 1; width: 120px; }
  100% { transform: translateX(300px) translateY(180px) rotate(-35deg); opacity: 0; width: 0; }
}

/* ==============================
   AUTH PAGE
   ============================== */
.auth-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 1, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: authFade 0.25s ease;
}

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

.auth-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.auth-page::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, rgba(0,212,255,0.05) 25%, rgba(255,107,157,0.03) 50%, transparent 70%);
  pointer-events: none;
  animation: nebulaPulse 12s ease-in-out infinite alternate;
}

.auth-page::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255,107,157,0.06) 0%, rgba(59,130,246,0.04) 30%, transparent 60%);
  pointer-events: none;
  animation: nebulaPulse 15s ease-in-out infinite alternate-reverse;
}

@keyframes nebulaPulse {
  0% { transform: translateX(-50%) scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: translateX(-50%) scale(1.15) rotate(5deg); opacity: 1; }
  100% { transform: translateX(-50%) scale(0.95) rotate(-3deg); opacity: 0.7; }
}

.auth-card {
  width: 380px;
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 132, 252, 0.12);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 50px rgba(168, 85, 247, 0.08),
    0 0 100px rgba(0, 212, 255, 0.04),
    0 8px 32px rgba(0,0,0,0.5);
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-brand {
  text-align: center;
  margin-bottom: 28px;
}

.auth-brand .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  border-radius: 14px;
  margin-bottom: 16px;
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.35), 0 0 70px rgba(168, 85, 247, 0.2), 0 0 100px rgba(255, 107, 157, 0.1);
  animation: logoGlow 3s ease-in-out infinite alternate;
}

@keyframes logoGlow {
  0% { box-shadow: 0 0 25px rgba(0, 212, 255, 0.25), 0 0 50px rgba(168, 85, 247, 0.15), 0 0 80px rgba(255, 107, 157, 0.08); }
  100% { box-shadow: 0 0 40px rgba(0, 212, 255, 0.45), 0 0 80px rgba(168, 85, 247, 0.25), 0 0 120px rgba(255, 107, 157, 0.15); }
}

.auth-brand .logo svg {
  width: 26px;
  height: 26px;
  fill: white;
}

.auth-brand h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.3px;
}

.auth-brand p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

.grad-text {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-1);
  color: var(--text-2);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.auth-close:hover {
  background: var(--bg-3);
  color: var(--text-1);
}

.auth-toggle {
  display: flex;
  background: var(--bg-0);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: 20px;
}

.auth-toggle button {
  flex: 1;
  padding: 8px;
  border: none;
  background: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.auth-toggle button.active {
  background: var(--bg-3);
  color: var(--text-1);
}

.auth-error {
  background: var(--red-dim);
  border: 1px solid rgba(240,71,71,0.25);
  color: #f87171;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.field input::placeholder {
  color: var(--text-3);
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-fill {
  background: linear-gradient(135deg, #00b4d8, #7c3aed, #c026d3);
  color: white;
  box-shadow: 0 2px 15px rgba(0, 180, 216, 0.3), 0 0 30px rgba(124, 58, 237, 0.15);
  border: none;
}

.btn-fill:hover {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #e879f9);
  box-shadow: 0 4px 25px rgba(0, 212, 255, 0.4), 0 0 50px rgba(168, 85, 247, 0.2);
}

.btn-fill:active {
  transform: scale(0.98);
  box-shadow: 0 1px 8px rgba(0, 180, 216, 0.2);
}

.btn-full {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text-1);
  border-color: var(--border-light);
}

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

.btn-green:hover {
  background: #3ca374;
}

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

.btn-red:hover {
  background: #d93c3c;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 6px;
}

.btn-icon {
  padding: 6px;
  background: var(--bg-3);
  border: none;
  border-radius: 6px;
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--bg-4);
  color: var(--text-1);
}

/* ==============================
   DASHBOARD LAYOUT
   ============================== */
.app {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: rgba(8, 4, 24, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-right: 1px solid rgba(100, 60, 200, 0.12);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3), 1px 0 40px rgba(88, 28, 135, 0.04);
}

.sidebar-brand {
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-brand .logo {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.25), 0 0 30px rgba(168, 85, 247, 0.12);
}

.sidebar-brand .logo svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.sidebar-brand h1 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
}

.sidebar-section {
  padding: 12px 8px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px 8px;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: none;
  border: none;
  border-radius: 6px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  margin-bottom: 2px;
}

.nav-btn:hover {
  background: var(--bg-hover);
  color: var(--text-1);
}

.nav-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
}

.nav-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-btn.active svg {
  opacity: 1;
}

.sidebar-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 60, 200, 0.2), transparent);
  margin: 4px 8px;
}

.sidebar-user {
  padding: 12px 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

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

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

.sidebar-user .info .tag {
  font-size: 11px;
  color: var(--text-3);
}

.sidebar-user .logout-btn {
  padding: 4px;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.sidebar-user .logout-btn:hover {
  color: var(--red);
  background: var(--red-dim);
}

.sidebar-user .logout-btn svg {
  width: 16px;
  height: 16px;
}

/* Main */
.main {
  flex: 1;
  margin-left: 240px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  padding: 14px 24px;
  border-bottom: 1px solid rgba(100, 60, 200, 0.12);
  background: rgba(8, 4, 24, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3);
}

.topbar h2 {
  font-size: 15px;
  font-weight: 700;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.content {
  flex: 1;
  padding: 24px;
  animation: fadeUp 0.25s ease;
}

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

/* ==============================
   STAT CARDS
   ============================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat {
  background: rgba(15, 15, 40, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(100, 60, 200, 0.12);
  border-radius: var(--radius-lg);
  padding: 18px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.stat:hover {
  border-color: rgba(0, 212, 255, 0.15);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.05), 0 0 50px rgba(168, 85, 247, 0.03);
}

.stat .stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.stat .stat-head .label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.stat .stat-head .icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat .stat-head .icon-box svg {
  width: 16px;
  height: 16px;
}

.stat .stat-num {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1;
}

/* ==============================
   LIST ITEMS
   ============================== */
.list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.list-item:hover {
  background: var(--bg-3);
  border-color: var(--border-light);
}

.list-item .item-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.list-item .item-icon svg {
  width: 18px;
  height: 18px;
  color: var(--text-2);
}

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

.list-item .item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.list-item .item-sub {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 1px;
}

.list-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

.list-item .dot.offline {
  background: var(--text-3);
}

.list-item .actions {
  display: flex;
  gap: 4px;
}

/* ==============================
   EMPTY STATE
   ============================== */
.empty {
  text-align: center;
  padding: 48px 20px;
}

.empty .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(15, 15, 40, 0.6);
  border: 1px solid rgba(100, 60, 200, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.empty .icon-box svg {
  width: 26px;
  height: 26px;
  color: var(--text-3);
}

.empty h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 4px;
}

.empty p {
  font-size: 13px;
  color: var(--text-3);
}

/* ==============================
   CHAT
   ============================== */
.chat-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.chat-list-panel {
  width: 260px;
  border-right: 1px solid rgba(100, 60, 200, 0.1);
  display: flex;
  flex-direction: column;
  background: rgba(12, 8, 32, 0.6);
  backdrop-filter: blur(8px);
}

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

.chat-list-head h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-2);
}

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

.chat-user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
}

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

.chat-user-item.active {
  background: var(--accent-soft);
}

.chat-user-item .avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
  flex-shrink: 0;
}

.chat-user-item.active .avatar-sm {
  background: var(--accent);
  color: white;
}

.chat-user-item .uname {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
}

.chat-user-item.active .uname {
  color: var(--text-1);
}

.chat-main-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: rgba(8, 4, 24, 0.7);
  position: relative;
  overflow: hidden;
}

.chat-top {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-top-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-top-left .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.chat-top-left .target-name {
  font-size: 14px;
  font-weight: 600;
}

.chat-top-left .target-info {
  font-size: 12px;
  color: var(--text-3);
}

.chat-top-btns {
  display: flex;
  gap: 6px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.msg {
  max-width: 75%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  word-break: break-word;
  animation: msgIn 0.15s ease;
}

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

.msg.out {
  align-self: flex-end;
  background: linear-gradient(135deg, #00b4d8, #7c3aed);
  color: white;
  border-bottom-right-radius: 2px;
  box-shadow: 0 2px 12px rgba(0, 180, 216, 0.2);
}

.msg.in {
  align-self: flex-start;
  background: var(--bg-3);
  color: var(--text-1);
  border-bottom-left-radius: 2px;
}

.msg.sys {
  align-self: center;
  background: var(--blue-dim);
  color: #93a0f8;
  font-size: 12px;
  padding: 6px 12px;
}

.msg.cmd {
  align-self: flex-start;
  background: var(--bg-4);
  color: var(--green);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
}

.msg img {
  max-width: 100%;
  border-radius: 6px;
  margin-top: 6px;
}

.chat-tools-bar {
  padding: 8px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chat-tools-bar .tool-btn {
  padding: 5px 10px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-tools-bar .tool-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.chat-tools-bar .tool-btn svg {
  width: 12px;
  height: 12px;
}

.chat-input-bar {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-bar input {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

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

.chat-input-bar input::placeholder {
  color: var(--text-3);
}

/* ==============================
   BUILD PAGE
   ============================== */
.build-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
}

.panel {
  background: rgba(12, 8, 32, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(100, 60, 200, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0,0,0,0.35), 0 0 60px rgba(88, 28, 135, 0.04), inset 0 1px 0 rgba(255,255,255,0.03);
}

.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(100, 60, 200, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-head h3 {
  font-size: 14px;
  font-weight: 700;
}

.panel-body {
  padding: 18px;
  max-height: 70vh;
  overflow-y: auto;
}

.log-box {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  line-height: 1.7;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 14px;
}

.log-line {
  opacity: 0;
  animation: logIn 0.2s ease forwards;
}

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

.log-info { color: var(--text-2); }
.log-ok { color: var(--green); }
.log-err { color: var(--red); }
.log-warn { color: var(--yellow); }

.file-drop {
  border: 2px dashed var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.file-drop:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.file-drop p {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 6px;
}

.file-drop svg {
  width: 24px;
  height: 24px;
  color: var(--text-3);
}

/* ==============================
   SETTINGS
   ============================== */
.setting-group {
  background: rgba(15, 15, 40, 0.5);
  border: 1px solid rgba(100, 60, 200, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.setting-group-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}

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

.setting-row:last-child {
  border-bottom: none;
}

.setting-row .lbl {
  font-size: 13px;
  color: var(--text-2);
}

.setting-row .val {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
}

.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.badge-free { background: var(--bg-4); color: var(--text-3); }
.badge-pro {
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.badge-vip {
  background: rgba(251, 191, 36, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(251, 191, 36, 0.15);
}

.badge-owner {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-2);
  border: 1px solid rgba(168, 85, 247, 0.15);
}

/* ==============================
   ADMIN PANEL
   ============================== */
.toggle {
  position: relative;
  width: 40px;
  height: 22px;
}

.toggle input {
  display: none;
}

.toggle .track {
  position: absolute;
  inset: 0;
  background: var(--bg-4);
  border-radius: 11px;
  cursor: pointer;
  transition: var(--transition);
}

.toggle .track::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-3);
  top: 3px;
  left: 3px;
  transition: var(--transition);
}

.toggle input:checked + .track {
  background: linear-gradient(135deg, #00d4ff, #a855f7);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.3);
}

.toggle input:checked + .track::after {
  background: white;
  transform: translateX(18px);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(0, 212, 255, 0.03);
}

.data-table .actions-cell {
  display: flex;
  gap: 4px;
}

/* ==============================
   MODAL
   ============================== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(4px);
  animation: overlayIn 0.15s ease;
}

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

.modal {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(168, 132, 252, 0.12);
  border-radius: 12px;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 80px rgba(0, 212, 255, 0.06),
    0 0 120px rgba(168, 85, 247, 0.04),
    0 20px 60px rgba(0, 0, 0, 0.5);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

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

.modal-header h3 {
  font-size: 15px;
  font-weight: 700;
}

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

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

/* Desktop view */
.desktop-view {
  background: #000;
  border-radius: var(--radius);
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.desktop-view img {
  max-width: 100%;
  border-radius: 4px;
}

.desktop-view .placeholder {
  color: var(--text-3);
  font-size: 13px;
}

/* File manager */
.path-bar {
  padding: 8px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.file-grid {
  max-height: 400px;
  overflow-y: auto;
}

/* Process list */
.proc-box {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 12px;
  max-height: 450px;
  overflow-y: auto;
  white-space: pre-wrap;
  line-height: 1.6;
  color: var(--text-2);
}

/* ==============================
   TOOLS PANEL (inside chat)
   ============================== */
.tools-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 380px;
  height: 100%;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  z-index: 10;
  display: flex;
  flex-direction: column;
}

.tools-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  flex-shrink: 0;
}

.tools-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
}

.tools-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card {
  background: rgba(12, 8, 32, 0.65);
  border: 1px solid rgba(100, 60, 200, 0.1);
  border-radius: var(--radius);
  padding: 12px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.tool-card:hover {
  border-color: rgba(0, 212, 255, 0.2);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.06), 0 0 50px rgba(168, 85, 247, 0.03);
}

.tool-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.tool-card-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.tool-card-btns:last-child {
  margin-bottom: 0;
}

.tool-output-textarea {
  width: 100%;
  min-height: 60px;
  max-height: 120px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-2);
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  padding: 8px;
  resize: vertical;
  outline: none;
}

.tool-output-pre {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-2);
  max-height: 150px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin-top: 6px;
}

.tool-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.tool-img {
  max-width: 100%;
  max-height: 180px;
  display: block;
}

.tool-placeholder {
  font-size: 11px;
  color: var(--text-3);
}

/* ==============================
   SCROLLBAR
   ============================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ==============================
   UTILS
   ============================== */
.hidden { display: none !important; }
.gap-sm { gap: 8px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 20px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 20px; }

/* ==============================
   TERMINAL
   ============================== */
.terminal-output {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace !important;
  font-size: 13px;
  line-height: 1.5;
  background: rgba(5, 3, 16, 0.5);
}
.terminal-output .msg.cmd {
  background: rgba(67, 181, 129, 0.06);
  border-left: 2px solid var(--green);
  color: var(--text-1);
  font-family: inherit;
  white-space: pre-wrap;
  word-break: break-all;
}
.terminal-output .msg.out {
  background: rgba(88, 101, 242, 0.08);
  border-left: 2px solid var(--blue);
  color: var(--text-2);
}
.terminal-output .msg.in {
  background: rgba(108, 92, 231, 0.06);
  border-left: 2px solid var(--accent);
  color: var(--text-2);
}
.terminal-output .msg.sys {
  background: rgba(250, 166, 26, 0.06);
  border-left: 2px solid var(--yellow);
  color: var(--text-3);
  font-style: italic;
}
.terminal-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(5, 3, 16, 0.5);
  border-top: 1px solid rgba(100, 60, 200, 0.1);
}
.terminal-prompt {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  padding-left: 12px;
  text-shadow: 0 0 8px rgba(0, 229, 160, 0.3);
}
.terminal-input-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-1);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  outline: none;
  padding: 8px 0;
}
.terminal-input-bar input::placeholder {
  color: var(--text-3);
}

/* ==============================
   CUSTOM MODAL / TOAST
   ============================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-1);
  max-width: 360px;
  box-shadow: var(--shadow);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.toast-out {
  animation: toastOut 0.2s ease forwards;
}
.toast-success { border-left: 3px solid var(--green); }
.toast-error { border-left: 3px solid var(--red); }
.toast-info { border-left: 3px solid var(--accent); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(20px); }
}

.modal-alert-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 2, 12, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  animation: overlayIn 0.12s ease;
}
.modal-alert-box {
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(168, 132, 252, 0.12);
  border-radius: 12px;
  padding: 24px;
  width: 380px;
  max-width: 90vw;
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.08), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.modal-alert-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 10px;
}
.modal-alert-msg {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 18px;
  line-height: 1.5;
  word-break: break-word;
}
.modal-alert-input {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-1);
  font-size: 14px;
  outline: none;
  margin-bottom: 18px;
  transition: var(--transition);
}
.modal-alert-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-glow);
}
.modal-alert-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ====== GALAXY THEME ADDITIONS ====== */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(168, 132, 252, 0.25);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(168, 132, 252, 0.4);
}

.topbar {
  border-bottom: 1px solid rgba(100, 60, 200, 0.12);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3), 0 0 40px rgba(88, 28, 135, 0.03);
}

.list-item:hover {
  background: rgba(0, 212, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.03);
}

.list-item {
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.chat-user-item.active {
  background: rgba(0, 212, 255, 0.08);
  border-left: 2px solid var(--accent);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.05);
}

.modal-overlay {
  background: rgba(2, 2, 12, 0.85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.build-card {
  background: rgba(12, 8, 32, 0.6);
  border: 1px solid rgba(100, 60, 200, 0.1);
  border-radius: var(--radius-lg);
}

.auth-brand h1 {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow), 0 0 25px rgba(0, 212, 255, 0.1), 0 0 50px rgba(168, 85, 247, 0.05);
}

.tools-panel {
  background: rgba(8, 4, 24, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid rgba(100, 60, 200, 0.12);
  box-shadow: -4px 0 40px rgba(0, 0, 0, 0.4), 1px 0 60px rgba(88, 28, 135, 0.04);
}

.tools-panel-head {
  border-bottom: 1px solid rgba(100, 60, 200, 0.08);
}

.dot:not(.offline) {
  box-shadow: 0 0 8px var(--green), 0 0 16px rgba(0, 229, 160, 0.3);
}

.tool-output-pre {
  background: rgba(5, 3, 16, 0.7);
  border: 1px solid rgba(100, 60, 200, 0.06);
  border-radius: 6px;
}

.chat-messages, .terminal-output {
  background: rgba(5, 3, 16, 0.3);
}

.toast {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(100, 60, 200, 0.12);
}

.btn-red {
  background: rgba(240, 71, 71, 0.15);
  color: var(--red);
  border: 1px solid rgba(240, 71, 71, 0.2);
}

.btn-red:hover {
  background: rgba(240, 71, 71, 0.25);
  box-shadow: 0 0 15px rgba(240, 71, 71, 0.1);
}

.btn-green {
  box-shadow: 0 0 10px rgba(0, 229, 160, 0.15);
}

.btn-green:hover {
  box-shadow: 0 0 20px rgba(0, 229, 160, 0.2);
}

/* ==============================
   HITS TOOLBAR
   ============================== */
.hits-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.hits-toolbar .input {
  padding: 7px 10px;
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-1);
  font-size: 12px;
  outline: none;
  transition: var(--transition);
}

.hits-toolbar select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a5a80' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
  cursor: pointer;
}

.hits-toolbar select.input option {
  background: var(--bg-1);
  color: var(--text-1);
}

/* ==============================
   HIT TAGS / GROUP BADGES
   ============================== */
.hit-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.hit-group-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-3);
}

/* ==============================
   GROUP/TAG LIST ITEMS
   ============================== */
.group-item, .tag-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(15, 15, 40, 0.5);
  border: 1px solid rgba(100, 60, 200, 0.1);
  border-radius: 6px;
  margin-bottom: 6px;
  transition: border-color 0.25s ease;
}

.group-item:hover, .tag-item:hover {
  border-color: rgba(0, 212, 255, 0.12);
}

.group-item .group-color, .tag-item .tag-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.group-item .group-name, .tag-item .tag-name {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
}

/* ==============================
   HIT PROFILE
   ============================== */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-stat {
  background: rgba(15, 15, 40, 0.5);
  border: 1px solid rgba(100, 60, 200, 0.1);
  border-radius: 8px;
  padding: 14px;
}

.profile-stat .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.profile-stat .value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
}

.profile-stat .value.online {
  color: var(--green);
}

.profile-section {
  margin-top: 16px;
}

.profile-section h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
}

.conn-log-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: rgba(15, 15, 40, 0.4);
  border: 1px solid rgba(100, 60, 200, 0.06);
  border-radius: 6px;
  margin-bottom: 4px;
  font-size: 12px;
}

.conn-log-item .conn-event {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.conn-log-item .conn-event.connect {
  background: var(--green-dim);
  color: var(--green);
}

.conn-log-item .conn-event.disconnect {
  background: var(--red-dim);
  color: var(--red);
}

.conn-log-item .conn-time {
  color: var(--text-3);
  margin-left: auto;
}

/* ==============================
   TOAST ALERTS (new connection)
   ============================== */
.hit-alert-toast {
  pointer-events: auto;
  background: rgba(12, 8, 32, 0.9);
  border: 1px solid rgba(100, 60, 200, 0.12);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-1);
  max-width: 360px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.4), 0 0 50px rgba(0, 229, 160, 0.06);
  animation: toastIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(16px);
}

.hit-alert-toast.disconnect {
  border-left-color: var(--red);
}

.hit-alert-toast .alert-title {
  font-weight: 600;
}

.hit-alert-toast .alert-sub {
  font-size: 11px;
  color: var(--text-3);
}

/* ==============================
   HIT SELECT CHECKBOX
   ============================== */
.hit-select-cb {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

/* ==============================
   LANDING PAGE
   ============================== */
html {
  scroll-behavior: smooth;
}

.landing {
  position: relative;
  min-height: 100vh;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(3, 1, 10, 0.7);
  border-bottom: 1px solid rgba(100, 60, 200, 0.1);
}

.landing-nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.landing-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-logo .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  border-radius: 9px;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.35), 0 0 40px rgba(168, 85, 247, 0.15);
}

.landing-logo .logo svg {
  width: 18px;
  height: 18px;
  fill: white;
}

.landing-brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--text-1);
}

.landing-brand-name b {
  color: var(--accent);
  font-weight: 800;
}

.landing-links {
  display: flex;
  gap: 26px;
}

.landing-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-links a:hover {
  color: var(--accent);
}

.landing-actions {
  display: flex;
  gap: 10px;
}

.hero {
  position: relative;
  text-align: center;
  padding: 96px 24px 70px;
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 60, 200, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 60, 200, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 75%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(0, 229, 160, 0.06);
  border: 1px solid rgba(0, 229, 160, 0.18);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.3px;
  margin-bottom: 28px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulseDot 1.6s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(52px, 9vw, 104px);
  font-weight: 900;
  letter-spacing: 4px;
  line-height: 1;
  color: var(--text-1);
  text-shadow: 0 0 80px rgba(168, 85, 247, 0.3), 0 0 160px rgba(0, 212, 255, 0.15);
  margin-bottom: 22px;
}

.hero-title span {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 38px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.btn-lg {
  padding: 13px 30px;
  font-size: 15px;
}

.btn-fill {
  background: linear-gradient(135deg, #00d4ff, #a855f7, #ff6b9d);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.3), 0 0 50px rgba(168, 85, 247, 0.15);
}

.btn-fill:hover {
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.45), 0 0 70px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 860px;
  margin: 0 auto;
  background: rgba(100, 60, 200, 0.12);
  border: 1px solid rgba(100, 60, 200, 0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-stat {
  background: rgba(8, 4, 24, 0.85);
  padding: 22px 16px;
}

.hero-stat-num {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #00d4ff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.landing-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px;
}

.landing-section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.landing-kicker {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.landing-section-head h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.landing-section-head p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: rgba(12, 8, 32, 0.55);
  border: 1px solid rgba(100, 60, 200, 0.12);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 212, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 50px rgba(88, 28, 135, 0.08);
  background: rgba(16, 10, 42, 0.7);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(0, 212, 255, 0.18);
  color: var(--accent);
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}

.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(12, 8, 32, 0.55);
  border: 1px solid rgba(100, 60, 200, 0.14);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-1);
  transition: all 0.25s ease;
}

.module-chip:hover {
  border-color: rgba(0, 212, 255, 0.3);
  background: rgba(16, 10, 42, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 30px rgba(0, 212, 255, 0.05);
}

.chip-icon {
  font-size: 15px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(12, 8, 32, 0.5);
  border: 1px solid rgba(100, 60, 200, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(0, 212, 255, 0.18);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

.landing-cta-band {
  max-width: 1120px;
  margin: 40px auto 0;
  padding: 56px 32px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(168, 85, 247, 0.12), transparent 60%),
    rgba(12, 8, 32, 0.6);
  border: 1px solid rgba(100, 60, 200, 0.15);
  border-radius: 20px;
}

.landing-cta-band h2 {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
}

.landing-cta-band p {
  color: var(--text-2);
  margin-bottom: 26px;
  font-size: 15px;
}

.landing-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(100, 60, 200, 0.1);
}

.footer-note {
  font-size: 13px;
  color: var(--text-3);
}

@media (max-width: 860px) {
  .landing-links {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .landing-nav-inner {
    padding: 12px 16px;
  }
  .landing-actions .btn-ghost {
    display: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 64px 18px 50px;
  }
  .landing-section {
    padding: 52px 18px;
  }
}

/* ================================================================
   AGENT 77 — COMMAND CENTER THEME (overrides)
   Flat, sharp, terminal-green on near-black. No glows, no rainbow.
   ================================================================ */
:root {
  --bg-0: #050506;
  --bg-1: #0a0b0d;
  --bg-2: #101114;
  --bg-3: #16181c;
  --bg-4: #1d2025;
  --bg-hover: #0d0e11;
  --accent: #00e676;
  --accent-dim: #00c862;
  --accent-glow: rgba(0, 230, 118, 0.22);
  --accent-soft: rgba(0, 230, 118, 0.06);
  --accent-2: #ff4d5e;
  --nebula-pink: #ff4d5e;
  --nebula-purple: #8b5cf6;
  --nebula-blue: #3b82f6;
  --nebula-cyan: #22d3ee;
  --galaxy-core: #00e676;
  --text-1: #e7e9ec;
  --text-2: #9aa1ab;
  --text-3: #5c6370;
  --border: rgba(255, 255, 255, 0.07);
  --border-light: rgba(255, 255, 255, 0.12);
  --green: #00e676;
  --green-dim: rgba(0, 230, 118, 0.08);
  --red: #ff4d5e;
  --red-dim: rgba(255, 77, 94, 0.1);
  --yellow: #f5b302;
  --yellow-dim: rgba(245, 179, 2, 0.1);
  --blue: #58a6ff;
  --blue-dim: rgba(88, 166, 255, 0.1);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  --transition: 0.18s ease;
}

body {
  background: var(--bg-0);
  background-image: none;
  color: var(--text-1);
}

body::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---- Shared brand / logo ---- */
.logo {
  background: var(--accent);
  border-radius: 8px;
  box-shadow: none;
  animation: none;
}

.logo svg {
  fill: #050506;
}

.grad-text,
.auth-brand h1,
.sidebar-brand h1,
.hero-title span,
.hero-stat-num {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
}

/* ---- Sidebar / app shell ---- */
.sidebar {
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  box-shadow: none;
}

.sidebar-brand {
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.nav-btn.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-left: 2px solid var(--accent);
  box-shadow: none;
}

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

.topbar {
  background: rgba(10, 11, 13, 0.9);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

/* ---- Buttons ---- */
.btn-fill {
  background: var(--accent);
  color: #050506;
  border: none;
  box-shadow: none;
  font-weight: 700;
}

.btn-fill:hover {
  background: #00ff87;
  box-shadow: 0 0 0 1px rgba(0, 230, 118, 0.4);
  transform: translateY(-1px);
}

.btn-fill:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  background: var(--bg-3);
  color: var(--text-1);
  border-color: var(--border-light);
}

/* ---- Panels / cards / lists ---- */
.panel,
.card,
.build-card,
.feature-card,
.module-chip,
.faq-item,
.landing-cta-band {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: none;
}

.panel-head,
.tools-panel-head,
.modal-header,
.card-head {
  border-bottom: 1px solid var(--border);
}

.list-item {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.list-item:hover {
  background: var(--bg-hover);
  border-color: rgba(0, 230, 118, 0.25);
  box-shadow: none;
}

/* ---- Auth ---- */
.auth-page {
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.auth-page::before,
.auth-page::after {
  display: none;
}

.auth-card {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-toggle {
  background: var(--bg-0);
}

.auth-toggle button.active {
  background: var(--bg-3);
  color: var(--accent);
}

/* ---- Forms ---- */
.field input,
.field textarea,
.input,
select.input,
input[type="text"],
input[type="password"] {
  background: var(--bg-0);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-1);
}

.field input:focus,
.input:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.15);
}

/* ---- Terminal / logs ---- */
.log-box,
.terminal-output,
.chat-messages {
  background: var(--bg-0);
  border: 1px solid var(--border);
  font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
}

.log-line {
  font-family: 'Cascadia Code', Consolas, 'Courier New', monospace;
  font-size: 11.5px;
}

/* ---- Landing page restyle ---- */
.landing-nav {
  background: rgba(5, 5, 6, 0.85);
  border-bottom: 1px solid var(--border);
}

.landing-logo .logo {
  background: var(--accent);
  box-shadow: none;
}

.landing-logo .logo svg {
  fill: #050506;
}

.landing-brand-name {
  color: var(--text-1);
  letter-spacing: 2px;
}

.landing-brand-name b {
  color: var(--accent);
}

.hero {
  padding-bottom: 80px;
}

.hero-grid-bg {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
}

.hero-title {
  color: var(--text-1);
  text-shadow: none;
  letter-spacing: 6px;
}

.hero-badge {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 230, 118, 0.25);
  color: var(--accent);
}

.hero-sub {
  color: var(--text-2);
}

.hero-stats {
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  gap: 1px;
}

.hero-stat {
  background: var(--bg-1);
  border-radius: 0;
}

.hero-stat-label {
  color: var(--text-3);
}

.landing-kicker {
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(0, 230, 118, 0.2);
}

.feature-card:hover {
  background: var(--bg-hover);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: none;
  transform: translateY(-2px);
}

.feature-card::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.feature-icon {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--accent);
}

.module-chip {
  background: var(--bg-1);
  border-color: var(--border);
  font-family: 'Cascadia Code', Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.3px;
}

.module-chip:hover {
  background: var(--bg-hover);
  border-color: rgba(0, 230, 118, 0.35);
  box-shadow: none;
  transform: translateY(-1px);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.faq-item summary::after {
  color: var(--accent);
}

.faq-body {
  color: var(--text-2);
}

.landing-cta-band {
  background: var(--bg-1);
  border: 1px solid rgba(0, 230, 118, 0.18);
  box-shadow: none;
}

.landing-footer {
  border-top: 1px solid var(--border);
}

/* ---- Modals / toasts ---- */
.modal {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.toast {
  background: var(--bg-1);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
}

/* ---- Map ---- */
.leaflet-container {
  background: var(--bg-0);
  font-family: 'Cascadia Code', Consolas, monospace;
}

.a77-marker {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.a77-marker-wrap {
  background: transparent;
  border: none;
}

.a77-popup {
  font-family: 'Cascadia Code', Consolas, monospace;
}

.a77-popup-name {
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 4px;
}

.a77-popup-row {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}

.a77-online {
  color: var(--accent);
  font-size: 9px;
  letter-spacing: 1px;
}

.a77-offline {
  color: var(--text-3);
  font-size: 9px;
  letter-spacing: 1px;
}

.leaflet-popup-content-wrapper {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-1);
}

.leaflet-popup-tip {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
}

.leaflet-bar a {
  background: var(--bg-2);
  color: var(--text-1);
  border-bottom: 1px solid var(--border);
}

.leaflet-bar a:hover {
  background: var(--bg-3);
  color: var(--accent);
}

.text-muted {
  color: var(--text-3);
}
