:root {
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --surface: #ffffff;
  --border: #e5e7eb;
  --muted: #6b7280;
  --text: #111827;
  --accent-red: #dc2626;
  --bg: #f4f5f7;
}

html, body {
  background: var(--bg);
  color: var(--text);
}

.app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 240px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  flex-direction: column;
  padding: 20px 12px;
}

.app-logo img { max-width: 140px; }

.app-sidebar .nav-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 16px 8px 6px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.side-link:hover, .side-link.active {
  background: var(--brand);
  color: #fff;
}

.app-topbar {
  margin-left: 240px;
  height: 60px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

main.app-main {
  margin-left: 240px;
}

.card-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.license-key {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

@media (max-width: 991.98px) {
  .app-sidebar { display: none; }
  .app-topbar, main.app-main { margin-left: 0; }
}
