/* Portable donate kit — self-contained */
:root {
  --bg1: #f3efe8;
  --bg2: #e7edf2;
  --ink: #1c1917;
  --muted: #6b635b;
  --line: #ddd5cb;
  --surface: #fffdf9;
  --accent: #3f2a1d;
  --accent-soft: #efe6dc;
  --warm: #8b6914;
  --ok: #2e7d32;
  --nok: #c62828;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 18px 40px rgba(28, 25, 23, 0.07);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: Tahoma, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, #dcc9b0 0%, transparent 55%),
    linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 100%);
}

.shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.panel {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 22px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: rise 0.4s ease both;
}

.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3f2a1d, #8b6914, #c4a574);
}

.panel.is-ok::before { background: var(--ok); }
.panel.is-nok::before { background: var(--nok); }

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

.brand {
  display: inline-block;
  margin: 0 0 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
}

.cup {
  width: 54px;
  height: 54px;
  margin: 6px auto 12px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cup svg { width: 26px; height: 26px; fill: currentColor; }

h1 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.45;
}

.sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.alert {
  background: #fdecea;
  color: var(--nok);
  border: 1px solid #f5c6c2;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  text-align: right;
}

form { text-align: right; }

.amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.amt {
  margin: 0;
  cursor: pointer;
  position: relative;
}

.amt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amt span {
  display: block;
  padding: 12px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf7f2;
  font-size: 0.88rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: center;
}

.amt.is-on span,
.amt input:checked + span {
  border-color: var(--warm);
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.15);
  font-weight: 700;
}

.field {
  display: block;
  margin-bottom: 12px;
}

.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.field > span small { opacity: 0.75; }

.field input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}

.field input:focus {
  outline: none;
  border-color: var(--warm);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.12);
}

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

.row input { flex: 1; }
.row em {
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  min-width: 2.6rem;
}

.btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  line-height: 48px;
  text-align: center;
  transition: background 0.15s, transform 0.15s;
}

.btn:hover { background: #2c1c13; }
.btn:active { transform: scale(0.99); }

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  margin-top: 8px;
}

.btn-ghost:hover { background: var(--accent-soft); }

.foot {
  margin: 16px 0 0;
  font-size: 0.72rem;
  color: #a09890;
}

.result-icon {
  width: 54px;
  height: 54px;
  margin: 6px auto 12px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: Tahoma, sans-serif;
}

.is-ok .result-icon { background: #e8f5e9; color: var(--ok); }
.is-nok .result-icon { background: #fdecea; color: var(--nok); }

.meta {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  text-align: right;
  font-size: 0.84rem;
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.meta div:last-child { border-bottom: 0; }
.meta strong { color: var(--ink); }

@media (max-width: 400px) {
  .amounts { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.12rem; }
}
