:root {
  --bg: #10121a;
  --bg-soft: #161a25;
  --panel: rgba(22, 27, 41, 0.9);
  --panel-border: rgba(255, 255, 255, 0.08);
  --accent: #42d6b9;
  --accent-2: #f2c14e;
  --text: #f6f7fb;
  --muted: #b0b7c3;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --font-display: "Trebuchet MS", "Lucida Sans Unicode", "Nimbus Sans", sans-serif;
  --font-mono: "Courier New", "Lucida Console", monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #1f2941 0%, #0f131d 40%, #0b0d12 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-orbit {
  position: absolute;
  top: -200px;
  right: -150px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 214, 185, 0.25), rgba(66, 214, 185, 0));
  filter: blur(2px);
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  z-index: 0;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 32px 8vw 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #2f74ff);
  color: #0b0d12;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}

.brand-text h1 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0.5px;
}

.brand-text p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
}

.status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(66, 214, 185, 0.8);
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 8vw 40px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: rise 0.6s ease both;
}

.card:nth-child(2) {
  animation-delay: 0.1s;
}

.card:nth-child(3) {
  animation-delay: 0.2s;
}

.card-head h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.card-head p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
}

.form label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
}

.form input,
.form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f141f;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.hint {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.card-actions {
  margin: 12px 0 16px;
}

.datadir {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--muted);
}

.datadir strong {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #101521;
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0d12;
  border: none;
}

.output {
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  background: rgba(9, 12, 18, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #d8e0ee;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  max-height: 300px;
  overflow: auto;
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 16px 8vw 32px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

@keyframes rise {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .brand-mark {
    width: 48px;
    height: 48px;
  }
}
