:root {
  --bg-shell: #0d0d0d;
  --bg-sidebar: #101010;
  --bg-card: #151515;
  --bg-card-hover: #1a1a1a;
  --bg-input: #171717;
  
  --line-subtle: #202020;
  --line-strong: #2a2a2a;
  
  --accent: #5B2333;
  --accent-hover: #7A2E44;
  --accent-soft: rgba(91, 35, 51, 0.22);
  --accent-glow: rgba(91, 35, 51, 0.4);
  
  --text-main: #f4f4f5;
  --text-dim: #a1a1aa;
  --text-muted: #71717a;
  --text-dark: #52525b;
  
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-line: rgba(239, 68, 68, 0.35);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-line: rgba(245, 158, 11, 0.35);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-line: rgba(16, 185, 129, 0.35);

  --discord: #5865F2;
  --steam: #171a21;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-shell);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 13.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* App Layout Grid (Sidebar + Main Stage) */
.dashboard-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Left Sidebar Navigation (Matching Image 3) */
.side-nav {
  width: 230px;
  min-width: 230px;
  height: 100%;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--line-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  user-select: none;
  z-index: 10;
}

.side-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 20px;
  border-bottom: 1px solid var(--line-subtle);
}

.side-brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  background-color: var(--accent);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.side-brand-icon svg {
  width: 20px;
  height: 20px;
}

.side-brand-text {
  display: flex;
  flex-direction: column;
}

.side-brand-title {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.3px;
  color: var(--text-main);
  line-height: 1.2;
}

.side-brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 140ms ease;
  text-align: left;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-item.active {
  background-color: rgba(255, 255, 255, 0.07);
  color: #ffffff;
  font-weight: 600;
}

.nav-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 140ms ease;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: #ffffff;
}

.nav-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
  background-color: var(--line-strong);
  color: var(--text-dim);
}

/* Sidebar User Footer */
.side-user-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-top: 1px solid var(--line-subtle);
  background-color: #0e0e0e;
}

.side-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  object-fit: cover;
  background-color: var(--line-strong);
}

.user-details {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.user-role {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.btn-user-action {
  width: 28px;
  height: 28px;
  border-radius: 5px;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 120ms ease;
}

.btn-user-action:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
}

.user-action-icon {
  width: 16px;
  height: 16px;
}

/* Main Stage */
.main-stage {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--bg-shell);
}

/* Top Nav Bar */
.top-nav-bar {
  height: 52px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-subtle);
  user-select: none;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}

.bc-sep {
  font-size: 14px;
  color: var(--text-dark);
}

.bc-active {
  color: var(--text-main);
  font-weight: 500;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.live-sync-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-size: 11px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.4px;
}

.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.btn-create-pin-primary {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 6px;
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent-hover);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 140ms ease;
  box-shadow: 0 2px 10px var(--accent-soft);
}

.btn-create-pin-primary:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 2px 14px var(--accent-glow);
}

.btn-icon-solid {
  width: 15px;
  height: 15px;
}

/* Views Management */
.view-container {
  display: none;
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px 40px;
}

.view-container.active {
  display: block;
}

/* Common Card */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 18px 22px;
}

.card-header-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.tag-hash {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  color: var(--text-main);
}

.chart-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* VIEW 1: HOME (Matching Image 3) */
.welcome-header {
  margin-bottom: 24px;
}

.welcome-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.welcome-highlight {
  color: #e06d88;
}

.home-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}

.home-main-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Activity Chart (Image 3) */
.chart-card {
  padding-bottom: 12px;
}

.chart-container {
  width: 100%;
  position: relative;
}

.activity-chart {
  width: 100%;
  height: 140px;
  display: block;
}

.chart-axis-labels {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px 0;
  font-size: 11px;
  color: var(--text-dark);
}

/* Quick Stats Row */
.quick-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-stat-box {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.qs-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.qs-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  font-feature-settings: 'tnum' 1;
}

.qs-val.alert-val {
  color: #f87171;
}

/* Announcements Column */
.announcements-card {
  height: 100%;
}

.announcements-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.announcement-item {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-subtle);
}

.announcement-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.announcement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.announcement-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  padding: 1px 6px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-dim);
}

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

.announcement-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 3px;
}

.announcement-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.announcement-desc code {
  color: #e06d88;
  background-color: rgba(91, 35, 51, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 11px;
  font-family: var(--font-mono);
}

.link-btn {
  background: transparent;
  border: 0;
  color: #e06d88;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

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

.recent-sessions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recent-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background-color: #121212;
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 120ms ease;
}

.recent-item-row:hover {
  background-color: #181818;
}

/* VIEW 2: MY PINS (Matching Image 4) */
.pins-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.title-with-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.title-icon {
  width: 24px;
  height: 24px;
  color: #38bdf8;
}

.pins-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
}

.pins-sub {
  font-size: 13px;
  color: var(--text-muted);
}

/* Tabs */
.pins-tabs-row {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.tab-chip {
  padding: 6px 14px;
  border-radius: 5px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 120ms ease;
}

.tab-chip.active {
  background-color: #202020;
  color: #ffffff;
  border-color: #333333;
  font-weight: 600;
}

.tab-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background-color: #2a2a2a;
}

/* Metrics Bar (Image 4) */
.pins-metrics-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  padding: 16px 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  margin-bottom: 22px;
}

.metric-segment {
  display: flex;
  flex-direction: column;
}

.metric-top-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.m-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.dot-green { background-color: #10b981; }
.dot-gray { background-color: #71717a; }
.dot-yellow { background-color: #f59e0b; }
.dot-red { background-color: #ef4444; }

.metric-large-num {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  font-feature-settings: 'tnum' 1;
}

.metric-footnote {
  font-size: 11px;
  color: var(--text-dark);
}

/* Filter Bar */
.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  padding: 7px 12px;
  width: 320px;
}

.search-icon {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

.search-input-wrap input {
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-main);
  font-family: inherit;
  font-size: 12.5px;
  width: 100%;
}

.filter-dropdowns {
  display: flex;
  gap: 10px;
}

.custom-select {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  color: var(--text-dim);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 12.5px;
  outline: 0;
  cursor: pointer;
}

/* Pins Table */
.table-container {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  overflow: visible;
}

.pins-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.pins-table th {
  padding: 12px 18px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-subtle);
  background-color: #121212;
}

.pins-table td {
  padding: 14px 18px;
  font-size: 13px;
  color: var(--text-main);
  border-bottom: 1px solid var(--line-subtle);
}

.pins-table tr:last-child td {
  border-bottom: 0;
}

.pins-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.02);
}

.td-pin-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

.chip-waiting {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.chip-clean {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.chip-flagged {
  background-color: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.chip-suspicious {
  background-color: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-row-action {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 15px;
  line-height: 1;
}

.btn-row-action:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}


.ad-item.text-danger:hover {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ff9999;
}

.ad-icon {
  width: 14px;
  height: 14px;
}

/* VIEW 3: SCAN VIEW */
.scan-view-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

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

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 6px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-subtle:hover {
  background-color: #222222;
  color: #ffffff;
  border-color: #383838;
}

.btn-subtle.text-danger {
  color: #f87171;
}

.btn-subtle.text-danger:hover {
  background-color: var(--danger-bg);
  border-color: var(--danger-line);
}

.scan-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 16px 22px;
  margin-bottom: 22px;
}

.scan-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pin-chip {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 5px;
  background-color: #222222;
  border: 1px solid #333333;
}

.game-chip, .time-chip, .suspect-chip {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #1a1a1a;
  color: var(--text-dim);
}

.suspect-chip {
  background-color: rgba(91, 35, 51, 0.2);
  color: #e06d88;
  border: 1px solid rgba(91, 35, 51, 0.4);
}

.verdict-banner {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.verdict-banner.clean {
  background-color: var(--success-bg);
  color: #34d399;
  border: 1px solid var(--success-line);
}

.verdict-banner.flagged {
  background-color: var(--danger-bg);
  color: #f87171;
  border: 1px solid var(--danger-line);
}

.verdict-banner.suspicious {
  background-color: var(--warning-bg);
  color: #fbbf24;
  border: 1px solid var(--warning-line);
}

/* TARGET INTELLIGENCE GRID (Solves Image 1 & 2) */
.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

.intel-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
}

.intel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.intel-icon,
.intel-steam-icon {
  width: 15px;
  height: 15px;
  color: #8E364F;
  flex-shrink: 0;
}

.intel-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background-color: #222222;
  color: var(--text-dim);
}

.intel-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.intel-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.intel-v {
  font-size: 12.5px;
  color: #ffffff;
  font-weight: 500;
}

.intel-v.mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.intel-chips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
}

.intel-none {
  font-size: 12px;
  color: var(--text-dark);
}

.account-chip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background-color: #121212;
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  font-size: 12px;
  gap: 10px;
}

.acc-chip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  min-width: 0;
}

.acc-avatar {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  background-color: #1c1c1c;
  flex-shrink: 0;
}

.acc-info-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}

.acc-chip-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acc-chip-user {
  font-weight: 600;
  color: #ffffff;
}

.acc-chip-link {
  color: #e06d88;
  text-decoration: none;
  font-size: 11px;
}

.acc-chip-link:hover {
  text-decoration: underline;
}

.acc-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-chip-copy {
  background: transparent;
  border: 1px solid var(--line-subtle);
  border-radius: 4px;
  color: var(--text-dim);
  font-family: inherit;
  font-size: 10.5px;
  padding: 2px 7px;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-chip-copy:hover {
  background-color: #222222;
  color: #ffffff;
  border-color: #444444;
}

/* Metrics row */
.scan-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.sm-box {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
}

.sm-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.6px;
  margin-bottom: 4px;
}

.sm-val {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  font-feature-settings: 'tnum' 1;
}

.text-danger { color: #f87171 !important; }
.text-warning { color: #fbbf24 !important; }

/* Sections */
.section-container {
  margin-bottom: 24px;
}

.section-header-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-tag-txt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.section-count-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
  background-color: var(--danger-bg);
  color: #f87171;
  border: 1px solid var(--danger-line);
}

.threats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.threat-card {
  padding: 12px 16px;
  background-color: #151515;
  border: 1px solid var(--line-subtle);
  border-left: 3px solid #ef4444;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.threat-card.warning-style {
  border-left-color: #f59e0b;
}

.threat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.threat-type {
  font-size: 10.5px;
  font-weight: 700;
  color: #f87171;
  letter-spacing: 0.4px;
}

.threat-card.warning-style .threat-type {
  color: #fbbf24;
}

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

.threat-msg {
  font-size: 12.5px;
  color: #f4f4f5;
  font-family: var(--font-mono);
  word-break: break-all;
}

.threat-sha1 {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Logs Table */
.logs-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.log-filter-chips {
  display: flex;
  gap: 6px;
}

.log-pill {
  padding: 5px 12px;
  border-radius: 5px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all 120ms ease;
}

.log-pill.active {
  background-color: #222222;
  color: #ffffff;
  border-color: #383838;
  font-weight: 600;
}

.log-search-wrap input {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  color: var(--text-main);
  border-radius: 6px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  outline: 0;
  width: 260px;
}

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

.audit-table th {
  padding: 10px 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-subtle);
  background-color: #121212;
  text-align: left;
}

.audit-table td {
  padding: 10px 14px;
  font-size: 12px;
  border-bottom: 1px solid var(--line-subtle);
  vertical-align: top;
}

.audit-table tr:last-child td {
  border-bottom: 0;
}

.level-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.level-badge.detection { background-color: var(--danger-bg); color: #f87171; }
.level-badge.warning { background-color: var(--warning-bg); color: #fbbf24; }
.level-badge.info { background-color: rgba(255, 255, 255, 0.05); color: var(--text-muted); }

.td-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  word-break: break-all;
}

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

/* Setup View */
.setup-header {
  margin-bottom: 22px;
}

.setup-card {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
}

.setup-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setup-k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.setup-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #101010;
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  padding: 10px 14px;
}

.setup-copy-box code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #38bdf8;
}

.setup-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.setup-desc code {
  font-family: var(--font-mono);
  color: #e06d88;
  background-color: rgba(91, 35, 51, 0.2);
  padding: 1px 4px;
  border-radius: 3px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-panel {
  background-color: #171717;
  border: 1px solid #2e2e2e;
  border-radius: 8px;
  width: 440px;
  max-width: 90vw;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid #282828;
}

.modal-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.btn-close-modal {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #ffffff;
}

.modal-inner {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-bot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px;
  border-top: 1px solid #282828;
  background-color: #131313;
}

.modal-generated-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #101010;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  padding: 12px 16px;
}

.m-pin-val {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.form-group input,
.form-group select {
  background-color: #121212;
  border: 1px solid #2c2c2c;
  color: #ffffff;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: 0;
}

.form-group input:focus,
.form-group select:focus {
  border-color: #7A2E44;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
  border: 1px solid var(--accent-hover);
  padding: 8px 18px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 120ms ease;
}

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

/* Discord Auth Modal */
.auth-modal-inner {
  text-align: center;
  padding: 24px 28px 28px;
}

.auth-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.discord-big-icon {
  width: 28px;
  height: 28px;
  color: #5865F2;
}

.auth-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.auth-modal-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.45;
}

.btn-discord-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 18px;
  border-radius: 6px;
  background-color: #5865F2;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  transition: background-color 120ms ease;
  border: 0;
}

.btn-discord-primary:hover {
  background-color: #4752c4;
}

.auth-divider {
  display: flex;
  align-items: center;
  margin: 16px 0;
  color: var(--text-dark);
  font-size: 11px;
  letter-spacing: 0.6px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #282828;
}

.auth-divider span {
  padding: 0 10px;
}

/* Upload Modal */
.drop-zone {
  border: 2px dashed #333333;
  border-radius: 6px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background-color: #121212;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone:hover {
  border-color: #7A2E44;
}

.drop-icon {
  width: 24px;
  height: 24px;
  color: var(--text-muted);
}

.drop-text {
  font-size: 12.5px;
  color: var(--text-dim);
}

.drop-text code {
  color: #e06d88;
}

#upload-paste-json {
  width: 100%;
  height: 90px;
  background-color: #121212;
  border: 1px solid #2c2c2c;
  color: var(--text-main);
  border-radius: 6px;
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  outline: 0;
  resize: vertical;
}

/* Utilities */
.td-empty {
  text-align: center;
  color: var(--text-muted);
  padding: 30px !important;
}

.loading-state-clean {
  text-align: center;
  color: var(--text-muted);
  padding: 20px 0;
  font-size: 12.5px;
}


/* USER MISMATCH BADGE & TOOLTIP */
.mismatch-badge-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
  vertical-align: middle;
}

.mismatch-badge {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.55);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.3px;
}

.mismatch-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  top: calc(100% + 8px);
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  background-color: #161616;
  color: #f4f4f5;
  border: 1px solid #ef4444;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  line-height: 1.45;
  width: 290px;
  max-width: 90vw;
  text-align: center;
  pointer-events: none;
  z-index: 9999999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.95);
  transition: opacity 120ms ease, visibility 120ms ease;
}

.mismatch-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent #ef4444 transparent;
}

.mismatch-tooltip.tooltip-flip-top {
  bottom: calc(100% + 8px) !important;
  top: auto !important;
}

.mismatch-tooltip.tooltip-flip-top::after {
  top: 100% !important;
  bottom: auto !important;
  border-color: #ef4444 transparent transparent transparent !important;
}

.mismatch-badge-wrap:hover .mismatch-tooltip {
  visibility: visible;
  opacity: 1;
}

.mismatch-banner {
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fca5a5;
  font-size: 13px;
  line-height: 1.5;
}

.mismatch-banner strong {
  color: #ffffff;
}

/* STAFF PANEL STYLES */
.staff-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.staff-box {
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
}

.staff-box-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.staff-box-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 4px;
}

/* Tooltips for System Diagnostics */
.intel-row.has-tooltip {
  position: relative;
  cursor: pointer;
}

.intel-time-hover {
  cursor: pointer;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.25);
  display: inline-block;
  width: fit-content;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.intel-time-hover:hover {
  color: #f3f4f6;
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.intel-simple-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 0;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  font-size: 11px;
  font-family: var(--font-mono);
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.intel-row.has-tooltip:hover .intel-simple-tooltip,
.intel-time-hover:hover ~ .intel-simple-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Action Dropdown Menu */
.action-dropdown {
  position: fixed !important;
  z-index: 9999999 !important;
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
  padding: 5px;
  min-width: 180px;
  backdrop-filter: blur(12px);
  pointer-events: auto !important;
}

.ad-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: transparent;
  border: 0;
  color: #d4d4d8;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background-color 100ms ease, color 100ms ease;
  width: 100%;
}

.ad-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #a1a1aa;
}

.ad-item:hover {
  background-color: #262626;
  color: #ffffff;
}

.ad-item:hover svg {
  color: #ffffff;
}

.ad-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.ad-item.ad-danger {
  color: #f87171;
}

.ad-item.ad-danger svg {
  color: #f87171;
}

.ad-item.ad-danger:hover {
  background-color: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.ad-item.ad-danger:hover svg {
  color: #ef4444;
}

/* Level badge for USB */
.level-badge.usb {
  background-color: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

/* Discord Screenshare Shield Badges */
.discord-shield-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: help;
  position: relative;
  transition: transform 120ms ease;
  margin-right: 4px;
}

.discord-shield-badge .shield-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.discord-shield-badge.shield-green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.discord-shield-badge.shield-yellow {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.discord-shield-badge.shield-red {
  background: rgba(239, 68, 68, 0.14);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.discord-shield-badge:hover {
  transform: translateY(-1px);
}

.discord-shield-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  right: 0;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f4f4f5;
  font-size: 11px;
  font-family: inherit;
  font-weight: 500;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.discord-shield-badge:hover .discord-shield-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.discord-shield-badge {
  cursor: pointer;
}

/* Sidebar Brand Logo Image */
.side-brand-icon {
  background-color: transparent !important;
  border: 1px solid var(--line-subtle);
  overflow: hidden;
}

.side-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 9px;
  transform: scale(1.35);
}

/* Modal Banner Image */
.modal-banner-top {
  width: calc(100% + 40px);
  height: 120px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin: -20px -20px 16px -20px;
  border-bottom: 1px solid var(--line-subtle);
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dossier Modal Styles */
.dossier-panel {
  max-width: 680px;
  width: 95vw;
}

.dossier-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 75vh;
  overflow-y: auto;
  padding: 20px;
}

.dossier-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
}

.dossier-target-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dossier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line-subtle);
}

.dossier-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dossier-username {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
}

.dossier-risk-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--line-subtle);
}

.dossier-id {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
}

.dossier-verdict-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.dossier-verdict-badge.badge-clean {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.dossier-verdict-badge.badge-warning {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.dossier-verdict-badge.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.dossier-shield-icon {
  width: 16px;
  height: 16px;
}

.dossier-metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.dossier-metric-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
}

.d-metric-lbl {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.d-metric-val {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.dossier-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dossier-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-subtle);
  padding-bottom: 6px;
}

.dossier-badge-count {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.dossier-ticket-item {
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dossier-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
}

.dossier-ticket-reason {
  font-weight: 600;
  color: #ef4444;
}

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

.dossier-ticket-guild {
  font-size: 11.5px;
  color: var(--text-dim);
}

.dossier-guild-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  font-size: 12px;
}

.dossier-guild-name {
  font-weight: 600;
  color: var(--text-main);
}

.dossier-guild-id {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.dossier-guild-status {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
}

.status-in-server {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.status-left-server {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.dossier-empty-note {
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
  padding: 8px 0;
}

/* Dedicated Lookup View Styles */
.lookup-search-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.lookup-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  padding: 6px 14px;
}

.lookup-search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
}

.lookup-input-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-main);
  font-family: inherit;
  font-size: 13.5px;
}

.lookup-results-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ==========================================================================
   Mobile Responsive Navigation & Fluid Touch Styles
   ========================================================================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  color: var(--text-main);
  padding: 6px 9px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-strong);
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

/* Tablet & Moderate Screen Adaptation */
@media (max-width: 1024px) {
  .intelligence-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Screens (Phones & Phablets) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
    overflow-y: auto;
    height: auto;
    min-height: 100%;
  }

  .dashboard-shell {
    flex-direction: column;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow: visible;
  }

  /* Slide-in Drawer Sidebar */
  .side-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100%;
    z-index: 1600;
    transform: translateX(-100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
  }

  .side-nav.mobile-open {
    transform: translateX(0);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-right: 12px;
  }

  .top-nav-bar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0d0d0d;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line-subtle);
    display: flex;
    align-items: center;
  }

  .main-stage {
    width: 100%;
    height: auto;
    overflow: visible;
    padding: 0;
  }

  .view-container {
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .intelligence-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .quick-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .pins-header {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .btn-create-pin-primary {
    width: 100%;
    justify-content: center;
  }

  .pins-metrics-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .pins-metrics-bar .metric-segment:last-child {
    grid-column: span 2;
  }

  .table-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .filter-dropdowns {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .filter-dropdowns select {
    width: 100%;
  }

  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    border-radius: 6px;
  }

  .pins-table, .audit-table {
    min-width: 620px;
  }

  .scan-view-top {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .scan-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .scan-summary-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .scan-summary-left {
    flex-wrap: wrap;
    gap: 6px;
  }

  .lookup-input-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
  }

  .lookup-input-wrap button {
    width: 100%;
  }

  .dossier-panel {
    width: 95vw;
    max-width: 95vw;
    margin: 10px;
  }

  .dossier-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .dossier-metrics-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px;
  }

  .dossier-inner {
    padding: 14px;
    max-height: 75vh;
  }

  .account-chip-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }

  .acc-actions {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }

  .discord-shield-badge {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }
}

@media (max-width: 480px) {
  .quick-stats-row {
    grid-template-columns: 1fr;
  }

  .pins-metrics-bar {
    grid-template-columns: 1fr;
  }

  .pins-metrics-bar .metric-segment:last-child {
    grid-column: auto;
  }

  .dossier-metrics-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.auth-portal-view {
  min-height: 100vh;
  width: 100%;
  background-color: #0d0d0e;
  background-image: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  font-family: var(--font-family);
  color: var(--text-main);
}

.auth-card {
  width: 100%;
  max-width: 410px;
  background-color: #161616;
  border: 1px solid #282828;
  border-radius: 12px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.auth-brand-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
}

.auth-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
}

.auth-subtitle {
  margin: 4px 0 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: #71717a;
  text-transform: uppercase;
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  line-height: 1.4;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-alert.error {
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-alert.success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  background-color: #101011;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid #222223;
  margin-bottom: 22px;
}

.auth-tab-btn {
  background: transparent;
  border: 0;
  color: #71717a;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 140ms ease;
  text-transform: uppercase;
}

.auth-tab-btn.active {
  background-color: #222224;
  color: #ffffff;
}

.auth-tab-btn:hover:not(.active) {
  color: #d4d4d8;
}

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

.auth-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.auth-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #a1a1aa;
  text-transform: uppercase;
}

.auth-status-tag {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.auth-status-tag.available {
  color: #34d399;
}

.auth-status-tag.taken {
  color: #f87171;
}

.auth-status-tag.checking {
  color: #a1a1aa;
}

.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-input-icon {
  position: absolute;
  left: 12px;
  width: 16px;
  height: 16px;
  color: #71717a;
  pointer-events: none;
}

.auth-input {
  width: 100%;
  background-color: #121213;
  border: 1px solid #262626;
  border-radius: 7px;
  padding: 10px 12px 10px 36px;
  font-family: inherit;
  font-size: 13px;
  color: #f4f4f5;
  box-sizing: border-box;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.auth-input:focus {
  outline: none;
  border-color: #4b5563;
  background-color: #151516;
}

.auth-input::placeholder {
  color: #52525b;
}

.btn-auth-submit {
  width: 100%;
  background-color: #ffffff;
  color: #09090b;
  border: 0;
  border-radius: 7px;
  padding: 11px 16px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, transform 100ms ease;
  margin-top: 4px;
}

.btn-auth-submit:hover {
  background-color: #e4e4e7;
}

.btn-auth-submit:active {
  transform: scale(0.99);
}

.btn-auth-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.auth-divider {
  position: relative;
  text-align: center;
  margin: 6px 0;
}

.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background-color: #242426;
}

.auth-divider span {
  position: relative;
  background-color: #161616;
  padding: 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.8px;
  color: #71717a;
}

.auth-oauth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-auth-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #18181b;
  border: 1px solid #27272a;
  border-radius: 7px;
  padding: 9px 12px;
  color: #e4e4e7;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease;
}

.btn-auth-oauth:hover {
  background-color: #222226;
  border-color: #3f3f46;
  color: #ffffff;
}

.oauth-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.btn-oauth-discord svg {
  color: #5865F2;
}

.auth-verify-banner {
  text-align: center;
  margin-bottom: 8px;
}

.auth-verify-icon {
  width: 38px;
  height: 38px;
  color: #d4d4d8;
  margin-bottom: 8px;
}

.auth-verify-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.auth-verify-sub {
  margin: 6px 0 0 0;
  font-size: 12.5px;
  color: #a1a1aa;
  line-height: 1.4;
}

.auth-code-input {
  text-align: center;
  letter-spacing: 8px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  padding: 12px;
}

.auth-verify-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.btn-auth-link {
  background: transparent;
  border: 0;
  color: #a1a1aa;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 120ms ease;
}

.btn-auth-link:hover {
  color: #ffffff;
}

.tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.chip-tier-free {
  background: rgba(113, 113, 122, 0.2);
  color: #a1a1aa;
  border: 1px solid rgba(113, 113, 122, 0.4);
}

.chip-tier-basic {
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.chip-tier-pro {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.chip-tier-enterprise {
  background: rgba(147, 51, 234, 0.18);
  color: #c084fc;
  border: 1px solid rgba(147, 51, 234, 0.45);
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.team-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.team-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.team-name-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
}

.team-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.team-stat-tile {
  background: var(--bg-card-hover);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.team-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.team-stat-value {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.team-invite-bar {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg-card-hover);
  border: 1px solid var(--line-subtle);
  border-radius: 6px;
  flex-wrap: wrap;
}

.team-invite-input {
  flex: 1;
  min-width: 220px;
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: inherit;
  outline: 0;
}

.team-invite-input:focus {
  border-color: var(--accent);
}

.code-copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card-hover);
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-main);
  cursor: pointer;
  transition: all 120ms ease;
}

.code-copy-chip:hover {
  background: var(--line-subtle);
  border-color: var(--text-muted);
}

.table-tier-select {
  background: var(--bg-input);
  border: 1px solid var(--line-strong);
  color: var(--text-main);
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11.5px;
  font-family: inherit;
  outline: 0;
  cursor: pointer;
}

.table-tier-select:focus {
  border-color: var(--accent);
}

