:root {
  --ns-bg: #0a0710;
  --ns-purple: #28113E;
  --ns-gold: #d4a256;
  --ns-text: #f3ece0;
  --ns-muted: #a89bb0;
  --ns-border: rgba(212, 162, 86, 0.35);
  --ns-ok: #6fbf73;
  --ns-off: #d95c5c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: radial-gradient(1200px 800px at 50% -10%, #1a0f2a 0%, var(--ns-bg) 60%);
  color: var(--ns-text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

h1, h2, .ns-logo, .ns-title {
  font-family: "Dragon Hunter", Georgia, "Times New Roman", serif;
  letter-spacing: 0.03em;
  color: var(--ns-gold);
}

.ns-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4vw;
  border-bottom: 1px solid var(--ns-border);
  background: rgba(10, 7, 16, 0.85);
}

.ns-logo { font-size: 22px; margin: 0; }
.ns-logo span { color: var(--ns-text); font-weight: 300; }

.ns-nav a, .ns-nav button {
  color: var(--ns-text);
  text-decoration: none;
  margin-left: 20px;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.ns-nav a:hover, .ns-nav button:hover { color: var(--ns-gold); }
.ns-logout-form { display: inline; }

.ns-main { padding: 24px 4vw 60px; max-width: 980px; margin: 0 auto; }

.ns-h1 { font-size: 28px; margin-bottom: 20px; }
.ns-h2 { font-size: 20px; margin: 30px 0 14px; }

.ns-card {
  background: var(--ns-purple);
  border: 1px solid var(--ns-border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.ns-card h2 { margin-top: 0; font-size: 18px; }

label {
  display: block;
  margin-bottom: 14px;
  color: var(--ns-muted);
  font-size: 14px;
}

input[type=text], input[type=email], input[type=password], select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  background: #150b22;
  border: 1px solid var(--ns-border);
  border-radius: 8px;
  color: var(--ns-text);
  font: inherit;
}

.ns-checkbox { display: flex; align-items: center; gap: 8px; }
.ns-checkbox input { width: auto; }

.ns-btn-primary, .ns-btn-small {
  background: var(--ns-gold);
  color: #241407;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-weight: 600;
  cursor: pointer;
}
.ns-btn-small { padding: 5px 12px; font-size: 13px; }
.ns-btn-primary:hover, .ns-btn-small:hover { filter: brightness(1.1); }

.ns-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #3a3a3a;
  color: var(--ns-text);
}
.ns-badge.ok { background: rgba(111,191,115,0.2); color: var(--ns-ok); }
.ns-badge.off { background: rgba(217,92,92,0.2); color: var(--ns-off); }

.ns-stats { display: flex; gap: 30px; margin-top: 16px; padding: 0; }
.ns-stats dt { font-size: 12px; color: var(--ns-muted); margin: 0; }
.ns-stats dd { margin: 0; font-size: 20px; }

.ns-platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 10px; }
.ns-platform { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #150b22; border-radius: 8px; border: 1px solid var(--ns-border); }
.ns-platform-tag-soon { opacity: 0.55; }
.ns-platform-name { font-weight: 600; }

.ns-help { color: var(--ns-muted); }
.ns-help-box { background: rgba(212,162,86,0.08); border: 1px solid var(--ns-border); border-radius: 8px; padding: 14px 16px; margin-bottom: 16px; font-size: 14px; }
.ns-help-box ol { margin: 8px 0 0 20px; padding: 0; }
.ns-muted { color: var(--ns-muted); font-size: 12px; }

.ns-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.ns-table th, .ns-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ns-border); }
.ns-table th { color: var(--ns-muted); font-weight: 500; font-size: 13px; }

.ns-login-wrap { display: flex; justify-content: center; align-items: center; min-height: 80vh; }
.ns-login-form { width: 100%; max-width: 380px; text-align: center; }
.ns-subtitle { color: var(--ns-muted); margin-top: -10px; margin-bottom: 24px; }
.ns-error, .ns-error-box { background: rgba(217,92,92,0.15); color: var(--ns-off); padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
