:root {
  --bg: #070a07;
  --bg-elevated: #0c100c;
  --bg-card: #0c100c;
  --bg-group: #0c100c;
  --bg-input: #090d09;
  --border-outer: rgba(130, 217, 79, 0.14);
  --border-mid: rgba(130, 217, 79, 0.14);
  --border-inner: rgba(130, 217, 79, 0.08);
  --border-soft: rgba(130, 217, 79, 0.16);
  --text: #f4f7f2;
  --text-muted: #a1aaa0;
  --text-dim: #687167;
  --accent: #82d94f;
  --accent-bright: #97e768;
  --accent-dim: #55a82f;
  --accent-glow: transparent;
  --btn: #111611;
  --btn-hover: #151d15;
  --btn-active: #182218;
  --rainbow: #82d94f;
  --font: "Poppins", "Segoe UI", system-ui, sans-serif;
  --shadow: none;
  --shadow-green: none;
}

html, body { background: #070a07; color: var(--text); }
*, *::before, *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.site-bg, .carbon-bg, .grain,
.navbar--fx::before, .navbar--fx::after,
.rainbow-bar { display: none !important; }

.navbar {
  background: rgba(7, 10, 7, 0.97) !important;
  border-bottom: 1px solid rgba(130, 217, 79, 0.1) !important;
  box-shadow: none !important;
}
.navbar-inner { min-height: 68px; }
.brand-wordmark { filter: none !important; }
.pill-nav { background: transparent !important; border: 0 !important; padding: 0 !important; }
.pill-nav a { border-radius: 4px !important; color: var(--text-muted) !important; }
.pill-nav a:hover, .pill-nav a.active { background: #111611 !important; color: var(--text) !important; }

.btn {
  min-height: 38px;
  border-radius: 4px !important;
  border: 1px solid rgba(130, 217, 79, 0.16) !important;
  background: #111611 !important;
  color: var(--text) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
.btn:hover { background: #151d15 !important; border-color: rgba(130, 217, 79, 0.34) !important; transform: none !important; }
.btn-primary {
  background: #82d94f !important;
  border-color: #82d94f !important;
  color: #071006 !important;
  font-weight: 600;
}
.btn-primary:hover { background: #97e768 !important; border-color: #97e768 !important; }
.btn-discord { background: #111611 !important; color: var(--text) !important; }

.osiris-window, .groupbox, .overview-card, .build-download-card,
.subscription-card, .admin-stat, .cfx-card, .auth-gate-box {
  background: #0c100c !important;
  border: 1px solid rgba(130, 217, 79, 0.14) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}
.osiris-window::before, .osiris-window::after,
.groupbox::before { display: none !important; }
.window-title {
  padding: 20px 22px 0 !important;
  color: var(--text) !important;
  font-size: 16px !important;
}
.osiris-window > .window-body { padding: 20px 22px 24px !important; }
.groupbox { padding: 24px 16px 16px !important; }
.groupbox-title { color: var(--accent) !important; background: #0c100c !important; }

.field label { color: #c4ccc1 !important; }
.field input, .field textarea, .field select, textarea, select {
  background: #090d09 !important;
  border: 1px solid rgba(130, 217, 79, 0.16) !important;
  border-radius: 4px !important;
  color: var(--text) !important;
  box-shadow: none !important;
}
.field input:focus, .field textarea:focus, .field select:focus, textarea:focus, select:focus {
  border-color: #82d94f !important;
  box-shadow: 0 0 0 2px rgba(130, 217, 79, 0.1) !important;
}

.page-center { padding: 72px 18px; }
.auth-window { width: min(440px, 100%) !important; }
.auth-logo-row { margin-bottom: 20px !important; }
.auth-logo-wordmark { filter: none !important; max-width: 190px; }
.auth-divider::before, .auth-divider::after { background: rgba(130, 217, 79, 0.12) !important; }
.auth-footer, .auth-lead { color: var(--text-muted) !important; }
.auth-footer a, .auth-lead a { color: var(--accent) !important; }

.dashboard-grid { gap: 20px; padding-top: 30px; }
.dash-nav button {
  border-radius: 4px !important;
  border-color: transparent !important;
  background: transparent !important;
  color: var(--text-muted) !important;
}
.dash-nav button:hover, .dash-nav button.active {
  background: #151d15 !important;
  color: var(--text) !important;
  border-color: rgba(130, 217, 79, 0.16) !important;
}
.check-box.on, .status-dot.online, .availability-dot { background: #82d94f !important; box-shadow: none !important; }
.tag, .dash-nav-badge { background: rgba(130, 217, 79, 0.1) !important; color: #97e768 !important; border-color: rgba(130, 217, 79, 0.2) !important; }
.loader-cmd-field, code { background: #080b08 !important; border-color: rgba(130, 217, 79, 0.14) !important; }

.legal-main { padding-top: 42px !important; padding-bottom: 72px !important; }
.legal-window { max-width: 920px; margin: 0 auto; }
.legal-body { padding: 26px 30px 36px !important; }
.legal-body h2 { color: var(--text) !important; }
.legal-body p, .legal-body li { color: #b2bbb0 !important; }
.legal-body a { color: var(--accent) !important; }

.page-404 { display: flex; flex-direction: column; }
.not-found { min-height: calc(100vh - 136px); }
.not-found-code {
  color: #82d94f;
  font-size: clamp(96px, 18vw, 210px);
  font-weight: 700;
  letter-spacing: -0.08em;
  line-height: 0.9;
  margin-bottom: 24px;
}
.not-found-label { color: var(--accent) !important; }
.not-found-copy { color: var(--text-muted) !important; }
.footer { background: #050705 !important; border-top-color: rgba(130, 217, 79, 0.1) !important; }

@media (max-width: 760px) {
  .navbar-inner { min-height: 62px; }
  .dashboard-grid { gap: 14px; }
  .window-title { padding: 17px 18px 0 !important; }
  .osiris-window > .window-body { padding: 18px !important; }
  .legal-body { padding: 20px !important; }
}
