
:root {
  --bg: #0b0911;
  --sidebar: #100e18;
  --surface: #15121e;
  --surface-hover: #201a2b;
  --border: #34283f;
  --purple: #bd58f4;
  --purple-light: #e0a0ff;
  --text: #f8f5ff;
  --muted: #a29aac;
  --green: #51d99c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--purple-light);
  outline-offset: 3px;
}

.app {
  min-height: 100vh;
}

/* SIDEBAR */

.sidebar {
  width: 265px;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 27px 14px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 36px;
}

.brand-logo {
  width: 43px;
  height: 43px;
  background: linear-gradient(135deg, #e05cf5, #6938cf);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 0 25px #a13be444;
}

.brand strong {
  display: block;
  font-size: 15px;
  letter-spacing: 1px;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 5px;
}

.sidebar-label {
  color: #82748d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 0 14px;
  margin-bottom: 13px;
}

#navigation {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nav-button {
  background: transparent;
  color: #aaa1b7;
  border: 1px solid transparent;
  border-radius: 9px;
  width: 100%;
  padding: 12px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  transition: .2s;
}

.nav-button:hover {
  background: #211b2b;
  color: white;
}

.nav-button.active {
  background: #321c45;
  color: #e5b0ff;
  border-color: #623777;
}

.nav-icon {
  width: 23px;
  text-align: center;
  font-size: 18px;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}

.discord-link {
  display: flex;
  justify-content: space-between;
  background: #21192c;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 14px;
  font-size: 12px;
  font-weight: 700;
}

.discord-link:hover {
  border-color: var(--purple);
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding: 18px 8px 0;
}

.profile-icon, .top-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #39204e;
  border: 1px solid #63417e;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #e7c5ff;
}

.sidebar-profile strong {
  display: block;
  font-size: 11px;
}

.sidebar-profile small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}

/* MAIN */

.main {
  margin-left: 265px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 77px;
  border-bottom: 1px solid var(--border);
  padding: 15px 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.breadcrumb span {
  padding: 0 10px;
  color: #665a72;
}

.breadcrumb strong {
  color: white;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 300px;
  padding: 10px 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.search-box:focus-within {
  border-color: var(--purple);
}

.search-icon {
  color: var(--muted);
  font-size: 20px;
}

.search-box input {
  background: transparent;
  border: 0;
  outline: 0;
  color: white;
  font-size: 11px;
  flex: 1;
  min-width: 0;
}

.search-box kbd {
  color: #a59aaf;
  font-size: 10px;
  border: 1px solid #51445d;
  border-radius: 5px;
  padding: 3px 5px;
}

.top-avatar {
  border-radius: 50%;
}

.menu-button {
  display: none;
  border: none;
  background: transparent;
  color: white;
  font-size: 23px;
}

.content {
  width: 100%;
  max-width: 1350px;
  margin: 0 auto;
  padding: 37px 42px 70px;
  flex: 1;
  animation: fadeUp .3s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* HERO */

.hero {
  background:
    radial-gradient(circle at 85% 45%, #8a3db14b, transparent 48%),
    linear-gradient(120deg, #21132d, #13101b);
  border: 1px solid #603477;
  border-radius: 18px;
  padding: 49px 44px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "Z";
  position: absolute;
  right: 9%;
  top: 1%;
  font-size: 240px;
  font-weight: 900;
  color: #ad59e518;
  transform: rotate(-12deg);
  pointer-events: none;
}

.eyebrow {
  color: var(--purple-light);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin: 0;
}

.hero h1 span {
  color: var(--purple-light);
}

.hero p {
  position: relative;
  z-index: 1;
  max-width: 550px;
  color: #beb1cb;
  font-size: 12px;
  line-height: 1.9;
  margin: 19px 0;
}

.primary-button {
  position: relative;
  z-index: 1;
  background: linear-gradient(110deg, #bd55ec, #8148e4);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 800;
  transition: .2s;
}

.primary-button:hover {
  filter: brightness(1.13);
  transform: translateY(-2px);
}

/* PAGE TITLES */

.page-heading {
  margin-bottom: 28px;
}

.page-heading h1 {
  font-size: 34px;
  letter-spacing: -1px;
  margin: 0 0 10px;
}

.page-heading p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.section-heading {
  margin: 36px 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-heading h2 {
  font-size: 18px;
  margin: 0;
}

.section-heading span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

/* DASHBOARD CARDS */

.directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.directory-card {
  background: var(--surface);
  border: 1px solid var(--border);
  color: white;
  border-radius: 13px;
  padding: 24px;
  min-height: 180px;
  text-align: left;
  transition: .2s;
}

.directory-card:hover {
  background: var(--surface-hover);
  border-color: #9651b9;
  transform: translateY(-3px);
}

.directory-icon {
  width: 43px;
  height: 43px;
  border-radius: 10px;
  background: #372049;
  color: #dfa2ff;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 20px;
}

.directory-card h3 {
  font-size: 13px;
  margin: 0 0 10px;
}

.directory-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}

/* ACCORDIONS */

.accordion-list {
  display: grid;
  gap: 13px;
}

.accordion {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.accordion[open] {
  border-color: #75448b;
}

.accordion summary {
  list-style: none;
  padding: 21px 23px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  color: var(--purple-light);
  font-size: 21px;
  font-weight: 400;
}

.accordion[open] summary::after {
  content: "−";
}

.accordion-body {
  padding: 0 23px 23px;
  color: #c6bcd1;
  font-size: 12px;
  line-height: 2;
  white-space: pre-line;
}

/* NOTICE */

.notice {
  background: #21182b;
  border: 1px solid #59396c;
  border-radius: 12px;
  padding: 20px 22px;
  margin: 22px 0;
  font-size: 12px;
  color: #d8c4e4;
  line-height: 1.9;
}

/* METRICS */

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.metric {
  padding: 23px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
}

.metric-value {
  font-size: 29px;
  font-weight: 900;
  color: var(--purple-light);
}

.metric-label {
  font-size: 11px;
  color: var(--muted);
  margin-top: 10px;
}

/* COPYABLE COMMANDS */

.command-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
  margin-bottom: 14px;
}

.command-card h3 {
  color: #e3aaff;
  font-size: 13px;
  margin: 0 0 15px;
}

.command-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #24192f;
  border: 1px solid #5a3b70;
  border-radius: 9px;
  padding: 13px;
}

.command-box code {
  color: #e6c1ff;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-button {
  border: 1px solid #8855a4;
  background: #442957;
  color: white;
  border-radius: 7px;
  padding: 9px 13px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.copy-button:hover {
  background: #684184;
}

/* EVIDENCE LIBRARY */

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}

.evidence-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow: hidden;
}

.evidence-preview {
  height: 155px;
  background:
    radial-gradient(circle at center, #71359655, transparent 70%),
    linear-gradient(140deg, #271933, #14101d);
  display: grid;
  place-items: center;
}

.play-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: 1px solid #aa6bce;
  background: #6d369966;
  color: white;
  display: grid;
  place-items: center;
  font-size: 22px;
}

.evidence-info {
  padding: 20px;
}

.evidence-tag {
  display: inline-block;
  background: #392049;
  color: #dfa5ff;
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .6px;
  margin-bottom: 12px;
}

.evidence-info h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.evidence-info p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  min-height: 58px;
}

.evidence-link {
  display: block;
  background: #39214c;
  color: #e6baff;
  border: 1px solid #684184;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 17px;
}

.evidence-link:hover {
  background: #57316e;
}

/* SEARCH */

.search-result {
  width: 100%;
  text-align: left;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 19px;
  color: white;
  margin-bottom: 12px;
}

.search-result:hover {
  border-color: var(--purple);
}

.search-result strong {
  font-size: 13px;
}

.search-result p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
  margin: 9px 0 0;
}

/* FOOTER */

.footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 24px 42px;
  border-top: 1px solid var(--border);
  color: #82768c;
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 25px;
  bottom: 25px;
  padding: 14px 20px;
  background: #482b5d;
  border: 1px solid #a361c8;
  border-radius: 9px;
  color: white;
  font-size: 12px;
  z-index: 100;
  opacity: 0;
  transform: translateY(12px);
  transition: .2s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.mobile-overlay {
  display: none;
}

/* RESPONSIVE */

@media (max-width: 1150px) {
  .directory,
  .evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-overlay.show {
    display: block;
    position: fixed;
    inset: 0;
    background: #000a;
    z-index: 20;
  }

  .main {
    margin-left: 0;
  }

  .menu-button {
    display: block;
  }

  .topbar {
    padding: 14px 20px;
  }

  .content {
    padding: 25px 20px 55px;
  }

  .search-box {
    width: 220px;
  }
}

@media (max-width: 580px) {
  .directory,
  .evidence-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 35px 24px;
  }

  .search-box {
    width: 145px;
  }

  .search-box kbd,
  .top-avatar {
    display: none;
  }

  .breadcrumb {
    font-size: 10px;
  }

  .page-heading h1 {
    font-size: 27px;
  }

  .footer {
    flex-direction: column;
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}