:root {
  --bg: #0f0f12;
  --panel: #15151a;
  --panel-2: #1b1b22;
  --text: #e9e9ef;
  --muted: #a6a6b3;
  --accent: #7c4dff;
  --accent-2: #aa8cff;
  --border: #262630;
}
* { box-sizing: border-box }
html, body { height: 100% }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #0e0e12 0%, #121218 100%);
}
.layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  padding: 16px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 10px 16px 6px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  min-height: 72px;
}
.brand-logo {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(124,77,255,.22) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,0));
  border: 1px solid var(--border);
  box-shadow: 0 0 0 1px rgba(124,77,255,.12), 0 6px 20px rgba(0,0,0,.25);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  align-self: center;
  min-width: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
nav#sidebar-nav {
  display: grid;
  gap: 6px;
  padding: 6px 4px 20px;
}
.nav-section {
  margin-top: 10px;
}
.nav-section > .section-title {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .6px;
  margin: 10px 8px 6px;
}
.nav-item, .nav-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  background: transparent;
}
.nav-item:hover, .nav-subitem:hover {
  background: var(--panel-2);
}
.nav-subitem {
  margin-left: 20px;
  opacity: .95;
}
.active {
  background: linear-gradient(90deg, rgba(124,77,255,.15), transparent 60%);
  outline: 1px solid rgba(124,77,255,.5);
}
.content {
  padding: 24px 28px;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 16px;
}
.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
}
.ghost:hover {
  border-color: var(--accent);
  color: white;
}
.page-content {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px;
}
.card-list {
  display: grid;
  gap: 10px;
}
.card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--panel-2);
  text-decoration: none;
  color: var(--text);
  outline: 1px solid var(--border);
}
.card:hover {
  outline-color: var(--accent);
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    height: auto;
  }
}
