/* ==========================================================================
   FLUXO CONNECT MANAGER — OFFICIAL FLUXO BRAND IDENTITY DESIGN SYSTEM
   ========================================================================== */

:root {
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Official Fluxo Brand Palette */
  --bg-dark: #04070a;
  --bg-card: rgba(10, 16, 22, 0.72);
  --bg-card-hover: rgba(18, 28, 38, 0.85);
  --border-glass: rgba(204, 255, 0, 0.12);
  --border-glow: rgba(204, 255, 0, 0.4);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fluxo Signature Colors */
  --lime-glow: #ccff00;
  --lime-bright: #d4ff00;
  --lime-dark: #8cc600;
  --gold-glow: #ffd700;
  --cyan-glow: #00f2fe;
  --purple-glow: #a855f7;
  --red-glow: #ff4757;

  /* Gradients */
  --gradient-fluxo: linear-gradient(135deg, #ccff00 0%, #8cc600 100%);
  --gradient-cosmic: linear-gradient(135deg, rgba(204, 255, 0, 0.18), rgba(255, 215, 0, 0.12));
  --gradient-card: linear-gradient(180deg, rgba(204, 255, 0, 0.05) 0%, rgba(5, 8, 14, 0.85) 100%);
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Canvas Cosmic Background */
#cosmic-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.cosmic-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 30%, rgba(204, 255, 0, 0.09) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.06) 0%, transparent 40%);
  z-index: -1;
  pointer-events: none;
}

/* App Container Layout */
.app-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar Styles */
.sidebar {
  width: 290px;
  background: rgba(5, 8, 14, 0.92);
  backdrop-filter: blur(25px);
  border-right: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  z-index: 10;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.brand-logo-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--border-glow);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.35);
}

.brand-text h2 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, #ffffff, var(--lime-glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--lime-glow);
  letter-spacing: 0.5px;
}

/* Session Badge Card */
.session-status-badge {
  background: rgba(204, 255, 0, 0.06);
  border: 1px solid rgba(204, 255, 0, 0.25);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ping-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--lime-glow);
  box-shadow: 0 0 12px var(--lime-glow);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 255, 0, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(204, 255, 0, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(204, 255, 0, 0); }
}

.status-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lime-glow);
}

.session-number {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

.session-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Nav Menu */
.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-heading {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
  padding-left: 0.75rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-item:hover {
  background: rgba(204, 255, 0, 0.05);
  color: var(--text-main);
  transform: translateX(4px);
}

.nav-item.active {
  background: var(--gradient-cosmic);
  border: 1px solid var(--border-glow);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.15);
}

.nav-item i {
  font-size: 1.15rem;
  color: var(--lime-glow);
}

.nav-pill {
  margin-left: auto;
  background: rgba(204, 255, 0, 0.2);
  color: var(--lime-glow);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.nav-sparkle {
  margin-left: auto;
  background: var(--gradient-fluxo);
  color: #04070a;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-glass);
}

.system-mini-stats {
  display: flex;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  border-radius: 10px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mini-title {
  font-size: 0.65rem;
  color: var(--text-dim);
  font-weight: 700;
}

.mini-value {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
}

.mini-value.lime { color: var(--lime-glow); }

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

/* Top Header */
.top-header {
  height: 72px;
  background: rgba(5, 8, 14, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 9;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 0.6rem 1rem;
  border-radius: 12px;
  width: 380px;
  transition: all 0.3s ease;
}

.header-search:focus-within {
  border-color: var(--lime-glow);
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.25);
}

.header-search i {
  color: var(--text-muted);
}

.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-main);
  width: 100%;
}

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

.status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(204, 255, 0, 0.1);
  border: 1px solid rgba(204, 255, 0, 0.3);
  padding: 0.5rem 0.85rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--lime-glow);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-left: 0.5rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid var(--lime-glow);
  box-shadow: 0 0 10px rgba(204, 255, 0, 0.3);
}

.user-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.88rem;
  font-weight: 700;
}

.user-role {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--gradient-fluxo);
  color: #04070a;
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(204, 255, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(204, 255, 0, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-outline:hover {
  background: rgba(204, 255, 0, 0.1);
  border-color: rgba(204, 255, 0, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.btn-ghost.danger:hover {
  color: var(--red-glow);
  background: rgba(255, 71, 87, 0.1);
}

.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Content Body & Tabs */
.content-body {
  padding: 2rem;
  flex: 1;
}

.tab-view {
  display: none;
  flex-direction: column;
  gap: 1.75rem;
  animation: fadeIn 0.4s ease;
}

.tab-view.active {
  display: flex;
}

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

/* Glass Card Base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: rgba(204, 255, 0, 0.25);
}

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

.card-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Health Ribbon Status */
.health-ribbon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 16, 22, 0.85);
  border: 1px solid var(--border-glass);
  padding: 0.85rem 1.25rem;
  border-radius: 14px;
  overflow-x: auto;
}

.ribbon-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ribbon-item.online {
  color: var(--lime-glow);
}

.ribbon-arrow {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.stat-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.stat-icon {
  font-size: 1.4rem;
}

.stat-icon.lime { color: var(--lime-glow); }
.stat-icon.cyan { color: var(--cyan-glow); }
.stat-icon.purple { color: var(--purple-glow); }
.stat-icon.gold { color: var(--gold-glow); }

.stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: #fff;
}

.stat-footer {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.trend.positive {
  color: var(--lime-glow);
  font-weight: 700;
}

/* Dashboard Split Grid */
.dashboard-split {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
}

.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.85rem;
}

.spec-label { color: var(--text-muted); }
.spec-val { font-weight: 600; }

.console-card {
  display: flex;
  flex-direction: column;
}

.console-stream {
  background: rgba(3, 5, 10, 0.95);
  border: 1px solid rgba(204, 255, 0, 0.1);
  border-radius: 12px;
  padding: 1rem;
  height: 280px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.console-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.c-time { color: var(--text-dim); font-size: 0.75rem; }
.c-tag {
  font-weight: 700;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.c-tag.recv { background: rgba(204, 255, 0, 0.2); color: var(--lime-glow); }
.c-tag.webhook { background: rgba(0, 242, 254, 0.2); color: var(--cyan-glow); }
.c-tag.ai { background: rgba(168, 85, 247, 0.2); color: var(--purple-glow); }
.c-tag.sent { background: rgba(255, 215, 0, 0.2); color: var(--gold-glow); }

.c-msg { color: var(--text-main); flex: 1; }

/* Health Matrix Grid */
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.health-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.box-top { display: flex; justify-content: space-between; font-size: 0.85rem; }
.box-name { font-weight: 600; }
.box-status.lime { color: var(--lime-glow); font-weight: 700; font-family: var(--font-mono); }

.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill.lime { background: var(--lime-glow); height: 100%; box-shadow: 0 0 10px var(--lime-glow); }

/* Data Table Styles */
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  padding: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
}

.data-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.88rem;
}

.tenant-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tenant-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient-fluxo);
  color: #04070a;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.tenant-avatar.purple { background: linear-gradient(135deg, #a855f7, #7e22ce); color: #fff; }
.tenant-avatar.gold { background: linear-gradient(135deg, #ffd700, #d97706); color: #04070a; }

/* Badges & Tags */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.online {
  background: rgba(204, 255, 0, 0.12);
  color: var(--lime-glow);
  border: 1px solid rgba(204, 255, 0, 0.3);
}

.status-badge.warning {
  background: rgba(255, 215, 0, 0.12);
  color: var(--gold-glow);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.latency-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.latency-tag.lime { background: rgba(204, 255, 0, 0.15); color: var(--lime-glow); }
.latency-tag.gold { background: rgba(255, 215, 0, 0.15); color: var(--gold-glow); }

.badge-lime { background: rgba(204, 255, 0, 0.18); color: var(--lime-glow); }
.badge-cyan { background: rgba(0, 242, 254, 0.15); color: var(--cyan-glow); }
.badge-purple { background: rgba(168, 85, 247, 0.15); color: var(--purple-glow); }
.badge-outline { border: 1px solid var(--border-glass); color: var(--text-muted); }

/* Timeline Stream (Tab 3) */
.timeline-console {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: rgba(3, 5, 10, 0.95);
  padding: 1.25rem;
  border-radius: 14px;
  height: 480px;
  overflow-y: auto;
  font-family: var(--font-mono);
}

.timeline-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-left: 3px solid var(--lime-glow);
  border-radius: 8px;
}

/* Analytics Grid */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.bar-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 200px;
  padding-top: 1.5rem;
}

.bar-group { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; flex: 1; }

.bar {
  width: 28px;
  background: var(--gradient-fluxo);
  border-radius: 6px 6px 0 0;
  box-shadow: 0 0 15px rgba(204, 255, 0, 0.4);
}

.media-breakdown { display: flex; flex-direction: column; gap: 1rem; padding-top: 1rem; }
.media-row { display: flex; align-items: center; gap: 1rem; }
.media-label { width: 140px; font-size: 0.88rem; }
.media-bar-wrapper { flex: 1; height: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 6px; overflow: hidden; }
.media-bar { height: 100%; border-radius: 6px; }

.media-bar.lime { background: var(--lime-glow); box-shadow: 0 0 10px var(--lime-glow); }
.media-bar.cyan { background: var(--cyan-glow); }
.media-bar.purple { background: var(--purple-glow); }
.media-bar.gold { background: var(--gold-glow); }

.latency-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.latency-mini-card { display: flex; flex-direction: column; gap: 0.35rem; }
.lat-title { font-size: 0.72rem; font-weight: 700; color: var(--text-dim); }
.lat-val { font-size: 1.8rem; font-weight: 800; font-family: var(--font-mono); }
.lat-sub { font-size: 0.75rem; color: var(--text-muted); }

/* AI Operational Engineer View */
.ai-split-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.25rem; }
.ai-insights-list { display: flex; flex-direction: column; gap: 1rem; }

.ai-insight-box {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
}

.ai-insight-box.warning { border-left: 4px solid var(--gold-glow); }
.ai-insight-box.info { border-left: 4px solid var(--lime-glow); }
.ai-insight-box.success { border-left: 4px solid var(--lime-glow); }
.ai-insight-box.purple { border-left: 4px solid var(--purple-glow); }

.insight-icon { font-size: 1.5rem; color: var(--lime-glow); }
.insight-content h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.insight-content p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.insight-time { font-size: 0.72rem; color: var(--text-dim); }

/* Logs & Diagnostics */
.logs-console {
  background: #020408;
  padding: 1.25rem;
  border-radius: 12px;
  height: 480px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.log-entry { display: flex; gap: 1rem; }
.log-time { color: var(--text-dim); }
.log-tag.info { color: var(--lime-glow); }
.log-tag.success { color: var(--lime-glow); }
.log-tag.warn { color: var(--gold-glow); }
.log-tag.danger { color: var(--red-glow); }

.diag-score-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--lime-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(204, 255, 0, 0.4);
}

.score-num { font-size: 1.8rem; font-weight: 800; color: var(--lime-glow); font-family: var(--font-mono); }
.score-label { font-size: 0.65rem; color: var(--text-muted); }

.diag-tests-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
.diag-test-item { display: flex; align-items: center; gap: 0.75rem; background: rgba(255, 255, 255, 0.02); padding: 0.75rem 1rem; border-radius: 10px; font-size: 0.88rem; }
.diag-test-item.pass i { color: var(--lime-glow); }

/* Tools & Security Grid */
.tools-grid, .security-grid, .market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tool-box { display: flex; flex-direction: column; gap: 1rem; }
.tool-btn-group { display: flex; flex-direction: column; gap: 0.65rem; }
.sec-card { display: flex; flex-direction: column; gap: 0.35rem; }
.sec-title { font-size: 0.72rem; font-weight: 700; color: var(--text-dim); }
.sec-val { font-size: 1.5rem; font-weight: 800; font-family: var(--font-mono); }
.sec-sub { font-size: 0.75rem; color: var(--text-muted); }

.market-card { display: flex; flex-direction: column; gap: 0.75rem; }
.market-icon { font-size: 2.2rem; }

/* Modal Styles */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-backdrop.active { display: flex; }
.modal-box { width: 440px; padding: 2rem; }

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

.close-modal { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.qr-wrapper { margin: 1.5rem 0; display: flex; justify-content: center; }

.qr-code-box {
  position: relative;
  padding: 1rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 0 35px rgba(204, 255, 0, 0.4);
}

.qr-img { width: 220px; height: 220px; display: block; }
.qr-status-text { font-size: 0.85rem; color: var(--lime-glow); display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

/* Utilities & Scrollbars */
.font-mono { font-family: var(--font-mono); }
.text-lime { color: var(--lime-glow); }
.text-cyan { color: var(--cyan-glow); }
.text-purple { color: var(--purple-glow); }
.text-gold { color: var(--gold-glow); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: rgba(4, 7, 10, 0.5); }
::-webkit-scrollbar-thumb { background: rgba(204, 255, 0, 0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--lime-glow); }
