*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-weight: 400 !important;
  letter-spacing: -0.01em
}

:root {
  --bg-primary: #0a0c0b;
  --bg-secondary: #0d100f;
  --bg-card: rgba(0, 0, 0, 0.15);
  --border: rgba(255, 255, 255, 0.03);
  --border-glow: rgba(255, 255, 255, 0.02);
  --text-primary: #8a9491;
  --text-secondary: #66736f;
  --text-muted: #4a5451;
  --accent: #5b7a6d;
  --accent-light: #708c81;
  --accent-dark: #3d5249;
  --emerald: #5b7a6d;
  --amber: #7a6d5b;
  --rose: #8a6d6d;
  --purple: #746b8a;
  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, .3);
  --sidebar-w: 220px;
  --transition: all .2s ease;
  --font: 'Inter', sans-serif;
  --font-header: 'Inter', sans-serif;
  /* Instrument look: Inter only */
  --font-brand: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;
}

h1,
h2,
h3,
h4,
strong,
b,
.nav-btn,
.btn,
.ws-plugin-name,
.top-rank,
.stat-value,
.card-header h3,
.view-header h1,
.sidebar-brand {
  font-weight: 600 !important;
  font-family: var(--font-header) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-brand {
  font-family: var(--font-brand) !important;
  letter-spacing: 2px;
  font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
.stat-value,
.plugin-card-title,
.tree-label {
  font-family: var(--font);
  letter-spacing: normal
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  background-image: linear-gradient(rgba(10, 25, 15, 0.65), rgba(10, 25, 15, 0.65)), url('../assets/yggdrasil_bg.png');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2)
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light)
}

.hidden {
  display: none !important
}

a {
  color: var(--accent-light);
  text-decoration: none
}

a:hover {
  text-decoration: underline
}

/* Typography */
/* (Base fonts handled in global overrides) */

/* Loading */
.loading-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1f14;
  z-index: 9999;
  transition: opacity .5s
}

.loading-screen.fade-out {
  opacity: 0;
  pointer-events: none
}

.loading-content {
  text-align: center
}

.loading-logo svg {
  animation: spin 3s linear infinite
}

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

.loading-ring {
  stroke-dasharray: 150;
  stroke-dashoffset: 150;
  animation: dash 2s ease-in-out infinite
}

.loading-ring-inner {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  animation: dash 2s ease-in-out infinite .5s
}

@keyframes dash {
  50% {
    stroke-dashoffset: 0
  }

  100% {
    stroke-dashoffset: -150
  }
}

.loading-title {
  font-size: 2rem;
  font-weight: 900;
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(16, 185, 129, 0.4)
}

.loading-subtitle {
  color: var(--text-secondary);
  margin-top: .5rem;
  font-family: var(--font-header);
  font-size: 0.85rem
}

.loading-bar {
  width: 220px;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  margin: 1.5rem auto 0;
  overflow: hidden
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--amber));
  border-radius: 2px;
  transition: width .3s
}

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

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: rgba(15, 25, 20, 0.9);
  backdrop-filter: blur(15px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition)
}

.sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border)
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: .5rem
}

.sidebar-brand {
  font-weight: 900;
  font-size: 1.15rem;
  background: linear-gradient(135deg, var(--accent), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent
}

.sidebar-nav {
  list-style: none;
  flex: 1;
  padding: 0.75rem .4rem;
  overflow-y: auto
}

.sidebar-nav li {
  margin-bottom: 2px
}

.nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .75rem;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-header)
}

.nav-btn:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--text-primary)
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2)
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9
}

.sidebar-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted)
}

.sidebar-stats {
  margin-bottom: .5rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-header)
}

.github-link {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-muted);
  font-size: .8rem;
  transition: var(--transition)
}

.github-link:hover {
  color: var(--accent-light);
  text-decoration: none
}

/* Main */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-height: 100vh;
  padding: 0.75rem 1.25rem;
  backdrop-filter: blur(8px);
  background: rgba(13, 31, 20, 0.4);
}

.view {
  display: none;
  animation: mythicalIn .4s ease
}

.view.active {
  display: block
}

@keyframes mythicalIn {
  from {
    opacity: 0;
    transform: translateY(10px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

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

.view-header h1 {
  font-size: 1.1rem;
  background: none;
  -webkit-text-fill-color: initial;
  color: var(--text-primary);
  text-shadow: none;
  font-family: var(--font-header);
  letter-spacing: 2px;
  opacity: 0.9
}

.view-subtitle {
  color: var(--text-muted);
  margin-top: 0.1rem;
  font-size: 0.75rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.header-actions {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 0.5px
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff
}

.btn-accent:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(16, 185, 129, 0.3)
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  backdrop-filter: blur(5px)
}

.btn-ghost:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-primary);
  border-color: var(--accent)
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--accent)
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff
}

.btn-sm {
  padding: .35rem .8rem;
  font-size: .75rem
}

.btn-danger {
  background: var(--rose);
  color: #fff
}

.btn-danger:hover {
  opacity: 0.9
}

/* Inputs */
.input {
  width: 100%;
  padding: .7rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  font-size: .9rem;
  transition: var(--transition);
  backdrop-filter: blur(10px)
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1)
}

.textarea {
  min-height: 100px;
  resize: vertical
}

.select {
  padding: .6rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font: inherit;
  font-size: .85rem;
  cursor: pointer;
  backdrop-filter: blur(10px)
}

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

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow)
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.05)
}

.card-header {
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.1)
}

.card-header h3 {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px
}

.card-body {
  padding: 0.5rem
}

/* Stats Grid */
.stats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center
}

.stat-card {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px)
}

.stat-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  opacity: 0.6
}

.stat-card:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.02)
}

.stat-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5
}

.stat-icon svg {
  width: 10px;
  height: 10px;
  stroke: var(--accent-light)
}

.stat-value {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-primary);
  line-height: 1
}

.stat-label {
  font-size: .45rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--font-header);
  opacity: 0.8
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem
}

.card-wide {
  grid-column: 1/-1
}

.top-plugin-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: .35rem 0;
  border-bottom: 1px solid var(--border)
}

.top-plugin-item:last-child {
  border-bottom: none
}

.top-rank {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.1);
  color: var(--accent-light);
  flex-shrink: 0;
  border: 1px solid var(--border)
}

.top-plugin-info {
  flex: 1;
  min-width: 0
}

.top-plugin-name {
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: var(--transition);
  text-transform: none
}

.top-plugin-name:hover {
  color: var(--accent-light);
  transform: translateX(2px)
}

.top-plugin-meta {
  font-size: .65rem;
  color: var(--text-muted)
}

.top-plugin-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--amber);
  flex-shrink: 0
}

/* Tag Cloud */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .25rem
}

.tag-chip {
  padding: .35rem .8rem;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-header)
}

.tag-chip:hover {
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.05);
  background: rgba(16, 185, 129, 0.1)
}

.tag-chip.tag-lg {
  font-size: 0.9rem;
  padding: .45rem 1rem;
  font-weight: 900;
  color: var(--text-primary);
  border-color: rgba(16, 185, 129, 0.2)
}

.tag-chip.tag-md {
  font-size: .8rem;
  font-weight: 700
}

/* Taxonomy */
.taxonomy-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0.75rem;
  height: calc(100vh - 100px)
}

.taxonomy-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  backdrop-filter: blur(25px)
}

.taxonomy-search {
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02)
}

.tree-container {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.75rem 0.75rem
}

.tree-node {
  margin-left: 1rem;
  position: relative;
  border-left: 1px solid rgba(255, 255, 255, 0.05)
}

.tree-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: .85rem;
  user-select: none;
  margin-bottom: 1px
}

.tree-item:hover {
  background: rgba(255, 255, 255, 0.04);
  transform: translateX(3px)
}

.tree-item.active {
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15)
}

.tree-toggle {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
  flex-shrink: 0;
  color: var(--text-muted)
}

.tree-toggle.expanded {
  transform: rotate(90deg);
  color: var(--accent-light)
}

.tree-toggle.empty {
  visibility: hidden
}

.tree-icon {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.7
}

.tree-label {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.tree-count {
  font-size: .7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: .1rem .4rem;
  border-radius: 10px;
  flex-shrink: 0
}

.tree-section {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--border)
}

.tree-section-title {
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--amber);
  padding: .4rem .75rem;
  margin-bottom: .4rem;
  font-family: var(--font-header)
}

.taxonomy-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow-y: auto;
  padding: 1.5rem;
  backdrop-filter: blur(25px)
}

.taxonomy-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  gap: 1.25rem
}

.taxonomy-detail-empty p {
  font-family: var(--font-header);
  font-size: 1rem;
  opacity: 0.6
}

.taxonomy-detail-header {
  margin-bottom: 1.25rem
}

.taxonomy-detail-header h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff
}

/* Explorer */
.explorer-toolbar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(15px)
}

.search-box {
  flex: 1;
  min-width: 280px;
  position: relative
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none
}

.search-box .input {
  padding-left: 2.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm)
}

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

.explorer-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  font-size: .9rem;
  font-family: var(--font-header);
  font-weight: 700
}

/* Plugin Grid */
.plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem
}

.plugin-grid.list-view {
  grid-template-columns: 1fr
}

.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(15px)
}

.plugin-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-1px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5)
}

.plugin-card-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem
}

.plugin-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.05)
}

.plugin-card-title {
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--accent-light)
}

.plugin-card-version {
  font-size: .65rem;
  color: var(--text-muted);
  font-family: var(--font-mono)
}

.plugin-card-desc {
  font-size: .75rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .35rem;
  line-height: 1.4
}

.plugin-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .75rem
}

.plugin-tag {
  font-size: .65rem;
  padding: .2rem .55rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border)
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
  font-weight: 700
}

.plugin-stat {
  display: flex;
  align-items: center;
  gap: .25rem
}

.plugin-stat svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-light)
}

.plugin-card-quick {
  display: flex;
  gap: .35rem;
  margin-left: auto
}

.qbtn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  cursor: pointer;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  padding: 0;
  color: var(--text-secondary)
}

.qbtn:hover {
  border-color: var(--accent);
  transform: scale(1.1);
  background: rgba(16, 185, 129, 0.08);
  color: var(--accent-light)
}

.plugin-flags {
  position: absolute;
  top: .75rem;
  right: .75rem;
  display: flex;
  gap: .35rem
}

.plugin-flag {
  font-size: .6rem;
  padding: .15rem .5rem;
  border-radius: 6px;
  font-weight: 800;
  font-family: var(--font-header);
  text-transform: uppercase
}

.flag-gov {
  background: rgba(124, 58, 237, 0.15);
  color: #c084fc;
  border: 1px solid rgba(124, 58, 237, 0.3)
}

.flag-trusted {
  background: rgba(16, 185, 129, 0.15);
  color: #4ade80;
  border: 1px solid rgba(16, 185, 129, 0.3)
}

.flag-experimental {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.3)
}

.flag-deprecated {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3)
}

.flag-country {
  background: rgba(20, 184, 166, 0.15);
  color: #5eead4;
  border: 1px solid rgba(20, 184, 166, 0.3);
  font-size: .7rem
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem
}

.modal-overlay.show {
  display: flex
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: mythicalModal .35s ease;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7)
}

@keyframes mythicalModal {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1
}

.modal-close:hover {
  background: var(--accent);
  transform: rotate(90deg)
}

.modal-content {
  padding: 2rem
}

.modal-content h2 {
  font-size: 1.75rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--amber)
}

/* Detail View */
.detail-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border)
}

.detail-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border)
}

.detail-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.detail-title {
  font-size: 1.75rem;
  font-weight: 900;
  font-family: var(--font-header);
  line-height: 1.2
}

.detail-author {
  color: var(--amber);
  font-size: 0.95rem;
  margin-top: .35rem;
  font-weight: 700;
  font-family: var(--font-header)
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem
}

.detail-stat {
  text-align: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm)
}

.detail-stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  font-family: var(--font-mono);
  display: block;
  color: var(--accent-light)
}

.detail-stat-label {
  font-size: .7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-header);
  margin-top: 2px
}

.detail-section h4 {
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  color: var(--amber);
  font-family: var(--font-header);
  text-transform: uppercase;
  letter-spacing: 1px
}

.detail-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: justify
}

/* Taxonomy Detail Grid */
.taxonomy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0.75rem
}

.taxonomy-grid .plugin-card {
  margin-bottom: 0 !important;
  height: 100%;
  display: flex;
  flex-direction: column
}

.taxonomy-grid .plugin-card-desc {
  flex: 1
}

/* Metrics & Charts */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1rem
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.4rem
}

.bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem
}

.bar-label {
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.bar-value {
  font-family: var(--font-mono);
  color: var(--text-primary);
  font-weight: 800;
  text-align: right
}

.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.02)
}

.bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1)
}

/* Workspaces & Extension Manager */
.workspaces-container {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.ws-card {
  background: rgba(13, 31, 20, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  margin-bottom: 1rem;
  transition: var(--transition)
}

.ws-card:hover {
  border-color: rgba(16, 185, 129, 0.3)
}

.ws-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.ws-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-header);
  color: var(--accent-light)
}

.ws-card-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0px
}

.ws-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem
}

.ws-master-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted)
}

.ws-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.4rem;
  margin: 0.5rem 0
}

.ws-plugin-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
  transition: var(--transition);
  font-size: 0.8rem
}

.ws-plugin-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1)
}

.ws-plugin-item.disabled {
  opacity: 0.4;
  filter: grayscale(1)
}

.ws-plugin-name {
  flex: 1;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}

.ws-plugin-meta {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--text-muted)
}

.ws-card-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05)
}

.ws-search {
  margin-bottom: 0.5rem
}

.ws-search .input {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem
}

/* Standardized Typography & Menus */
.sidebar .nav-btn,
.view-header .btn,
.view-header .select,
.view-header .input,
.filter-group .select,
.card-header .btn,
.ws-card .btn,
.modal-content .btn,
.form-group .input,
.form-group .select,
.form-group .textarea {
  font-size: 0.85rem !important;
}

.sidebar-footer,
.view-subtitle,
.ws-card-desc,
.plugin-card-desc {
  font-size: 0.85rem;
}

.bar-label,
.ws-plugin-name,
.tree-item-label {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Rounded Components */
.card,
.stat-card,
.plugin-card,
.ws-card,
.sidebar-nav .nav-btn,
.select,
.input,
.tree-item,
.taxonomy-sidebar,
.taxonomy-detail {
  border-radius: 12px !important;
}

/* Responsive */
@media(max-width:1150px) {
  .taxonomy-container {
    grid-template-columns: 350px 1fr
  }
}

@media(max-width:900px) {
  .sidebar {
    width: 65px
  }

  .sidebar-brand,
  .sidebar .nav-btn span,
  .sidebar-footer,
  .sidebar-stats {
    display: none
  }

  .nav-btn {
    justify-content: center;
    padding: .8rem
  }

  .main-content {
    margin-left: 65px;
    padding: 1.25rem
  }

  .taxonomy-container {
    grid-template-columns: 1fr;
    height: auto
  }

  .dashboard-grid,
  .metrics-grid {
    grid-template-columns: 1fr
  }

  .plugin-grid {
    grid-template-columns: 1fr
  }

  .view-header h1 {
    font-size: 1.8rem
  }
}