:root {
  --bg: #080808;
  --panel: rgba(18, 18, 18, 0.96);
  --box: rgba(34, 34, 34, 0.94);
  --accent: #f04d2c;
  --accent-dark: #8d210f;
  --text: #f4f4f4;
  --muted: #a9a9a9;
  --green: #42d46c;
  --red: #ff4a3a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background: radial-gradient(circle at top, #34100a 0, var(--bg) 42%);
}
.background {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(240, 77, 44, 0.08), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(255, 90, 35, 0.12), transparent 30%);
  pointer-events: none;
}
.hidden { display: none !important; }
.brand {
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 800;
  font-size: 14px;
}
.brand.small { font-size: 12px; }
.login-card {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  margin: 12vh auto;
  padding: 34px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}
h1, h2 { margin: 0; }
.login-card h1 { margin-top: 10px; font-size: 28px; }
.login-card p { color: var(--muted); margin-bottom: 24px; }
input, button {
  border: 0;
  border-radius: 10px;
  font-size: 15px;
}
input {
  width: 100%;
  padding: 13px 14px;
  margin-bottom: 12px;
  background: #101010;
  color: var(--text);
  outline: 1px solid rgba(255,255,255,0.08);
}
button {
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  padding: 12px 16px;
  font-weight: 700;
}
button:hover { filter: brightness(1.08); }
.error { min-height: 22px; margin-top: 12px; color: var(--red); }
.panel {
  position: relative;
  width: min(1220px, calc(100vw - 32px));
  margin: 28px auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
}
.topbar h1 { margin-top: 6px; font-size: 24px; }
.ghost {
  background: rgba(255,255,255,0.08);
  outline: 1px solid rgba(255,255,255,0.10);
}
.grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.card.wide { grid-column: span 1; }
.card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.card h2 {
  font-size: 18px;
  margin-bottom: 14px;
  color: #fff;
}
.small-button { padding: 9px 12px; font-size: 13px; }
.output {
  min-height: 150px;
  max-height: 380px;
  overflow: auto;
  padding: 14px;
  border-radius: 12px;
  background: #070707;
  color: #ddd;
  white-space: pre-wrap;
  font-family: Consolas, Monaco, monospace;
  font-size: 13px;
  line-height: 1.45;
  outline: 1px solid rgba(255,255,255,0.06);
}
.output.console { min-height: 260px; }
.quick-buttons {
  display: grid;
  gap: 10px;
}
.quick-buttons button {
  width: 100%;
  text-align: left;
  background: rgba(240,77,44,0.18);
  outline: 1px solid rgba(240,77,44,0.28);
}
.console-form {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  margin-bottom: 12px;
}
.console-form input { margin-bottom: 0; }
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .console-form { grid-template-columns: 1fr; }
}
