
:root {
  --bg: #080914;
  --panel: #101221;
  --panel2: #15182a;
  --text: #f5f5ff;
  --muted: #9295ad;
  --border: #ffffff12;
  --accent: #9870ff;
  --blue: #579cff;
}

body.light {
  --bg: #f4f5fb;
  --panel: #ffffff;
  --panel2: #f0effa;
  --text: #171629;
  --muted: #77788e;
  --border: #17162915;
  --accent: #7044db;
  --blue: #327bdc;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  transition: background .2s, color .2s;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 26px 17px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.logo {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--accent);
  padding: 0 12px 35px;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 3px;
  margin-top: 5px;
}

.nav-label,
.breadcrumb {
  font-size: 10px;
  color: var(--muted);
  font-weight: bold;
  letter-spacing: 1.5px;
  padding: 12px;
}

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

.nav-link {
  color: var(--muted);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  transition: .2s;
}

.nav-link span {
  width: 20px;
  text-align: center;
  font-size: 17px;
}

.nav-link:hover,
.nav-link.active {
  background: #9870ff20;
  color: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 17px;
}

.theme-button {
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 12px;
  text-align: left;
}

.theme-button span {
  margin-left: 8px;
}

.version {
  color: var(--muted);
  font-size: 10px;
  padding: 12px;
}

.main {
  margin-left: 250px;
  width: calc(100% - 250px);
  padding: 30px 4%;
  max-width: 1700px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 38px;
}

.status {
  font-size: 11px;
  color: #43d6a0;
  background: #43d6a015;
  padding: 10px 13px;
  border-radius: 8px;
}

.welcome-tag {
  display: inline-block;
  color: #c4b5fd;
  background: #8b5cf622;
  border: 1px solid #6d4bd455;
  padding: 8px 13px;
  border-radius: 30px;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.welcome h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -2px;
}

.welcome h1 span {
  color: var(--accent);
}

.welcome p {
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
  font-size: 14px;
}

.hero {
  background: linear-gradient(115deg, #25184b, #172b52 65%, #17172d);
  border: 1px solid #9870ff35;
  border-radius: 20px;
  padding: 35px;
  margin: 30px 0;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 10px;
  color: #c4b5fd;
  letter-spacing: 2px;
  margin-bottom: 15px;
}

.hero h2 {
  font-size: 34px;
  line-height: 1.2;
}

.hero p {
  color: #d2c9ed;
  font-size: 13px;
  max-width: 500px;
  line-height: 1.8;
  margin: 15px 0 23px;
}

.hero-decoration {
  position: absolute;
  right: 8%;
  top: -30px;
  font-size: 200px;
  font-weight: 900;
  color: #ffffff0c;
}

.primary-button {
  display: inline-block;
  background: white;
  color: #5434a4;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: bold;
}

.section {
  margin-top: 35px;
}

.section-heading {
  margin-bottom: 17px;
}

.section-heading h2 {
  font-size: 19px;
}

.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 6px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.stat-card,
.tool-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
}

.stat-icon,
.tool-icon {
  font-size: 25px;
  color: var(--accent);
}

.stat-card strong {
  display: block;
  font-size: 25px;
  margin: 12px 0 5px;
}

.stat-card p,
.tool-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.tool-card {
  display: block;
  transition: .2s;
}

.tool-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.tool-icon {
  display: block;
  margin-bottom: 15px;
}

.tool-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.tool-category {
  display: inline-block;
  color: var(--accent);
  background: #9870ff20;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 9px;
  margin-top: 14px;
}

footer {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  padding: 35px 0;
}

@media(max-width: 850px) {
  .sidebar {
    width: 75px;
    padding: 20px 9px;
  }

  .logo {
    font-size: 18px;
    padding: 5px 0 30px;
    text-align: center;
  }

  .logo small,
  .nav-label,
  .nav-link {
    font-size: 0;
  }

  .nav-link {
    justify-content: center;
    padding: 13px 5px;
  }

  .nav-link span {
    font-size: 19px;
  }

  .theme-button span,
  .version {
    display: none;
  }

  .main {
    margin-left: 75px;
    width: calc(100% - 75px);
    padding: 22px 4%;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 520px) {
  .stats-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 25px 20px;
  }

  .hero-decoration {
    font-size: 120px;
    right: 2%;
  }
  }
