:root {
  --bg: #06070d;
  --bg-alt: #0b0d16;
  --panel: #0f1419;
  --accent: #ff6b6b;
  --accent-soft: rgba(255, 107, 107, 0.18);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text-main: #f2f3f5;
  --text-muted: #9aa0a6;
  --text-soft: #7b818b;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 40px rgba(0,0,0,0.45);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

html, body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--text-main);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Smooth scrolling on mobile */
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
  z-index: 100;
  flex-wrap: wrap;
  box-sizing: border-box;
  margin: 0;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.94rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.nav__brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f97373, #dc2626 48%, #111827 100%);
  box-shadow: 0 0 22px rgba(248,113,113,0.8), 0 0 60px rgba(127,29,29,0.8);
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav__brand a:hover .nav__brand-mark {
  transform: scale(1.1);
}

.nav__links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.92rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav__link {
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.16s, background 0.16s;
  /* Touch-friendly: minimum 44x44px tap target */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

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

.nav__link--accent {
  background: var(--accent-soft);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

/* Dashboard Layout */
.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

.dashboard-container {
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sidebar {
  width: 280px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border-soft);
  padding: 1.5rem;
  overflow-y: auto;
}

.sidebar h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.sidebar h3 {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

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

.stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

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

.stat-value {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

.controls-section,
.filters-section,
.legend-section {
  margin-top: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"] {
  cursor: pointer;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

/* Graph Area */
.graph-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.graph-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  background: var(--bg-alt);
}

.graph-header h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.search-box {
  width: 100%;
  max-width: 500px;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  /* Mobile-friendly input */
  -webkit-appearance: none;
  appearance: none;
  font-size: 16px; /* Prevents zoom on iOS */
  touch-action: manipulation;
}

.search-input:focus {
  outline: none;
  border-color: var(--accent);
}

.graph-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

#graph-svg {
  width: 100%;
  height: 100%;
}

/* Buttons */
.btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  /* Touch-friendly: minimum 44x44px tap target */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation; /* Prevent double-tap zoom */
}

.btn-primary {
  background: linear-gradient(135deg, #ff6b6b, #c43434);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
  background: var(--panel);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

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

/* Tooltip */
.tooltip {
  position: absolute;
  padding: 0.75rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1000;
  box-shadow: var(--shadow-soft);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease-out;
}

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

.modal-content {
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 700px;
  width: 90%;
  max-height: 85vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s ease-out;
}

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

.modal-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.modal-header .node-type-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

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

.modal-close:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

#modal-body {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 120px);
}

.modal-section {
  margin-bottom: 2rem;
}

.modal-section:last-child {
  margin-bottom: 0;
}

.modal-section-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 600;
}

.modal-property {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  margin-bottom: 0.75rem;
}

.modal-property:last-child {
  margin-bottom: 0;
}

.modal-property-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
}

.modal-property-value {
  font-size: 1rem;
  color: var(--text-main);
  word-break: break-word;
}

.modal-property-value.highlight {
  color: var(--accent);
  font-weight: 600;
}

.modal-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.modal-list-item {
  padding: 0.75rem 1rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  color: var(--text-main);
  font-size: 0.9rem;
}

/* Content Container */
.content-container {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Filters Bar */
.filters-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

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

.filter-group label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.filter-input {
  padding: 0.5rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9rem;
  width: 100px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Vendors Container */
.vendors-container,
.clusters-container {
  display: grid;
  gap: 1rem;
}

.vendor-card,
.cluster-card {
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.vendor-card h3,
.cluster-card h3 {
  color: var(--text-main);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.vendor-card p,
.cluster-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.loading {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
}

/* Analytics Styles */
.analytics-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}

.analytics-section h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

.chart-container {
  margin-top: 1rem;
}

.vendor-types-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vendor-type-item {
  padding: 1rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}

.vendor-type-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.vendor-type-name {
  color: var(--text-main);
  font-weight: 500;
  text-transform: capitalize;
}

.vendor-type-count {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.vendor-type-bar {
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.vendor-type-bar-fill {
  height: 100%;
  background: linear-gradient(135deg, #ff6b6b, #c43434);
  transition: width 0.3s;
}

.top-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.top-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--panel);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  border: 1px solid var(--border-soft);
}

.top-list-name {
  color: var(--text-main);
  font-weight: 500;
}

.top-list-count {
  color: var(--accent);
  font-weight: 600;
}

/* Section Styles */
.section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.section__dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

.section__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
}

.section__headline {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  max-width: 800px;
  color: var(--text-main);
  line-height: 1.2;
}

.section__description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

/* Info Box Styles */
.info-box {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-box:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.info-box__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  font-weight: 600;
}

.info-box__text {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

.info-box-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-box-grid--4cols {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet and below (max-width: 1200px) - Only affects grid layouts, not dashboard */
@media (max-width: 1200px) {
  .info-box-grid--4cols {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 3rem 1.5rem;
  }
  
  .section__headline {
    font-size: 2rem;
  }
}

  /* Mobile (max-width: 768px) */
/* Hamburger Menu Styles */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
  position: relative;
}

.hamburger-box {
  width: 30px;
  height: 24px;
  position: relative;
  display: inline-block;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 30px;
  height: 3px;
  background-color: var(--text-main);
  border-radius: 2px;
  position: absolute;
  transition: transform 0.15s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
  content: '';
  display: block;
}

.hamburger-inner::before {
  top: -10px;
}

.hamburger-inner::after {
  bottom: -10px;
}

.hamburger.is-active .hamburger-inner {
  transform: rotate(45deg);
}

.hamburger.is-active .hamburger-inner::before {
  top: 0;
  transform: rotate(-90deg);
}

.hamburger.is-active .hamburger-inner::after {
  bottom: 0;
  transform: rotate(-90deg);
}

body.no-scroll {
  overflow: hidden;
}

@media (max-width: 768px) {
  /* Navigation */
  .nav {
    padding: 0.75rem 1rem;
    min-height: 64px;
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .nav__brand {
    font-size: 0.9rem;
    flex: 1;
  }
  
  .hamburger {
    display: flex;
  }
  
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--bg-alt);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 0.5rem;
    font-size: 0.9rem;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    margin-left: -1rem;
    margin-right: -1rem;
  }
  
  .nav__links.is-active {
    display: flex;
  }
  
  .nav__link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }
  
  /* Smooth scrolling for mobile */
  .sidebar {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  .graph-container {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  /* Better touch targets */
  .stat-item {
    min-height: 44px;
  }
  
  .filter-checkbox {
    min-height: 44px;
    padding: 0.5rem 0;
  }
  
  /* Dashboard Layout - Only changes on mobile, desktop stays the same */
  .dashboard-container {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
  }
  
  .sidebar {
    width: 100%;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    padding: 1rem;
  }
  
  .content-container {
    padding: 1rem;
  }
  
  .sidebar h2 {
    font-size: 1.1rem;
  }
  
  .graph-area {
    min-height: 400px;
  }
  
  .graph-header {
    padding: 1rem;
  }
  
  .graph-header h2 {
    font-size: 1.1rem;
  }
  
  .page-header h1 {
    font-size: 1.5rem;
  }
  
  .subtitle {
    font-size: 0.95rem;
  }
  
  /* Sections */
  .section {
    padding: 2rem 1rem;
  }
  
  .section__headline {
    font-size: 1.75rem;
  }
  
  .section__description {
    font-size: 1rem;
  }
  
  /* Grids */
  .info-box-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .info-box-grid--4cols {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  
  /* Cards */
  .info-box {
    padding: 1.5rem;
  }
  
  .info-box__title {
    font-size: 1.25rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-card .stat-value {
    font-size: 1.5rem;
  }
  
  .vendor-card,
  .cluster-card {
    padding: 1rem;
  }
  
  /* Filters */
  .filters-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-input {
    width: 100%;
  }
  
  /* Modal */
  .modal-content {
    width: 95%;
    max-height: 90vh;
    margin: 1rem;
  }
  
  .modal-header {
    padding: 1.5rem 1rem 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.25rem;
  }
  
  #modal-body {
    padding: 1rem;
    max-height: calc(90vh - 100px);
  }
  
  /* Buttons */
  .btn {
    padding: 0.75rem 1rem; /* Larger padding for easier tapping */
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    min-height: 48px; /* Larger tap target */
    touch-action: manipulation;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-bottom: 0.75rem; /* More spacing between buttons */
  }
  
  /* Input fields - prevent zoom on iOS */
  input[type="text"],
  input[type="number"],
  input[type="email"],
  input[type="search"],
  textarea,
  select {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 0.75rem 1rem;
    min-height: 44px;
  }
  
  /* Smooth scrolling containers */
  #modal-body {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  
  /* Stats */
  .stats {
    gap: 0.5rem;
  }
  
  .stat-item {
    padding: 0.6rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .stat-value {
    font-size: 1rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .nav {
    padding: 0.75rem;
    min-height: 64px;
  }
  
  .nav__brand {
    font-size: 0.85rem;
    gap: 0.5rem;
    flex: 1;
  }
  
  .nav__brand-mark {
    width: 22px;
    height: 22px;
  }
  
  .nav__links {
    padding: 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
  }
  
  .nav__link {
    font-size: 0.85rem;
    padding: 0.7rem 0.9rem;
  }
  
  .nav__links {
    gap: 0.4rem;
    font-size: 0.85rem;
    width: 100%;
    flex-wrap: wrap;
  }
  
  .nav__link {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  
  .section {
    padding: 1.5rem 0.75rem;
  }
  
  .section__headline {
    font-size: 1.5rem;
  }
  
  .content-container {
    padding: 0.75rem;
  }
  
  .sidebar {
    padding: 0.75rem;
  }
  
  .graph-header {
    padding: 0.75rem;
  }
  
  .modal-content {
    width: 100%;
    margin: 0.5rem;
    border-radius: var(--radius-md);
  }
  
  .modal-header {
    padding: 1rem 0.75rem 0.75rem;
  }
  
  .modal-header h2 {
    font-size: 1.1rem;
  }
  
  #modal-body {
    padding: 0.75rem;
  }
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #c43434);
  color: white;
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
}

/* Clusters Section */
.clusters-section {
  margin-top: 3rem;
}

.clusters-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

/* ============================================
   ENHANCED UI COMPONENTS
   ============================================ */

/* Vendor Cards - Enhanced */
.vendor-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.vendor-card:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 107, 107, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 107, 107, 0.15), 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.vendor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.vendor-card h3 {
  color: var(--accent);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  flex: 1;
  transition: color 0.2s;
}

.vendor-card:hover h3 {
  color: #ff4444;
}

.vendor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.vendor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.vendor-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s;
}

.vendor-meta span:hover {
  color: var(--text-main);
}

.vendor-summary {
  color: #d1d5db;
  margin-top: 0.75rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.service-tag {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(255, 107, 107, 0.15) 100%);
  color: #ff8888;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(255, 107, 107, 0.2);
  transition: all 0.2s;
}

.service-tag:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.35) 0%, rgba(255, 107, 107, 0.25) 100%);
  transform: translateY(-1px);
}

.category-badge {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.category-kyc_tools { 
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.25) 0%, rgba(255, 193, 7, 0.15) 100%);
  color: #ffc107;
  border-color: rgba(255, 193, 7, 0.3);
}
.category-fake_docs { 
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.25) 0%, rgba(255, 107, 107, 0.15) 100%);
  color: var(--accent);
  border-color: rgba(255, 107, 107, 0.3);
}
.category-synthetic_id_kits { 
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.25) 0%, rgba(156, 39, 176, 0.15) 100%);
  color: #ba68c8;
  border-color: rgba(156, 39, 176, 0.3);
}
.category-fraud_tools { 
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.25) 0%, rgba(244, 67, 54, 0.15) 100%);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.3);
}
.category-kyc_bypass, .category-kyc_bypass_selfie_pass_services {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.25) 0%, rgba(255, 152, 0, 0.15) 100%);
  color: #ff9800;
  border-color: rgba(255, 152, 0, 0.3);
}
.category-synthetic_identity_vendors, .category-synthetic_identity_service {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.25) 0%, rgba(156, 39, 176, 0.15) 100%);
  color: #ba68c8;
  border-color: rgba(156, 39, 176, 0.3);
}
.category-fraud_as_a_service {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.25) 0%, rgba(244, 67, 54, 0.15) 100%);
  color: #f44336;
  border-color: rgba(244, 67, 54, 0.3);
}

.platform-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.25) 0%, rgba(33, 150, 243, 0.15) 100%);
  color: #64b5f6;
  border: 1px solid rgba(33, 150, 243, 0.3);
}

/* Profile Page Styles */
.profile-header {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15) 0%, rgba(255, 107, 107, 0.05) 100%);
  border-left: 4px solid var(--accent);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-header h1 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.profile-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profile-section:hover {
  border-color: rgba(255, 107, 107, 0.3);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.1);
}

.profile-section h3 {
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.profile-section h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(180deg, var(--accent), transparent);
  border-radius: 2px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 107, 107, 0.2);
}

.info-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.info-value {
  color: var(--text-main);
  font-size: 1rem;
  font-weight: 500;
}

/* Enhanced Stat Cards */
.stat-card-enhanced {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.stat-card-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.stat-card-enhanced:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border-color: rgba(255, 107, 107, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.stat-card-enhanced:hover::before {
  opacity: 1;
}

.stat-value-enhanced {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label-enhanced {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Loading States */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 107, 107, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

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

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus States for Accessibility */
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Selection */
::selection {
  background: rgba(255, 107, 107, 0.3);
  color: var(--text-main);
}

/* Clean Transitions */
* {
  transition-property: color, background-color, border-color, transform, box-shadow;
  transition-duration: 0.2s;
  transition-timing-function: ease;
}

/* Remove transitions for performance-critical elements */
svg, canvas {
  transition: none;
}

