:root {
  --bg: #0f172a;
  --bg-2: #111827;
  --card: rgba(17, 24, 39, 0.96);
  --muted: #94a3b8;
  --text: #e5e7eb;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --border: #1f2937;
  --ok: #15803d;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: linear-gradient(180deg, #020617 0%, #111827 100%);
  color: var(--text);
}

.container {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto;
  display: grid;
  gap: 20px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}

.hero {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.25), transparent 25%),
    rgba(17, 24, 39, 0.96);
}

.badge,
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #334155;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(15, 23, 42, .85);
}

h1, h2, h3 { margin-top: 0; }
h1 { font-size: 34px; margin-bottom: 12px; }
h2 { margin-bottom: 8px; }
p { line-height: 1.5; }
.subtitle, .muted, .statusText { color: var(--muted); }

.heroActions,
.sectionHeader,
.moduleTop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.heroActions {
  margin-top: 18px;
  justify-content: flex-start;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.moduleCard {
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 18px;
  background: rgba(15, 23, 42, .92);
}

button {
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: var(--accent-2); }
button.secondary { background: #334155; }

.codeBlock {
  margin: 0;
  padding: 16px;
  border-radius: 16px;
  overflow-x: auto;
  background: #020617;
  border: 1px solid #334155;
  color: #cbd5e1;
}

.statusText.ok { color: #86efac; }

@media (max-width: 820px) {
  .grid { grid-template-columns: 1fr; }
  .sectionHeader,
  .moduleTop,
  .heroActions { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 28px; }
}
