:root {
  --bg: #07101e;
  --sidebar: #0b1220;
  --panel: rgba(255,255,255,.055);
  --panel-strong: rgba(255,255,255,.09);
  --line: rgba(255,255,255,.12);
  --text: #eef4ff;
  --muted: #9fb0c8;
  --accent: #41e7a5;
  --accent2: #7cb7ff;
  --danger: #ff6b7c;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(65, 231, 165, .13), transparent 38rem),
    radial-gradient(circle at top right, rgba(124, 183, 255, .16), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 22px;
  background: linear-gradient(180deg, rgba(11,18,32,.96), rgba(11,18,32,.86));
  border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.logo {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font-weight: 900; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #06111d;
}
.brand span { display: block; color: var(--muted); font-size: 13px; }
nav { display: grid; gap: 8px; }
button, input, select, textarea { font: inherit; }
nav button, .secondary, .inline-btn {
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  padding: 12px 14px; border-radius: 14px; text-align: left; cursor: pointer;
}
.inline-btn { display: inline-block; margin-top: 10px; text-align: center; color: var(--text); background: var(--panel-strong); }
nav button.active, nav button:hover, .secondary:hover, .inline-btn:hover { color: var(--text); background: var(--panel-strong); }
.sidebar-footer { position: absolute; left: 22px; right: 22px; bottom: 22px; }
main { padding: 30px; max-width: 1440px; width: 100%; }
.topbar { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--accent2); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; }
h1 { margin: 0; font-size: clamp(32px, 5vw, 58px); line-height: 1; }
h2, h3 { margin-top: 0; }
.pill {
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  border-radius: 999px; padding: 10px 14px; max-width: 360px; overflow: hidden; text-overflow: ellipsis;
}
.panel, .card {
  border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.035));
  box-shadow: 0 18px 60px rgba(0,0,0,.20);
}
.panel { padding: 22px; margin-bottom: 18px; }
.grid { display: grid; gap: 16px; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { padding: 20px; }
.card h3 { color: var(--muted); font-size: 15px; }
.card strong { font-size: 36px; }
.form-grid { display: grid; gap: 12px; }
.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  background: rgba(2,8,18,.7); color: var(--text); padding: 12px 14px;
}
textarea { min-height: 100px; resize: vertical; }
form button, .panel > button {
  border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #06111d; font-weight: 800; padding: 12px 16px; cursor: pointer;
}
.list { display: grid; gap: 10px; }
.list-item, .module-item, .balance-item {
  border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.035); padding: 14px;
}
.list-item strong, .module-item strong { display: block; margin-bottom: 5px; }
.meta { color: var(--muted); font-size: 13px; line-height: 1.45; }
pre.meta { white-space: pre-wrap; }
.module-list { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.hidden { display: none !important; }
.toast {
  position: fixed; right: 22px; bottom: 22px; border: 1px solid var(--line);
  background: #0d1728; color: var(--text); border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28); max-width: 420px;
}
@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-footer { position: static; margin-top: 18px; }
  .cards, .two, .auth-grid, .module-list, .compact { grid-template-columns: 1fr; }
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 860px;
}
.hero-panel h2 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 14px;
}
.module-item {
  cursor: default;
}
#public-category-filter .module-item {
  cursor: pointer;
}
#public-category-filter .module-item:hover {
  background: var(--panel-strong);
}
