﻿:root {
  --bg: #f5f6ef;
  --surface: #ffffff;
  --text: #1c2a1f;
  --muted: #5f6f63;
  --brand: #1f7a4d;
  --brand-strong: #145636;
  --accent: #e8f4ea;
  --ring: rgba(31, 122, 77, 0.25);
  --shadow: 0 16px 40px rgba(17, 30, 21, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #eef6e9 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, #f0f4dd 0%, transparent 35%),
    var(--bg);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.top-band {
  background: linear-gradient(90deg, #145636, #1f7a4d);
  color: #ffffff;
  text-align: center;
  padding: 10px 14px;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.top-band p {
  margin: 0;
}

.top-band strong {
  font-weight: 700;
}

#totalRaised {
  font-weight: 800;
  margin-left: 6px;
}

.bg-shape {
  position: fixed;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}

.bg-shape-1 {
  width: 320px;
  height: 320px;
  background: rgba(87, 184, 121, 0.18);
  top: -100px;
  left: -80px;
}

.bg-shape-2 {
  width: 260px;
  height: 260px;
  background: rgba(240, 206, 111, 0.22);
  bottom: -80px;
  right: -70px;
}

.container {
  width: min(920px, 92vw);
  margin: 48px auto;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
  animation: fadeIn 0.55s ease;
}

.badge {
  display: inline-block;
  background: #ddeedc;
  color: var(--brand-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

h1 {
  font-size: clamp(34px, 6vw, 56px);
  margin: 14px 0 6px;
  line-height: 1;
}

.subtitle {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(15px, 2.7vw, 19px);
}

.card {
  background: var(--surface);
  border: 1px solid #e5ebe0;
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: slideUp 0.6s ease;
}

h2 {
  margin: 0 0 8px;
  font-size: 23px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  border: 1px solid #cdd7c8;
  border-radius: 12px;
  font-size: 18px;
  padding: 12px 14px;
  font-family: inherit;
}

input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
}

button {
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), #2f9a63);
  color: white;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.helper {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 2px 0;
}

.manual-card {
  margin-top: 16px;
}

.allocation-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.allocation-item {
  border: 1px solid #e5ebe0;
  border-radius: 12px;
  padding: 10px;
  display: grid;
  grid-template-columns: 42px 1fr minmax(100px, 140px);
  gap: 10px;
  align-items: center;
  background: #fcfdf9;
}

.allocation-meta {
  min-width: 0;
}

.allocation-meta strong {
  display: block;
  font-size: 15px;
}

.allocation-meta span {
  font-size: 13px;
  color: var(--muted);
}

.allocation-input input {
  font-size: 16px;
  padding: 10px 12px;
}

.manual-footer {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.results {
  margin-top: 20px;
  display: grid;
  gap: 14px;
}

.result-card {
  background: var(--surface);
  border: 1px solid #e5ebe0;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(17, 30, 21, 0.08);
  animation: fadeIn 0.5s ease;
}

.result-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.result-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  flex: 0 0 42px;
}

.result-card h3 {
  margin: 0;
  font-size: 20px;
}

.result-card p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 13px;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@media (max-width: 640px) {
  .container {
    margin: 28px auto;
  }

  .card {
    padding: 16px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .allocation-item {
    grid-template-columns: 42px 1fr;
  }

  .allocation-input {
    grid-column: 1 / -1;
  }

  .manual-footer {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}
