:root {
  --bg: #030604;
  --panel: rgba(7, 18, 12, 0.9);
  --panel-strong: #06150d;
  --text: #e6fff1;
  --muted: #9ec9ae;
  --line: rgba(84, 220, 146, 0.25);
  --blue: #30d177;
  --blue-strong: #0f8d4f;
  --cyan: #62f6ac;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", sans-serif;
  background:
    radial-gradient(circle at 10% 10%, rgba(39, 168, 94, 0.24), transparent 38%),
    radial-gradient(circle at 90% 20%, rgba(58, 214, 128, 0.20), transparent 32%),
    linear-gradient(140deg, #020402 10%, #06120b 55%, #030904 100%);
  min-height: 100vh;
}

.aurora {
  position: fixed;
  inset: -20%;
  background: conic-gradient(from 180deg, rgba(52, 188, 114, 0.10), rgba(9, 34, 24, 0.05), rgba(76, 231, 148, 0.12));
  filter: blur(36px);
  z-index: -1;
}


.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(3, 10, 6, 0.9);
  display: grid;
  place-items: center;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.loading-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-wrap {
  text-align: center;
  padding: 1.5rem;
  max-width: 460px;
}

.loader-wrap h3 {
  margin: 1rem 0 0.45rem;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.02em;
}

.loader-wrap p {
  margin: 0;
  color: var(--muted);
}

.loader-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid rgba(84, 214, 138, 0.32);
  border-top-color: var(--cyan);
  border-right-color: #8ff5bc;
  animation: spin 900ms linear infinite;
  box-shadow: 0 0 24px rgba(88, 242, 160, 0.24);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.shell { width: min(1200px, 94vw); margin: 0 auto; }

.topbar {
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.08em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(88, 242, 160, 0.85);
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.layout {
  display: grid;
  gap: 1rem;
  padding-bottom: 2rem;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  font-family: "Space Grotesk", sans-serif;
}

.hero p { color: var(--muted); max-width: 70ch; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stats span {
  border: 1px solid rgba(64, 212, 128, 0.35);
  background: rgba(11, 39, 27, 0.72);
  padding: 0.45rem 0.8rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.grid-two {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

h2 {
  margin: 0 0 0.8rem 0;
  font-size: 1.2rem;
  font-family: "Space Grotesk", sans-serif;
}

.form-note {
  margin: -0.2rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.stacked {
  display: grid;
  gap: 0.65rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.86rem;
  color: var(--muted);
}

input, textarea, select, button {
  font: inherit;
}

input, textarea, select {
  border: 1px solid rgba(84, 198, 130, 0.35);
  background: rgba(5, 16, 10, 0.9);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
}

textarea { resize: vertical; }

.actions {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.45rem;
}

button {
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(130deg, var(--blue), var(--blue-strong));
  color: #f3fff8;
}

.btn-ghost {
  background: rgba(8, 36, 23, 0.88);
  color: var(--text);
  border-color: rgba(96, 218, 149, 0.45);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.metric {
  padding: 0.75rem;
  border: 1px solid rgba(89, 210, 138, 0.34);
  border-radius: 12px;
  background: rgba(9, 30, 20, 0.78);
}

.metric strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 0.35rem;
}

.metric-note {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.panel.dark {
  margin-top: 0.75rem;
  background: var(--panel-strong);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.section-head p { color: var(--muted); margin: 0; }

.bars {
  display: grid;
  gap: 0.55rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 240px 1fr 52px;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}

.bar-label {
  display: grid;
  gap: 0.18rem;
}

.bar-label small {
  color: var(--muted);
  font-size: 0.72rem;
}

.bar-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(53, 128, 86, 0.28);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #1fbf66, #62f0a6);
  opacity: 0.55;
}

.bar-accent {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  background: linear-gradient(90deg, #4bd989, #87ffbe);
}

.project-grid {
  display: grid;
  gap: 0.8rem;
}

.project-card {
  border: 1px solid rgba(88, 204, 138, 0.30);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(8, 31, 21, 0.82);
}

.project-card header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.project-card .title { margin: 0; }

.status {
  font-size: 0.78rem;
  padding: 0.26rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(98, 220, 151, 0.45);
  color: var(--muted);
}

.summary { margin: 0.5rem 0; color: #c7f7db; }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.chip {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.2rem 0.52rem;
  border: 1px solid rgba(112, 224, 154, 0.45);
}

.chip.cause { background: rgba(18, 74, 47, 0.78); }
.chip.tag { background: rgba(8, 58, 38, 0.66); border-color: rgba(88, 242, 160, 0.45); }

.details {
  margin-top: 0.5rem;
  font-size: 0.84rem;
  color: #c6ead4;
}

.ai {
  margin-top: 0.55rem;
  border-top: 1px dashed rgba(112, 221, 157, 0.28);
  padding-top: 0.45rem;
  font-size: 0.82rem;
  color: #baf5d3;
}

.card-actions {
  margin-top: 0.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto auto;
  gap: 0.45rem;
}

.card-actions button {
  background: rgba(16, 74, 47, 0.9);
  color: var(--text);
  border-color: rgba(95, 220, 150, 0.44);
}

.empty {
  color: var(--muted);
  border: 1px dashed rgba(97, 216, 147, 0.34);
  border-radius: 12px;
  padding: 1rem;
}

@media (max-width: 980px) {
  .grid-two { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .card-actions { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 150px 1fr 42px; }
}
