/* ═══════════════════════════════════════════════════════════
   AgarCo Donate — Frontend Styles
   Brand: #01291d / #89a307 / White
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ── */
:root {
  /* Brand */
  --acd-primary: #89a307;
  --acd-primary-light: #9ab70a;
  --acd-primary-dim: rgba(137,163,7,0.08);
  --acd-gold: #89a307;
  --acd-green: #89a307;
  --acd-red: #ef4444;
  --acd-purple: #b8d44e;

  /* Text hierarchy */
  --acd-text: #01291d;
  --acd-text2: #2d5a1e;
  --acd-text3: #5a7a3d;
  --acd-text-on-brand: #ffffff;

  /* Surfaces */
  --acd-bg: #ffffff;
  --acd-bg2: #f9faf3;
  --acd-bg3: #eaf0d9;
  --acd-border: #c8d89a;
  --acd-border-subtle: rgba(0,0,0,0.06);

  /* Radius scale */
  --acd-radius: 20px;
  --acd-radius-sm: 14px;
  --acd-radius-xs: 10px;
  --acd-radius-pill: 100px;

  /* Elevation system */
  --acd-shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --acd-shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --acd-shadow: 0 0 0 1px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.03);
  --acd-shadow-md: 0 0 0 1px rgba(0,0,0,0.03), 0 8px 24px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.03);
  --acd-shadow-lg: 0 0 0 1px rgba(0,0,0,0.03), 0 16px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.04);
  --acd-shadow-brand: 0 4px 16px rgba(137,163,7,0.25);
  --acd-shadow-brand-lg: 0 8px 24px rgba(137,163,7,0.3), 0 2px 8px rgba(137,163,7,0.1);

  /* Focus ring */
  --acd-focus-ring: 0 0 0 3px rgba(137,163,7,0.15);

  /* Typography */
  --acd-font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --acd-font-head: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Transition presets */
  --acd-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --acd-duration-fast: 0.15s;
  --acd-duration: 0.25s;
  --acd-duration-slow: 0.4s;
}

/* ═══════════════════════════════════════════════════════════
   CSS ISOLATION — prevent theme/Elementor from overriding
   ═══════════════════════════════════════════════════════════ */
.acd-donate-wrap button,
.acd-widget-form button,
.acd-modal-overlay button {
  background: none;
  color: inherit;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  line-height: inherit;
  text-align: inherit;
  text-decoration: none;
  text-transform: none;
  letter-spacing: inherit;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ═══════════════════════════════════════════════════════════
   CAMPAIGN GRID
   ═══════════════════════════════════════════════════════════ */

.acd-campaign-grid {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.acd-cols-1 { grid-template-columns: 1fr; }
.acd-cols-2 { grid-template-columns: repeat(2, 1fr); }
.acd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.acd-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .acd-cols-2, .acd-cols-3, .acd-cols-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .acd-cols-3, .acd-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

.acd-campaign-single {
  max-width: 560px;
  margin: 24px auto;
}

/* ── Campaign Card ── */
.acd-card {
  --card-color: var(--acd-primary);
  background: var(--acd-bg);
  border-radius: var(--acd-radius);
  overflow: hidden;
  position: relative;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 2px 4px rgba(0,0,0,0.02),
    0 8px 24px rgba(0,0,0,0.06);
}
.acd-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 8px 16px rgba(0,0,0,0.05),
    0 24px 56px rgba(0,0,0,0.1),
    0 0 40px rgba(137,163,7,0.06);
}

/* ── Accent Strip ── */
.acd-card-accent {
  height: 5px;
  width: 100%;
  background: var(--card-color);
}

/* ── Icon Banner ── */
.acd-card-icon-banner {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.acd-card-icon-banner .acd-icon-orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acd-text-on-brand);
  position: relative;
  z-index: 2;
  box-shadow:
    0 4px 20px rgba(0,0,0,0.12),
    0 0 40px rgba(255,255,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.25),
    inset 0 -1px 0 rgba(0,0,0,0.08);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.acd-card:hover .acd-icon-orb {
  transform: scale(1.15) rotate(3deg);
  box-shadow:
    0 8px 32px rgba(0,0,0,0.15),
    0 0 60px rgba(255,255,255,0.08),
    inset 0 1px 0 rgba(255,255,255,0.3);
}
.acd-card-icon-banner .acd-banner-glow {
  position: absolute;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  filter: blur(40px);
  top: -40px; left: -30px;
  pointer-events: none;
}
.acd-card-icon-banner .acd-banner-dots {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.05);
  background-size: 16px 16px;
  pointer-events: none;
}

/* ── Image Header ── */
.acd-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.acd-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--acd-ease);
}
.acd-card:hover .acd-card-image img {
  transform: scale(1.08);
}
.acd-card-image::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 100px;
  background: rgba(0,0,0,0.06);
  pointer-events: none;
}

/* ── Body ── */
.acd-card-body {
  padding: 22px 24px 26px;
  position: relative;
  z-index: 1;
}
.acd-card-expanded .acd-card-body {
  padding: 28px 30px 32px;
}

/* ── Category Badge ── */
.acd-card-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--acd-font-head);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  backdrop-filter: blur(4px);
}

/* ── Title ── */
.acd-card-title {
  font-family: var(--acd-font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--acd-text);
  margin: 0 0 6px 0;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.acd-card-expanded .acd-card-title {
  font-size: 26px;
}

/* ── Description ── */
.acd-card-desc {
  font-family: var(--acd-font);
  font-size: 14px;
  color: var(--acd-text2);
  margin: 0 0 16px 0;
  line-height: 1.6;
}

/* ── Stats Row ── */
.acd-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  border: none;
}
.acd-card-stats > div {
  text-align: center;
  padding: 16px 8px 14px;
  border-radius: var(--acd-radius-sm);
  background: var(--acd-bg2);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.acd-card-stats > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(137,163,7,0.04);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.acd-card-stats > div:hover {
  background: var(--acd-bg3);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.acd-card-stats > div:hover::before {
  opacity: 1;
}
.acd-card-stat-val {
  display: block;
  font-family: var(--acd-font-head);
  font-size: 20px;
  font-weight: 800;
  color: inherit !important;
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
}
.acd-card-stat-lbl {
  display: block;
  font-family: var(--acd-font);
  font-size: 11px;
  font-weight: 700;
  color: inherit !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
  opacity: 0.7;
}

/* ── Progress Section ── */
.acd-card-progress-wrap {
  margin: 16px 0 4px;
}
.acd-card-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.acd-pct-badge {
  font-family: var(--acd-font-head);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.acd-goal-text {
  font-size: 13px;
  color: var(--acd-text3);
  font-weight: 500;
}
.acd-card-progress {
  height: 7px;
  background: rgba(0,0,0,0.05);
  border-radius: var(--acd-radius-pill);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
}
.acd-card-progress-fill {
  height: 100%;
  border-radius: 100px;
  position: relative;
  overflow: hidden;
  transition: width 1.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px currentColor;
}
.acd-card-progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.3);
  animation: acd-shimmer 2s ease-in-out infinite;
}
@keyframes acd-shimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}
.acd-progress-glow {
  height: 7px;
  border-radius: 100px;
  filter: blur(10px);
  opacity: 0.35;
  margin-top: 3px;
}

/* ── Donate Button ── */
.acd-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: var(--acd-font-head);
  font-size: 16px;
  font-weight: 700;
  padding: 15px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.acd-card-btn:hover {
  transform: translateY(-3px);
  text-decoration: none;
  filter: brightness(1.06);
}
.acd-card-btn:focus-visible {
  outline: none;
  box-shadow: var(--acd-focus-ring);
}
.acd-card-btn:active {
  transform: scale(0.97) translateY(0);
}
/* Filled */
.acd-card-btn--filled {
  color: var(--acd-text-on-brand);
}
.acd-card-btn--filled:hover {
  color: var(--acd-text-on-brand);
}
.acd-card-btn--filled::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: rgba(255,255,255,0.12);
  transition: left 0.6s ease;
}
.acd-card-btn--filled:hover::after {
  left: 130%;
}
/* Outline */
.acd-card-btn--outline {
  background: transparent !important;
}
.acd-card-btn--outline:hover {
  background: rgba(0,0,0,0.02) !important;
}
/* Soft */
.acd-card-btn--soft {
  border: none;
}
.acd-card-btn--soft:hover {
  filter: brightness(0.96);
}
/* Arrow pill inside button */
.acd-btn-arrow {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.acd-card-btn:hover .acd-btn-arrow {
  transform: translateX(2px);
}
.acd-card-btn--outline .acd-btn-arrow,
.acd-card-btn--soft .acd-btn-arrow {
  background: currentColor;
  opacity: 0.12;
}

.acd-empty {
  font-family: var(--acd-font);
  text-align: center;
  color: var(--acd-text3);
  padding: 40px 20px;
  font-size: 17px;
}

/* ═══════════════════════════════════════════════════════════
   DONATION FORM
   ═══════════════════════════════════════════════════════════ */

.acd-donate-wrap {
  font-family: var(--acd-font);
  max-width: 560px;
  margin: 32px auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 24px;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.03),
    0 4px 8px rgba(0,0,0,0.03),
    0 12px 32px rgba(0,0,0,0.06),
    0 24px 56px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Campaign header inside form */
.acd-donate-campaign-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  background: rgba(137,163,7,0.03);
}
.acd-donate-campaign-color {
  width: 6px;
  min-height: 44px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
}
.acd-donate-campaign-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--acd-text);
  line-height: 1.2;
}
.acd-donate-campaign-meta {
  font-size: 14px;
  color: var(--acd-text3);
  margin-top: 3px;
}
.acd-donate-progress {
  height: 6px;
  background: var(--acd-border-subtle);
  border-radius: var(--acd-radius-pill);
  margin-top: 10px;
  overflow: hidden;
}
.acd-donate-progress-fill {
  height: 100%;
  border-radius: var(--acd-radius-pill);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(137,163,7, 0.3);
}

/* ── Steps ── */
.acd-step {
  padding: 20px 24px;
  border-bottom: 1px solid var(--acd-border);
}
.acd-step:last-of-type {
  border-bottom: none;
}

.acd-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--acd-text);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.acd-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--acd-primary);
  color: var(--acd-text-on-brand);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: none;
}

/* ── Amount Buttons ── */
.acd-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
@media (max-width: 480px) {
  .acd-amount-grid { grid-template-columns: repeat(2, 1fr); }
}

.acd-donate-wrap .acd-amount-btn {
  font-family: var(--acd-font) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--acd-text) !important;
  background: rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1.5px solid rgba(0,0,0,0.06) !important;
  border-radius: 12px !important;
  padding: 16px 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none !important;
  letter-spacing: -0.01em;
}
.acd-donate-wrap .acd-amount-btn:hover {
  border-color: var(--acd-primary) !important;
  background: var(--acd-primary-dim) !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}
.acd-donate-wrap .acd-amount-btn:focus-visible {
  outline: none !important;
  border-color: var(--acd-primary) !important;
  box-shadow: none !important;
}
.acd-donate-wrap .acd-amount-btn.active {
  border-color: transparent !important;
  background: var(--acd-primary) !important;
  color: var(--acd-text-on-brand) !important;
  box-shadow: none !important;
  transform: translateY(-2px);
}
.acd-amount-btn:active {
  transform: scale(0.97) translateY(0);
}

.acd-custom-amount {
  margin-top: 12px;
}
.acd-input-prefix {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--acd-radius-xs);
  overflow: hidden;
  transition: all var(--acd-duration) var(--acd-ease);
  box-shadow: var(--acd-shadow-xs);
}
.acd-input-prefix:focus-within {
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-input-prefix > span {
  padding: 12px 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--acd-text3);
  background: var(--acd-bg2);
  border-right: 1px solid var(--acd-border);
}
.acd-input-prefix > input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 14px;
  font-family: var(--acd-font);
  font-size: 17px;
  background: transparent;
  color: var(--acd-text);
}

/* ── Campaign Selector ── */
.acd-campaign-select-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acd-donate-wrap .acd-campaign-select-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--acd-font) !important;
  font-size: 16px !important;
  color: var(--acd-text) !important;
  background: var(--acd-bg) !important;
  border: 2px solid var(--acd-border) !important;
  border-radius: var(--acd-radius-sm) !important;
  padding: 12px 14px;
  cursor: pointer;
  transition: all var(--acd-duration-fast) var(--acd-ease);
}
.acd-campaign-select-btn:hover {
  border-color: var(--acd-primary-light);
  background: var(--acd-primary-dim);
}
.acd-campaign-select-btn:focus-visible {
  outline: none;
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-campaign-select-btn:active {
  transform: scale(0.99);
}
.acd-campaign-select-btn.active {
  border-color: var(--acd-primary);
  background: rgba(137,163,7,0.08);
  box-shadow: 0 0 0 3px rgba(137,163,7,0.12);
}

.acd-csel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.acd-csel-name {
  flex: 1;
  font-weight: 600;
}
.acd-csel-pct {
  font-size: 14px;
  font-weight: 600;
  color: var(--acd-text3);
}

/* ── Form Inputs ── */
.acd-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .acd-form-grid { grid-template-columns: 1fr; }
}

.acd-field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--acd-text2);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.acd-req {
  color: var(--acd-red);
}

.acd-donate-wrap .acd-input {
  width: 100%;
  font-family: var(--acd-font) !important;
  font-size: 16px !important;
  color: var(--acd-text) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: var(--acd-radius-xs) !important;
  padding: 12px 14px;
  transition: all var(--acd-duration) var(--acd-ease);
  box-sizing: border-box;
  box-shadow: var(--acd-shadow-xs) !important;
}
.acd-donate-wrap .acd-input:focus {
  outline: none !important;
  border-color: var(--acd-primary) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: var(--acd-focus-ring), var(--acd-shadow-sm) !important;
}
.acd-input.acd-error-input {
  border-color: var(--acd-red);
}

.acd-textarea {
  resize: vertical;
  min-height: 60px;
}

/* ── Gateway Buttons ── */
.acd-gateway-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.acd-donate-wrap .acd-gw-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  font-family: var(--acd-font) !important;
  color: var(--acd-text) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-radius: var(--acd-radius-sm) !important;
  padding: 14px 16px;
  cursor: pointer;
  transition: all var(--acd-duration-fast) var(--acd-ease);
}
.acd-donate-wrap .acd-gw-btn:hover {
  border-color: var(--acd-primary) !important;
  background: var(--acd-primary-dim) !important;
  box-shadow: 0 2px 8px rgba(137,163,7, 0.08) !important;
}
.acd-donate-wrap .acd-gw-btn.active {
  border-color: var(--acd-primary) !important;
  background: rgba(137,163,7,0.08) !important;
  box-shadow: 0 0 0 2px var(--acd-primary) !important;
}

.acd-gw-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acd-text-on-brand);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.15);
}
.acd-gw-btn:focus-visible {
  outline: none;
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-gw-btn:active {
  transform: scale(0.98);
}
.acd-gw-btn strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.acd-gw-btn small {
  display: block;
  font-size: 13px;
  color: var(--acd-text3);
  font-weight: 400;
  margin-top: 1px;
}

/* ── Summary & Submit ── */
.acd-summary {
  padding: 24px 24px 28px;
  background: var(--acd-bg2);
  border-top: 1px solid rgba(0,0,0,0.04);
}

.acd-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 15px;
  color: var(--acd-text2);
}
.acd-summary-amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--acd-primary);
}

.acd-summary-divider {
  height: 1px;
  background: var(--acd-border);
  margin: 12px 0 16px;
}

.acd-donate-wrap .acd-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  font-family: var(--acd-font) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--acd-text-on-brand) !important;
  background: var(--acd-primary) !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 18px 28px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
}
.acd-submit-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: rgba(255,255,255,0.12);
  transition: left 0.7s ease;
}
.acd-submit-btn:hover:not(:disabled)::before {
  left: 140%;
}
.acd-submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: none;
  filter: brightness(1.05);
}
.acd-submit-btn:focus-visible {
  outline: none;
  box-shadow: none;
}
.acd-submit-btn:active:not(:disabled) {
  transform: scale(0.97) translateY(0);
  filter: brightness(0.97);
}
.acd-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.acd-submit-btn.processing {
  pointer-events: none;
}

.acd-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--acd-text3);
  margin-top: 12px;
}

/* ── Success State ── */
.acd-success {
  text-align: center;
  padding: 56px 32px;
  background: rgba(137,163,7,0.03);
}
.acd-success-icon {
  margin-bottom: 20px;
  animation: acdPulse 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 4px 12px rgba(137,163,7,0.25));
}
.acd-success-title {
  font-family: var(--acd-font);
  font-size: 26px;
  font-weight: 700;
  color: var(--acd-primary);
  margin: 0 0 8px 0;
}
.acd-success-text {
  font-family: var(--acd-font);
  font-size: 16px;
  color: var(--acd-text2);
  margin: 0 0 16px 0;
  line-height: 1.6;
}
.acd-success-txn {
  font-family: var(--acd-font);
  font-size: 14px;
  color: var(--acd-text3);
  background: var(--acd-bg2);
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

/* ── Error State ── */
.acd-error {
  padding: 12px 24px;
  background: rgba(239,68,68,0.06);
  border-left: 3px solid var(--acd-red);
}
.acd-error p {
  font-family: var(--acd-font);
  font-size: 15px;
  color: var(--acd-red);
  margin: 0;
}

/* ── Animations ── */
@keyframes acdPulse {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes acdSpin {
  to { transform: rotate(360deg); }
}

/* ── Spinner ── */
.acd-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: acdSpin 0.6s linear infinite;
}

/* ═══════════════════════════════════════
   WIDGET FORM — [donation_form] styles
   ═══════════════════════════════════════ */
.acd-widget-form { box-sizing: border-box; }
.acd-widget-form *, .acd-widget-form *::before, .acd-widget-form *::after { box-sizing: border-box; }

/* ── Amount Buttons ── */
.acd-widget-form .acd-wf-amt-btn {
  padding: 10px 16px !important;
  background: #fff !important;
  color: var(--_wf-text, #1a1a2e) !important;
  border: var(--_wf-border-width, 1.5px) solid var(--_wf-border, #e5e7eb) !important;
  border-radius: var(--_wf-btn-radius, 100px) !important;
  font-weight: 700 !important;
  font-size: inherit !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  text-align: center;
}
.acd-widget-form .acd-wf-amt-btn:hover {
  border-color: var(--_wf-primary, #d97706) !important;
  transform: translateY(-1px);
}
/* Amount active: filled (default) */
.acd-widget-form .acd-wf-amt-btn.active {
  background: var(--_wf-primary, #d97706) !important;
  border-color: var(--_wf-primary, #d97706) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}
/* Amount active: outlined (via data attribute) */
.acd-widget-form[data-amt-active="outlined"] .acd-wf-amt-btn.active {
  background: transparent !important;
  border-color: var(--_wf-primary, #d97706) !important;
  color: var(--_wf-primary, #d97706) !important;
  box-shadow: none !important;
}

/* ── Frequency Buttons ── */
.acd-widget-form .acd-wf-freq-btn {
  padding: 8px 16px !important;
  background: #fff !important;
  color: var(--_wf-text, #1a1a2e) !important;
  border: var(--_wf-border-width, 1.5px) solid var(--_wf-border, #e5e7eb) !important;
  border-radius: var(--_wf-btn-radius, 100px) !important;
  font-weight: 600 !important;
  font-size: inherit !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
}
.acd-widget-form .acd-wf-freq-btn:hover {
  border-color: var(--_wf-primary, #d97706) !important;
  color: var(--_wf-primary, #d97706) !important;
}
/* Freq active: outlined (default) */
.acd-widget-form .acd-wf-freq-btn.acd-wf-freq-active {
  background: transparent !important;
  border-color: var(--_wf-primary, #d97706) !important;
  color: var(--_wf-primary, #d97706) !important;
  font-weight: 700 !important;
}
/* Freq active: filled (via data attribute) */
.acd-widget-form[data-freq-active="filled"] .acd-wf-freq-btn.acd-wf-freq-active {
  background: var(--_wf-primary, #d97706) !important;
  border-color: var(--_wf-primary, #d97706) !important;
  color: #fff !important;
}

/* ── Submit Button ── */
.acd-widget-form .acd-wf-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--_wf-submit-bg, var(--_wf-primary, #d97706)) !important;
  color: var(--_wf-submit-text, #fff) !important;
  border: none !important;
  border-radius: var(--_wf-btn-radius, 100px) !important;
  padding: 14px 28px !important;
  font-weight: 800 !important;
  font-size: inherit !important;
  font-family: inherit !important;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s !important;
}
.acd-widget-form .acd-wf-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.acd-widget-form .acd-wf-submit:disabled { opacity: 0.6 !important; cursor: not-allowed !important; transform: none; }

/* ── Inputs & Labels ── */
.acd-widget-form .acd-wf-input {
  width: 100% !important;
  padding: 10px 14px !important;
  background: #fff !important;
  color: var(--_wf-text, #1a1a2e) !important;
  border: var(--_wf-border-width, 1.5px) solid var(--_wf-border, #e5e7eb) !important;
  border-radius: var(--_wf-input-radius, 10px) !important;
  font-size: inherit !important;
  font-family: inherit !important;
  box-sizing: border-box;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.2s;
}
.acd-widget-form .acd-wf-input::placeholder { color: var(--_wf-placeholder, #9ca3af) !important; }
.acd-widget-form .acd-wf-input:focus {
  border-color: var(--_wf-primary, #d97706) !important;
}
.acd-widget-form .acd-wf-custom-amt {
  width: 100% !important;
  padding: 10px 10px 10px 28px !important;
  background: #fff !important;
  color: var(--_wf-text, #1a1a2e) !important;
  border: var(--_wf-border-width, 1.5px) solid var(--_wf-border, #e5e7eb) !important;
  border-radius: var(--_wf-input-radius, 10px) !important;
  font-size: inherit !important;
  font-family: inherit !important;
  box-sizing: border-box;
  box-shadow: none !important;
  outline: none;
  transition: border-color 0.2s;
}
.acd-widget-form .acd-wf-custom-amt::placeholder { color: var(--_wf-placeholder, #9ca3af) !important; }
.acd-widget-form .acd-wf-custom-amt:focus {
  border-color: var(--_wf-primary, #d97706) !important;
}
.acd-widget-form .acd-wf-select {
  width: 100% !important;
  padding: 10px !important;
  background: #fff !important;
  color: var(--_wf-text, #1a1a2e) !important;
  border: var(--_wf-border-width, 1.5px) solid var(--_wf-border, #e5e7eb) !important;
  border-radius: var(--_wf-input-radius, 10px) !important;
  font-size: inherit !important;
  font-family: inherit !important;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s;
}
.acd-widget-form .acd-wf-select:focus {
  border-color: var(--_wf-primary, #d97706) !important;
}
.acd-widget-form .acd-wf-label {
  font-weight: 600 !important;
  display: block;
  margin-bottom: 4px;
  font-size: 0.9em;
  color: var(--_wf-label, var(--_wf-text, #1a1a2e)) !important;
}
.acd-widget-form label {
  color: var(--_wf-label, var(--_wf-text, #1a1a2e)) !important;
}

/* Widget Feed */
.acd-widget-feed { box-sizing: border-box; }
.acd-widget-feed *, .acd-widget-feed *::before, .acd-widget-feed *::after { box-sizing: border-box; }

/* Widget Progress */
.acd-widget-progress { box-sizing: border-box; }
.acd-widget-progress *, .acd-widget-progress *::before, .acd-widget-progress *::after { box-sizing: border-box; }
.acd-wf-cta { transition: opacity 0.15s !important; }
.acd-wf-cta:hover { opacity: 0.9; }

/* ═══════════════════════════════════════
   WIDGET RESPONSIVE — Form, Feed, Campaign
   ═══════════════════════════════════════ */

/* All three widgets: fluid width inside Elementor columns */
.acd-widget-form,
.acd-widget-feed,
.acd-widget-progress {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
  .acd-widget-form,
  .acd-widget-feed,
  .acd-widget-progress {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Form: stack amount buttons 2-per-row */
  .acd-widget-form .acd-wf-amounts {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* Form: frequency buttons wrap */
  .acd-widget-form .acd-wf-freq-wrap {
    flex-wrap: wrap !important;
  }
  .acd-widget-form .acd-wf-freq-btn {
    flex: 1 1 45% !important;
    min-width: 0 !important;
  }

  /* Campaign: reduce image height on tablet */
  .acd-widget-progress > div:first-child {
    max-height: 160px !important;
  }

  /* Feed: tighten row spacing */
  .acd-widget-feed > div[style*="display:flex"] {
    padding: 10px 0 !important;
  }
}

/* ── Mobile (≤480px) ── */
@media (max-width: 480px) {
  /* Form: amount buttons single column */
  .acd-widget-form .acd-wf-amounts {
    grid-template-columns: 1fr !important;
  }

  /* Form: frequency buttons single column */
  .acd-widget-form .acd-wf-freq-btn {
    flex: 1 1 100% !important;
  }

  /* Form: reduce inner padding */
  .acd-widget-form {
    font-size: 14px !important;
  }

  /* Campaign: smaller text */
  .acd-widget-progress {
    font-size: 13px !important;
  }

  /* Campaign: reduce image height on mobile */
  .acd-widget-progress > div:first-child {
    max-height: 130px !important;
  }

  /* Feed: smaller avatar */
  .acd-widget-feed div[style*="border-radius:50%"] {
    width: 32px !important;
    height: 32px !important;
    font-size: 12px !important;
  }

  .acd-widget-feed {
    font-size: 13px !important;
  }
}

/* ═══════════════════════════════════════
   FORM DESIGNER — Field Style Variants
   ═══════════════════════════════════════ */

/* Filled inputs: no visible border, grey background */
.acd-donate-wrap[data-field-style="filled"] .acd-input,
.acd-donate-wrap[data-field-style="filled"] .acd-amount-btn,
.acd-donate-wrap[data-field-style="filled"] .acd-gw-btn,
.acd-donate-wrap[data-field-style="filled"] .acd-campaign-select-btn {
  border-color: transparent;
  background: var(--acd-bg3);
}
.acd-donate-wrap[data-field-style="filled"] .acd-input:focus {
  background: var(--acd-bg);
  border-color: var(--acd-primary);
}
.acd-donate-wrap[data-field-style="filled"] .acd-amount-btn.active,
.acd-donate-wrap[data-field-style="filled"] .acd-gw-btn.active,
.acd-donate-wrap[data-field-style="filled"] .acd-campaign-select-btn.active {
  background: var(--acd-primary-dim);
  border-color: var(--acd-primary);
}

/* Underline inputs: bottom border only */
.acd-donate-wrap[data-field-style="underline"] .acd-input,
.acd-donate-wrap[data-field-style="underline"] .acd-amount-btn {
  border: none;
  border-bottom: 2px solid var(--acd-border);
  border-radius: 0;
  background: transparent;
}
.acd-donate-wrap[data-field-style="underline"] .acd-input:focus {
  border-bottom-color: var(--acd-primary);
  box-shadow: none;
}
.acd-donate-wrap[data-field-style="underline"] .acd-amount-btn.active {
  border-bottom-color: var(--acd-primary);
  color: var(--acd-primary);
  background: transparent;
  box-shadow: none;
}
.acd-donate-wrap[data-field-style="underline"] .acd-input-prefix {
  border: none;
  border-bottom: 2px solid var(--acd-border);
  border-radius: 0;
}
.acd-donate-wrap[data-field-style="underline"] .acd-input-prefix:focus-within {
  border-bottom-color: var(--acd-primary);
  box-shadow: none;
}
.acd-donate-wrap[data-field-style="underline"] .acd-input-prefix > span {
  border-right: none;
  background: transparent;
}
.acd-donate-wrap[data-field-style="underline"] .acd-gw-btn,
.acd-donate-wrap[data-field-style="underline"] .acd-campaign-select-btn {
  border-radius: 0;
  border: none;
  border-bottom: 2px solid var(--acd-border);
}

/* Button style: outline */
.acd-donate-wrap[data-btn-style="outline"] .acd-submit-btn {
  background: transparent !important;
  color: var(--acd-primary);
  border: 2px solid var(--acd-primary);
  box-shadow: none;
}
.acd-donate-wrap[data-btn-style="outline"] .acd-submit-btn:hover:not(:disabled) {
  background: var(--acd-primary-dim) !important;
}

/* Button style: gradient */
.acd-donate-wrap[data-btn-style="gradient"] .acd-submit-btn {
  background: var(--acd-primary) !important;
}

/* ── Currency Selector ── */
/* Region pills */
.acd-region-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  font-weight: 600;
  color: var(--acd-text2);
  cursor: pointer;
  transition: all var(--acd-duration-fast) var(--acd-ease);
  font-family: inherit;
  line-height: 1;
  box-shadow: var(--acd-shadow-xs);
}
.acd-region-pill:hover {
  border-color: var(--acd-primary);
  color: var(--acd-primary);
  background: var(--acd-primary-dim);
  box-shadow: 0 2px 8px rgba(137,163,7, 0.1);
}
.acd-region-pill:focus-visible {
  outline: none;
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-region-pill:active {
  transform: scale(0.98);
}
.acd-region-pill.acd-region-active {
  border-color: transparent;
  background: var(--acd-primary);
  color: var(--acd-text-on-brand);
  box-shadow: none;
}

/* Currency pills */
.acd-currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 15px;
  font-weight: 600;
  color: var(--acd-text2);
  cursor: pointer;
  transition: all var(--acd-duration-fast) var(--acd-ease);
  font-family: inherit;
  line-height: 1;
  box-shadow: var(--acd-shadow-xs);
}
.acd-currency-pill:hover {
  border-color: var(--acd-primary);
  color: var(--acd-primary);
  background: var(--acd-primary-dim);
  box-shadow: 0 2px 8px rgba(137,163,7, 0.1);
}
.acd-currency-pill:focus-visible {
  outline: none;
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-currency-pill:active {
  transform: scale(0.98);
}
.acd-currency-pill.acd-currency-active {
  border-color: transparent;
  background: var(--acd-primary);
  color: var(--acd-text-on-brand);
  box-shadow: none;
}
.acd-currency-pill .acd-currency-symbol {
  font-size: 16px;
  font-weight: 700;
}

/* Alternative Gateways (below submit button) */
.acd-alt-gateways {
  font-size: 15px;
  color: var(--acd-text3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.acd-alt-label {
  font-size: 14px;
  color: var(--acd-text3);
}
.acd-alt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1.5px solid var(--acd-border);
  border-radius: var(--acd-radius-xs);
  background: var(--acd-bg);
  font-size: 14px;
  color: var(--acd-text2);
  cursor: pointer;
  transition: all var(--acd-duration-fast) var(--acd-ease);
  font-family: inherit;
  line-height: 1;
  text-align: left;
}
.acd-alt-link strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--acd-text);
}
.acd-alt-link small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--acd-text3);
  margin-top: 2px;
}
.acd-alt-link:hover {
  border-color: var(--acd-primary);
  color: var(--acd-primary);
  background: var(--acd-primary-dim);
}
.acd-alt-link:focus-visible {
  outline: none;
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-alt-link:active {
  transform: scale(0.98);
}
.acd-alt-link.acd-alt-active {
  border-color: transparent;
  background: var(--acd-primary);
  color: var(--acd-text-on-brand);
  box-shadow: none;
}
.acd-alt-link.acd-alt-active strong { color: var(--acd-text-on-brand); }
.acd-alt-link.acd-alt-active small { color: rgba(255,255,255,0.7); }
.acd-alt-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--acd-text-on-brand);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════
/* ═══════════════════════════════════════════════
   FREQUENCY TOGGLE
   ═══════════════════════════════════════════════ */
.acd-freq-toggle {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.acd-donate-wrap .acd-freq-btn {
  flex: 1;
  min-width: 80px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 12px !important;
  font-family: var(--acd-font) !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--acd-text2) !important;
  transition: all var(--acd-duration-fast) var(--acd-ease);
  box-shadow: var(--acd-shadow-xs);
  text-align: center;
}
.acd-donate-wrap .acd-freq-btn:hover {
  border-color: var(--acd-primary) !important;
  color: var(--acd-primary) !important;
  background: var(--acd-primary-dim) !important;
}
.acd-freq-btn:focus-visible {
  outline: none;
  border-color: var(--acd-primary);
  box-shadow: var(--acd-focus-ring);
}
.acd-freq-btn:active {
  transform: scale(0.98);
}
.acd-freq-btn.acd-freq-active {
  border-color: transparent !important;
  background: var(--acd-primary) !important;
  color: var(--acd-text-on-brand) !important;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════
   REGION & CURRENCY SELECTOR
   ═══════════════════════════════════════════════ */
.acd-region-currency-selector {
  margin-bottom: 16px;
}
.acd-region-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
/* ── Custom Currency Dropdown (matches admin header style) ── */
.acd-cur-wrap { position: relative; z-index: 100; }
.acd-cur-trigger {
  display: flex !important; align-items: center; gap: 7px; width: 100%;
  background: var(--acd-bg2, #f8fafc) !important;
  border: 1.5px solid var(--acd-border, #e2e8f0) !important;
  border-radius: var(--acd-radius-sm, 10px) !important;
  padding: 10px 14px !important; cursor: pointer;
  font-family: var(--acd-font-head, inherit) !important; font-size: 15px !important; font-weight: 700 !important;
  color: var(--acd-text, #334155) !important;
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.acd-cur-trigger:hover {
  border-color: var(--acd-primary, #0d7377);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.acd-cur-wrap-open .acd-cur-trigger {
  border-color: var(--acd-primary, #0d7377);
  box-shadow: var(--acd-focus-ring, 0 0 0 3px rgba(13,115,119,0.1));
}
.acd-cur-globe { opacity: 0.4; flex-shrink: 0; transition: all 0.25s; }
.acd-cur-trigger:hover .acd-cur-globe,
.acd-cur-wrap-open .acd-cur-globe { opacity: 1; color: var(--acd-primary, #0d7377); }
.acd-cur-sym { color: var(--acd-primary, #0d7377); font-size: 15px; font-weight: 600; }
.acd-cur-code { letter-spacing: 0.05em; font-size: 14px; flex: 1; }
.acd-cur-chevron { opacity: 0.35; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), opacity 0.25s; flex-shrink: 0; margin-left: auto; }
.acd-cur-wrap-open .acd-cur-chevron { transform: rotate(180deg); opacity: 0.8; }

/* Panel */
.acd-cur-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  max-height: 0; overflow: hidden; opacity: 0;
  background: var(--acd-bg, #fff);
  border: 1.5px solid var(--acd-border, #e2e8f0);
  border-radius: var(--acd-radius-sm, 14px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.04);
  transition: max-height 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.25s ease;
  pointer-events: none; z-index: 200;
}
.acd-cur-panel.acd-cur-open {
  max-height: 380px; opacity: 1; pointer-events: auto; overflow: visible;
}
.acd-cur-panel-head {
  padding: 12px 16px 8px; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--acd-text3, #94a3b8);
  border-bottom: 1px solid var(--acd-border, #e2e8f0);
}
.acd-cur-search-wrap { padding: 8px 10px 4px; position: relative; }
.acd-cur-search {
  width: 100%; padding: 7px 10px 7px 30px;
  border: 1px solid var(--acd-border, #e2e8f0);
  border-radius: var(--acd-radius-sm, 10px);
  background: var(--acd-bg2, #f8fafc);
  font-family: inherit; font-size: 13px; font-weight: 500;
  color: var(--acd-text, #334155); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box;
}
.acd-cur-search:focus { border-color: var(--acd-primary, #0d7377); box-shadow: 0 0 0 3px rgba(13,115,119,0.06); }
.acd-cur-search::placeholder { color: var(--acd-text3, #94a3b8); font-weight: 400; }
.acd-cur-search-icon { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--acd-text3, #94a3b8); pointer-events: none; opacity: 0.5; }

/* List */
.acd-cur-list { padding: 6px; max-height: 240px; overflow-y: auto; }
.acd-cur-list::-webkit-scrollbar { width: 4px; }
.acd-cur-list::-webkit-scrollbar-track { background: transparent; }
.acd-cur-list::-webkit-scrollbar-thumb { background: var(--acd-border, #e2e8f0); border-radius: 4px; }

/* Items */
.acd-cur-item {
  display: flex !important; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px !important; border: none !important; border-radius: var(--acd-radius-sm, 10px) !important;
  background: transparent !important; cursor: pointer;
  font-family: inherit !important; font-size: 14px !important; color: var(--acd-text2, #475569) !important;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.acd-cur-item:hover { background: var(--acd-primary-dim, rgba(13,115,119,0.06)) !important; color: var(--acd-text, #334155) !important; transform: translateX(2px); }
.acd-cur-item-sym {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--acd-radius-sm, 10px);
  background: var(--acd-bg2, #f1f5f9); font-size: 14px; font-weight: 600;
  color: var(--acd-text3, #94a3b8); flex-shrink: 0; transition: all 0.2s;
}
.acd-cur-item:hover .acd-cur-item-sym { background: var(--acd-primary-dim, rgba(13,115,119,0.06)); color: var(--acd-primary, #0d7377); }
.acd-cur-item-active .acd-cur-item-sym { background: var(--acd-primary, #0d7377); color: #fff; }
.acd-cur-item-code { font-weight: 700; letter-spacing: 0.05em; flex: 1; }
.acd-cur-item-name { font-size: 12px; color: var(--acd-text3, #94a3b8); font-weight: 400; display: block; line-height: 1.3; margin-top: 1px; }
.acd-cur-item-check { display: none; color: var(--acd-primary, #0d7377); flex-shrink: 0; }
.acd-cur-item-active .acd-cur-item-check { display: block; }
.acd-cur-item-active { background: var(--acd-primary-dim, rgba(13,115,119,0.06)) !important; color: var(--acd-primary, #0d7377) !important; font-weight: 800; }
.acd-cur-no-results { padding: 16px; text-align: center; font-size: 13px; color: var(--acd-text3, #94a3b8); display: none; }
.acd-step-sublabel {
  font-size: 14px;
  font-weight: 600;
  color: var(--acd-text, #334155);
  margin-bottom: 6px;
}

/* Step Number Badge — consolidated with .acd-step-num above */

/* ═══════════════════════════════════════════════
   MODAL OVERLAY
   ═══════════════════════════════════════════════ */
.acd-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.acd-modal-overlay.acd-modal-open {
  opacity: 1;
}
.acd-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 41, 29, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
}
.acd-modal-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.04),
    0 24px 80px rgba(0, 0, 0, 0.2),
    0 8px 32px rgba(0, 0, 0, 0.12),
    0 0 120px rgba(137,163,7, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(32px) scale(0.94);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.acd-modal-overlay.acd-modal-open .acd-modal-container {
  transform: translateY(0) scale(1);
}
.acd-modal-container .acd-donate-wrap {
  border-radius: 24px;
  max-width: 100% !important;
  background: transparent !important;
}
.acd-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--acd-text2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--acd-duration) var(--acd-ease);
  box-shadow: var(--acd-shadow-sm);
}
.acd-modal-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  transform: rotate(90deg);
}
/* Scrollbar inside modal */
.acd-modal-container::-webkit-scrollbar { width: 5px; }
.acd-modal-container::-webkit-scrollbar-track { background: transparent; }
.acd-modal-container::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 10px; }
.acd-modal-container::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }
/* Body scroll lock when modal open */
body.acd-modal-body-lock { overflow: hidden; }

@media (max-width: 600px) {
  .acd-modal-overlay { padding: 0; align-items: flex-end; }
  .acd-modal-container {
    max-height: 92vh;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .acd-modal-overlay.acd-modal-open .acd-modal-container {
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════
   A/B TEST VARIANT STYLES
   ═══════════════════════════════════════════════════ */

/* Large Buttons */
.acd-ab-large-buttons .acd-amount-btn,
.acd-ab-large-buttons .acd-wf-amt-btn {
  font-size: 1.25rem;
  padding: 16px 24px;
  min-width: 100px;
  font-weight: 800;
}

/* Compact Single-Column */
.acd-ab-compact .acd-amounts,
.acd-ab-compact .acd-amount-grid,
.acd-ab-compact .acd-wf-amounts {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acd-ab-compact .acd-amount-btn,
.acd-ab-compact .acd-wf-amt-btn {
  width: 100%;
  text-align: center;
}

/* Minimal — hide decorative elements */
.acd-ab-minimal .acd-form-hero,
.acd-ab-minimal .acd-form-image,
.acd-ab-minimal .acd-campaign-image,
.acd-ab-minimal .acd-form-decoration {
  display: none !important;
}

/* Bold CTA — enlarged submit button */
.acd-ab-bold-cta .acd-submit-btn,
.acd-ab-bold-cta .acd-wf-submit,
.acd-ab-bold-cta [type="submit"] {
  font-size: 1.3rem;
  padding: 18px 32px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-height: 60px;
  box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}

/* Social Proof Banner */
.acd-ab-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(5, 150, 105, 0.08));
  border: 1px solid rgba(20, 184, 166, 0.2);
  border-radius: 10px;
  font-size: 13px;
  color: #0d7377;
  margin-bottom: 16px;
}
.acd-ab-social-proof svg { flex-shrink: 0; color: #14b8a6; }
.acd-ab-social-proof strong { color: #059669; }

/* Urgency Banner */
.acd-ab-urgency {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(239, 68, 68, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 16px;
  animation: acd-ab-pulse 2s ease-in-out infinite;
}
.acd-ab-urgency svg { flex-shrink: 0; color: #f59e0b; }
@keyframes acd-ab-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* ═══════════════════════════════════════════════════════════
   DONOR PORTAL
   Uses CSS custom properties set on #acd-portal:
   --acd-primary, --acd-secondary, --acd-radius, --acd-font
   ═══════════════════════════════════════════════════════════ */

.acd-portal {
  font-family: var(--acd-font, system-ui, sans-serif);
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 16px;
  color: #1e293b;
}

/* ── Login / OTP Cards ── */

.acd-portal-step { }

.acd-portal-login-card {
  max-width: 420px;
  margin: 40px auto;
  padding: 36px 32px;
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: var(--acd-radius, 12px);
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}

.acd-portal-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--acd-primary) 10%, transparent);
  color: var(--acd-primary);
  margin-bottom: 16px;
}

.acd-portal-title {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.acd-portal-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

/* ── Shared Form Elements ── */

.acd-portal-field {
  text-align: left;
  margin-bottom: 16px;
}

.acd-portal-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.acd-portal-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #1e293b;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: calc(var(--acd-radius, 12px) * 0.75);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.acd-portal-input:focus {
  border-color: var(--acd-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acd-primary) 12%, transparent);
}

.acd-portal-otp-input {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 12px;
  padding-left: 24px;
}

.acd-portal-textarea {
  resize: vertical;
  min-height: 70px;
}

.acd-portal-btn {
  display: block;
  width: 100%;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  color: #fff;
  background: var(--acd-primary);
  border: none;
  border-radius: calc(var(--acd-radius, 12px) * 0.75);
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.acd-portal-btn:hover { opacity: 0.9; }
.acd-portal-btn:active { transform: scale(0.98); }
.acd-portal-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Remember Device Checkbox ── */

.acd-portal-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: #64748b;
  cursor: pointer;
}

.acd-portal-remember input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--acd-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Links row (Resend / Use different email) ── */

.acd-portal-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.acd-portal-link {
  background: none;
  border: none;
  color: var(--acd-primary);
  font-weight: 600;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}
.acd-portal-link:hover { text-decoration: underline; }

.acd-portal-link--muted { color: #94a3b8; }

.acd-portal-sep { color: #cbd5e1; }

/* ── Error / Success messages ── */

.acd-portal-error {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #dc2626;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
}

.acd-portal-success {
  margin-top: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

/* ── Dashboard Header ── */

.acd-portal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.acd-portal-welcome {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.acd-portal-email-display {
  font-size: 14px;
  color: #94a3b8;
  margin: 4px 0 0;
}

.acd-portal-signout {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: #64748b;
  background: #f1f5f9;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.acd-portal-signout:hover { background: #e2e8f0; }

/* ── Stats Bar ── */

.acd-portal-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.acd-portal-stat {
  padding: 16px;
  background: #f8fafc;
  border: 2px solid #f1f5f9;
  border-radius: var(--acd-radius, 12px);
  text-align: center;
}

.acd-portal-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--acd-primary);
}

.acd-portal-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Tabs ── */

.acd-portal-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #f1f5f9;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.acd-portal-tab {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: #94a3b8;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.acd-portal-tab:hover { color: #475569; }

.acd-portal-tab.active {
  color: var(--acd-primary);
  border-bottom-color: var(--acd-primary);
}

/* ── Tab Panels ── */

.acd-portal-panel {
  display: none;
}

.acd-portal-panel.active {
  display: block;
}

/* ── Empty State ── */

.acd-portal-empty {
  padding: 32px 24px;
  background: #f8fafc;
  border-radius: var(--acd-radius, 12px);
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
}

/* ── Tables ── */

.acd-portal-table-wrap {
  border: 2px solid #f1f5f9;
  border-radius: var(--acd-radius, 12px);
  overflow: hidden;
  overflow-x: auto;
}

.acd-portal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.acd-portal-table thead tr {
  background: #f8fafc;
}

.acd-portal-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #64748b;
  font-size: 13px;
}

.acd-portal-table td {
  padding: 10px 14px;
}

.acd-portal-table tbody tr {
  border-top: 1px solid #f1f5f9;
}

.acd-portal-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.acd-portal-amount {
  font-weight: 700;
  color: var(--acd-primary);
}

.acd-portal-ref {
  font-size: 12px;
  color: #94a3b8;
  font-family: 'Fira Code', 'Source Code Pro', monospace;
}

.acd-portal-muted { color: #cbd5e1; font-size: 12px; }

/* ── Badges ── */

.acd-portal-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
}

.acd-portal-badge--success { background: #f0fdf4; color: #16a34a; }
.acd-portal-badge--warning { background: #fffbeb; color: #d97706; }
.acd-portal-badge--danger  { background: #fef2f2; color: #dc2626; }
.acd-portal-badge--freq    { background: rgba(168,85,247,0.1); color: #9333ea; }

/* ── Receipt Link ── */

.acd-portal-receipt-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--acd-primary) 10%, transparent);
  color: var(--acd-primary);
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.15s;
}
.acd-portal-receipt-link:hover {
  background: color-mix(in srgb, var(--acd-primary) 18%, transparent);
}

/* ── Subscription Cards ── */

.acd-portal-sub-card {
  padding: 20px;
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: var(--acd-radius, 12px);
  margin-bottom: 12px;
  transition: border-color 0.15s;
}
.acd-portal-sub-card:hover { border-color: #e2e8f0; }

.acd-portal-sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.acd-portal-sub-amount {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acd-portal-sub-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--acd-primary);
}

.acd-portal-sub-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 14px;
}

.acd-portal-sub-actions {
  display: flex;
  gap: 8px;
}

.acd-portal-sub-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border-radius: calc(var(--acd-radius, 12px) * 0.75);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.acd-portal-sub-btn--cancel {
  background: #fef2f2;
  border-color: #fecaca;
  color: #dc2626;
}
.acd-portal-sub-btn--cancel:hover { background: #fee2e2; }

.acd-portal-sub-btn--pause {
  background: #fffbeb;
  border-color: #fde68a;
  color: #d97706;
}
.acd-portal-sub-btn--pause:hover { background: #fef3c7; }

.acd-portal-sub-btn--resume {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #16a34a;
}
.acd-portal-sub-btn--resume:hover { background: #dcfce7; }

.acd-portal-sub-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Section Title ── */

.acd-portal-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 10px;
}

/* ── Annual Statements ── */

.acd-portal-annual-list { }

.acd-portal-annual-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid #f1f5f9;
  border-radius: var(--acd-radius, 12px);
  margin-bottom: 8px;
  text-decoration: none;
  transition: border-color 0.15s;
}
.acd-portal-annual-item:hover { border-color: var(--acd-primary); }

.acd-portal-annual-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.acd-portal-annual-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
}

.acd-portal-annual-year {
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
}

.acd-portal-annual-date {
  font-size: 13px;
  color: #94a3b8;
}

.acd-portal-dl-btn {
  display: inline-block;
  padding: 6px 14px;
  background: var(--acd-primary);
  color: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ── Impact Panel ── */

.acd-portal-impact-hero {
  padding: 28px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--acd-primary) 6%, transparent), color-mix(in srgb, var(--acd-secondary, #f59e0b) 4%, transparent));
  border: 2px solid #f1f5f9;
  border-radius: var(--acd-radius, 12px);
  text-align: center;
}

.acd-portal-impact-total-amount {
  font-size: 36px;
  font-weight: 800;
  color: var(--acd-primary);
}

.acd-portal-impact-total-label {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  margin-top: 4px;
}

.acd-portal-impact-meta {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.acd-portal-impact-meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.acd-portal-impact-meta-value {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.acd-portal-impact-meta-label {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
}

/* ── Campaign Breakdown ── */

.acd-portal-campaign-list { }

.acd-portal-campaign-item {
  margin-bottom: 12px;
}

.acd-portal-campaign-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.acd-portal-campaign-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

.acd-portal-campaign-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--acd-primary);
}

.acd-portal-campaign-bar {
  height: 8px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.acd-portal-campaign-bar-fill {
  height: 100%;
  background: var(--acd-primary);
  border-radius: 4px;
  transition: width 0.6s ease;
}

/* ── Giving Timeline (Bar Chart) ── */

.acd-portal-timeline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
  padding: 8px 0;
}

.acd-portal-timeline-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.acd-portal-timeline-fill {
  width: 100%;
  background: var(--acd-primary);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.6s ease;
  opacity: 0.75;
}

.acd-portal-timeline-bar:hover .acd-portal-timeline-fill { opacity: 1; }

.acd-portal-timeline-label {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 6px;
  white-space: nowrap;
}

/* ── Profile Form ── */

.acd-portal-profile-form {
  max-width: 480px;
}

/* ── Responsive ── */

@media (max-width: 640px) {
  .acd-portal { padding: 12px 10px; }

  .acd-portal-login-card { padding: 28px 20px; margin: 20px auto; }

  .acd-portal-header { flex-direction: column; align-items: flex-start; gap: 12px; }
  .acd-portal-welcome { font-size: 18px; }

  .acd-portal-stats { grid-template-columns: repeat(2, 1fr); }

  .acd-portal-tabs { gap: 0; }
  .acd-portal-tab { padding: 8px 12px; font-size: 13px; }

  .acd-portal-sub-details { grid-template-columns: 1fr; }
  .acd-portal-sub-actions { flex-direction: column; }

  .acd-portal-impact-meta { gap: 16px; flex-wrap: wrap; }

  .acd-portal-timeline { height: 80px; }
  .acd-portal-timeline-label { font-size: 8px; }
}


/* ═══════════════════════════════════════════════════
   P2P FUNDRAISER — Card, Create Form, Leaderboard
   ═══════════════════════════════════════════════════ */

/* ── Shared / Utility ── */
.acd-p2p-disabled {
  text-align: center;
  padding: 24px 16px;
  color: #6b7280;
  font-size: 15px;
}

.acd-p2p-empty {
  text-align: center;
  padding: 16px;
  color: #9ca3af;
  font-size: 14px;
}

.acd-p2p-progress {
  height: 6px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 6px;
}

.acd-p2p-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #0a6b61);
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* ── Fundraiser Card (shortcode_p2p_page) ── */
.acd-p2p-card {
  max-width: 560px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.acd-p2p-header {
  background: linear-gradient(135deg, #0f766e 0%, #0a6b61 100%);
  padding: 28px 24px 20px;
  color: #fff;
}

.acd-p2p-title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
}

.acd-p2p-byline {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

.acd-p2p-campaign {
  margin: 6px 0 0;
  font-size: 13px;
  opacity: 0.75;
}

.acd-p2p-body {
  padding: 24px;
}

.acd-p2p-description {
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.acd-p2p-progress-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 8px;
}

.acd-p2p-raised {
  font-size: 24px;
  font-weight: 800;
  color: #0f766e;
}

.acd-p2p-goal {
  font-size: 14px;
  color: #6b7280;
}

.acd-p2p-bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.acd-p2p-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0f766e, #14b8a6);
  border-radius: 99px;
  transition: width 0.6s ease;
}

.acd-p2p-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 20px;
}

/* ── Share buttons ── */
.acd-p2p-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 0;
  border-top: 1px solid #f3f4f6;
}

.acd-p2p-share-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.acd-p2p-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.acd-p2p-share-btn:hover {
  background: #f9fafb;
  border-color: #0f766e;
  color: #0f766e;
}

/* ── Activity feed ── */
.acd-p2p-feed {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
}

.acd-p2p-feed-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 12px;
}

.acd-p2p-feed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f9fafb;
}

.acd-p2p-feed-item:last-child {
  border-bottom: none;
}

.acd-p2p-feed-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acd-p2p-feed-info {
  flex: 1;
  min-width: 0;
}

.acd-p2p-feed-name {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: #111827;
}

.acd-p2p-feed-time {
  display: block;
  font-size: 12px;
  color: #9ca3af;
}

.acd-p2p-feed-amount {
  font-weight: 700;
  font-size: 15px;
  color: #0f766e;
  white-space: nowrap;
}

/* ── Create Form (shortcode_p2p_create) ── */
.acd-p2p-create {
  max-width: 500px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.acd-p2p-create__title {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 20px;
  color: #0f766e;
}

.acd-p2p-field {
  margin-bottom: 14px;
}

.acd-p2p-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.acd-p2p-input,
.acd-p2p-select,
.acd-p2p-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}

.acd-p2p-input:focus,
.acd-p2p-select:focus,
.acd-p2p-textarea:focus {
  outline: none;
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.acd-p2p-textarea {
  resize: vertical;
  min-height: 80px;
}

.acd-p2p-error {
  color: #ef4444;
  font-size: 14px;
  margin-bottom: 10px;
}

.acd-p2p-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #0f766e, #0a6b61);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}

.acd-p2p-submit:hover {
  opacity: 0.92;
}

.acd-p2p-success {
  text-align: center;
  padding: 30px;
}

.acd-p2p-success__icon {
  margin-bottom: 12px;
}

.acd-p2p-success__title {
  margin: 0 0 8px;
  color: #0f766e;
  font-size: 20px;
}

.acd-p2p-success__msg {
  font-size: 15px;
  color: #6b7280;
  margin: 0;
}

/* ── Leaderboard (shortcode_p2p_leaderboard) ── */
.acd-p2p-leaderboard {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.acd-p2p-leaderboard__title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 16px;
  color: #0f766e;
}

.acd-p2p-lb-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 10px;
  background: #f9fafb;
  margin-bottom: 8px;
  transition: background 0.15s;
}

.acd-p2p-lb-row:hover {
  background: #f3f4f6;
}

.acd-p2p-lb-rank--1 {
  background: linear-gradient(135deg, #fefce8, #fef9c3);
  border: 1px solid #fde68a;
}

.acd-p2p-lb-rank--2 {
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
  border: 1px solid #e5e7eb;
}

.acd-p2p-lb-rank--3 {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fcd34d;
}

.acd-p2p-lb-rank {
  font-size: 18px;
  font-weight: 800;
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  flex-shrink: 0;
}

.acd-p2p-lb-rank--1 .acd-p2p-lb-rank {
  background: #fbbf24;
  color: #92400e;
}

.acd-p2p-lb-rank--2 .acd-p2p-lb-rank {
  background: #d1d5db;
  color: #4b5563;
}

.acd-p2p-lb-rank--3 .acd-p2p-lb-rank {
  background: #d97706;
  color: #451a03;
}

.acd-p2p-lb-info {
  flex: 1;
  min-width: 0;
}

.acd-p2p-lb-name {
  font-weight: 700;
  font-size: 16px;
  color: #111827;
}

.acd-p2p-lb-campaign {
  font-size: 13px;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acd-p2p-lb-stats {
  text-align: right;
  min-width: 80px;
  flex-shrink: 0;
}

.acd-p2p-lb-raised {
  font-weight: 800;
  font-size: 16px;
  color: #0f766e;
}

.acd-p2p-lb-donors {
  font-size: 12px;
  color: #6b7280;
}

/* ── P2P responsive ── */
@media (max-width: 480px) {
  .acd-p2p-card { border-radius: 0; }
  .acd-p2p-header { padding: 20px 16px 16px; }
  .acd-p2p-body { padding: 16px; }
  .acd-p2p-title { font-size: 18px; }
  .acd-p2p-raised { font-size: 20px; }

  .acd-p2p-share { flex-wrap: wrap; }

  .acd-p2p-lb-row { gap: 10px; padding: 10px; }
  .acd-p2p-lb-name { font-size: 14px; }
  .acd-p2p-lb-raised { font-size: 14px; }
}
