:root {
  color-scheme: dark;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  --bg: #050b0f;
  --panel: rgba(10, 18, 25, 0.9);
  --border: #102029;
  --glow: #31f07c;
  --glow-soft: rgba(49, 240, 124, 0.15);
  --text: #e6f4ec;
  --muted: #9fb5a8;
  --btn: #31f07c;
  --btn-text: #062012;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(49, 240, 124, 0.05), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(80, 140, 110, 0.1), transparent 35%),
    var(--bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 12px;
  background-image: url(https://i.imgur.com/b3OY27W.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: cover;
}

.card {
  width: min(960px, 96vw);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 40px rgba(49, 240, 124, 0.08);
  backdrop-filter: blur(6px);
  position: relative;
}

h1 {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 14px;
  color: var(--muted);
}

button,
.link {
  background: var(--btn);
  color: var(--btn-text);
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}

button:hover,
.link:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--glow-soft);
}

.modules {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.module {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: rgba(10, 18, 25, 0.7);
}

.badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(49, 240, 124, 0.12);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px;
  margin-left: 8px;
}

.muted {
  color: var(--muted);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo img {
  width: 120px;
  height: 120px;
  border-radius: 10px;
  object-fit: cover;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.manifest-input {
  flex: 1;
  min-width: 200px;
  height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(10, 18, 25, 0.8);
  color: var(--text);
}

.section {
  background: rgba(10, 18, 25, 0.6);
  border: none;
  border-radius: 12px;
  padding: 16px;
  margin-top: 12px;
}

.btn-ghost {
  background: #1f2d28;
  color: var(--text);
  border: 1px solid var(--border);
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14px;
  white-space: nowrap;
}

.btn-logout {
  background: #f87171;
  color: #0b1220;
  margin-left: auto;
}

.module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.controls {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modules-title {
  margin-top: 0;
}

.hidden {
  display: none !important;
}
