:root {
  --primary-color: #434a75;
  --primary-light: #f0f2f5;
  --text: #2e3440;
  --muted: #616e88;
  --line: #d1d9e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 36px 20px 56px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #e4e8f0;
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 520px;
  margin: auto;
  display: grid;
  gap: 20px;
}

/* Upar wala form card - Single Wrapper */
.card {
  background: #f4f6f9;
  border: 2.5px solid var(--primary-color);
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(67, 74, 117, 0.08);
  padding: 32px 28px 28px;
}

.profile-img {
  width: 90px;
  height: 90px;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(67, 74, 117, 0.15);
  border-radius: 50%;
}

.profile-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

h1, h2 {
  text-align: center;
  margin: 0;
  font-weight: 800;
}

h1 {
  color: var(--text);
  font-size: 24px;
  margin-bottom: 8px;
}

h2 {
  color: var(--text);
  font-size: 18px;
  margin-bottom: 14px;
}

p.desc {
  max-width: 440px;
  margin: 0 auto 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 16px;
}

.form-group > label {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group label span {
  color: var(--primary-color);
}

input[type=text], input[type=number], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #eaedf3;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  outline: 0;
  transition: .2s;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

input:focus, textarea:focus {
  border-color: var(--primary-color);
  background: #f4f6f9;
  box-shadow: 0 0 0 3px rgba(67, 74, 117, 0.12);
}

/* 3-Column Amount Grid */
.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.btn-amount, .amount-btn {
  min-height: 38px;
  padding: 6px 8px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #eaedf3;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s;
}

.btn-amount:hover, .amount-btn:hover {
  border-color: var(--primary-color);
  background: var(--primary-light);
}

.btn-amount.active, .amount-btn.active {
  background-color: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 4px 10px rgba(67, 74, 117, 0.25);
}

.amount-input-box {
  padding: 12px !important;
  border: 1.5px solid var(--line) !important;
  font-size: 18px !important;
  font-weight: 800;
  text-align: left !important;
  background: #eaedf3 !important;
}

.min-max-text {
  margin-top: 4px;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.char-count {
  margin-top: 4px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}

/* Checkbox Card styled as Toggle Switch */
.checkbox-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #eaedf3;
  margin-bottom: 16px;
}

.checkbox-card input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 34px;
  height: 18px;
  background: #b0bec5;
  border-radius: 9px;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background 0.2s;
}

.checkbox-card input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.checkbox-card input[type="checkbox"]:checked {
  background: var(--primary-color);
}

.checkbox-card input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

.checkbox-card label {
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.security-badges {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1.5px dashed var(--line);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.badge-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge-item {
  padding: 5px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #eaedf3;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

/* RECENT SUPPORTERS SECTION - Double Wrapper Structure */
.donor-section {
  background: #f4f6f9;
  border: 2.5px solid var(--primary-color);
  border-radius: 28px;
  box-shadow: 0 12px 35px rgba(67, 74, 117, 0.08);
  padding: 20px 16px;
}

.donor-section h2 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.donor-section h2::before,
.donor-section h2::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: var(--line);
  max-width: 30px;
}

.donor-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.donor-item {
  background: #ffffff;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(67, 74, 117, 0.03);
}

.donor-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin: 0 auto 8px;
  box-shadow: 0 4px 8px rgba(67, 74, 117, 0.18);
}

.donor-item-name {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}

.donor-item-amount {
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.donor-item-date {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 0;
}

.donor-item-msg {
  background: #eaedf3;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  font-style: italic;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 8px;
}

.loading-text, .no-donors {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}

@media (max-width: 640px) {
  body {
    padding: 16px 12px 32px;
  }
  .container {
    max-width: 100%;
  }
}