/* ── Donation Widget Styles ────────────────────────────────────────────── */
:root { --dw-accent: #c8a96e; }

.dw-widget {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px 40px;
  color: #222;
}

/* HEADER */
.dw-header { text-align: center; margin-bottom: 28px; }
.dw-title  { font-size: 1.8rem; font-weight: 700; margin-bottom: 8px; color: #1a1a1a; }
.dw-desc   { font-size: 1rem; color: #555; line-height: 1.6; }

/* COUNTDOWN */
.dw-countdown { background: #1a1208; border-radius: 12px; padding: 20px; margin-bottom: 24px; text-align: center; }
.dw-countdown-label { color: #c8a96e; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.dw-countdown-timer { display: flex; justify-content: center; align-items: center; gap: 8px; }
.dw-cd-block { display: flex; flex-direction: column; align-items: center; }
.dw-cd-num   { background: rgba(200,169,110,.15); border: 1px solid rgba(200,169,110,.3); color: #e8d5a3; font-size: 2rem; font-weight: 700; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 8px; }
.dw-cd-block small { color: #888; font-size: .7rem; margin-top: 4px; text-transform: uppercase; }
.dw-cd-sep { color: #c8a96e; font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }

/* PROGRESS */
.dw-progress-wrap { margin-bottom: 28px; }
.dw-progress-labels { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 8px; color: #444; }
.dw-progress-bar  { background: #e8e8e8; border-radius: 100px; height: 12px; overflow: hidden; }
.dw-progress-fill { height: 100%; background: linear-gradient(90deg, var(--dw-accent), #e8c97a); border-radius: 100px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.dw-progress-pct  { text-align: right; font-size: .8rem; color: #777; margin-top: 4px; }

/* TABS */
.dw-amount-section { margin-bottom: 24px; }
.dw-tabs { display: flex; background: #f4f4f4; border-radius: 10px; padding: 4px; margin-bottom: 16px; }
.dw-tab-btn { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 7px; cursor: pointer; font-size: .9rem; font-weight: 500; color: #666; transition: all .2s; }
.dw-tab-btn.active { background: #fff; color: #222; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* AMOUNT BUTTONS */
.dw-amounts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dw-amount-btn { border: 2px solid #e0e0e0; background: #fff; padding: 10px 20px; border-radius: 8px; cursor: pointer; font-size: .95rem; font-weight: 600; color: #333; transition: all .2s; }
.dw-amount-btn:hover, .dw-amount-btn.active { border-color: var(--dw-accent); color: var(--dw-accent); background: rgba(200,169,110,.07); }
.dw-amount-custom { display: flex; align-items: center; gap: 6px; background: #f8f8f8; border: 2px solid #e0e0e0; border-radius: 8px; padding: 6px 12px; flex: 1; min-width: 140px; }
.dw-amount-custom input { border: none; background: transparent; font-size: .95rem; width: 100%; outline: none; }
.dw-amount-custom span { color: #888; font-size: .85rem; white-space: nowrap; }

/* PAYMENT BUTTONS */
.dw-payment-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.dw-pay-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 20px; border: none; border-radius: 10px; cursor: pointer; font-size: .95rem; font-weight: 600; transition: all .2s; }
.dw-pay-btn svg { width: 22px; height: 22px; flex-shrink: 0; }
.dw-mono   { background: #000; color: #fff; }
.dw-mono:hover { background: #222; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.dw-paypal { background: #003087; color: #fff; }
.dw-paypal:hover { background: #00247a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,48,135,.3); }
.dw-card   { background: var(--dw-accent); color: #fff; }
.dw-card:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(200,169,110,.4); }
.dw-crypto { background: #f7931a; color: #fff; }
.dw-crypto:hover { background: #e8821a; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(247,147,26,.4); }

/* DONOR FORM */
.dw-donor-form { margin-bottom: 28px; }
.dw-toggle-form { background: none; border: 1px dashed #ccc; color: #666; font-size: .85rem; padding: 8px 16px; border-radius: 8px; cursor: pointer; width: 100%; transition: all .2s; }
.dw-toggle-form:hover { border-color: var(--dw-accent); color: var(--dw-accent); }
.dw-form-fields { padding: 16px; background: #f9f9f9; border-radius: 10px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.dw-form-fields input, .dw-form-fields textarea { border: 1px solid #ddd; border-radius: 7px; padding: 10px 14px; font-size: .9rem; outline: none; transition: border .2s; width: 100%; font-family: inherit; }
.dw-form-fields input:focus, .dw-form-fields textarea:focus { border-color: var(--dw-accent); }
.dw-submit-donor { background: var(--dw-accent); color: #fff; border: none; padding: 12px; border-radius: 8px; font-size: .95rem; font-weight: 600; cursor: pointer; transition: all .2s; }
.dw-submit-donor:hover { filter: brightness(1.1); }
.dw-form-note { font-size: .78rem; color: #999; margin: 0; }

/* DONORS LIST */
.dw-donors-section { margin-bottom: 28px; }
.dw-donors-section h3 { font-size: 1rem; margin-bottom: 14px; color: #333; }
.dw-donors-list { display: flex; flex-direction: column; gap: 8px; }
.dw-donor-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f8f8f8; border-radius: 8px; }
.dw-donor-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--dw-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.dw-donor-info { display: flex; justify-content: space-between; flex: 1; align-items: center; }
.dw-donor-name   { font-weight: 500; font-size: .9rem; }
.dw-donor-amount { color: var(--dw-accent); font-weight: 700; font-size: .9rem; }

/* TESTIMONIALS SLIDER */
.dw-testimonials { background: #1a1208; border-radius: 14px; padding: 28px 24px; color: #e8d5a3; }
.dw-testimonials h3 { font-size: 1rem; margin-bottom: 20px; color: #c8a96e; }
.dw-slider { position: relative; overflow: hidden; }
.dw-slides { display: flex; transition: transform .4s cubic-bezier(.4,0,.2,1); }
.dw-slide { min-width: 100%; text-align: center; padding: 0 16px; }
.dw-slide-avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(200,169,110,.2); border: 2px solid rgba(200,169,110,.4); color: #c8a96e; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 700; margin: 0 auto 16px; }
.dw-slide-text   { font-size: 1rem; line-height: 1.7; color: #d4c4a0; margin-bottom: 12px; border: none; font-style: italic; }
.dw-slide-author { font-size: .85rem; color: #a89070; font-style: normal; }
.dw-slider-nav   { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.dw-prev, .dw-next { background: rgba(200,169,110,.2); border: 1px solid rgba(200,169,110,.3); color: #c8a96e; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.dw-prev:hover, .dw-next:hover { background: rgba(200,169,110,.35); }
.dw-dots { display: flex; gap: 6px; }
.dw-dot  { width: 8px; height: 8px; border-radius: 50%; background: rgba(200,169,110,.3); cursor: pointer; transition: all .2s; }
.dw-dot.active { background: var(--dw-accent); transform: scale(1.2); }

/* POPUP OVERLAY */
.dw-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9998; backdrop-filter: blur(3px); }
.dw-overlay.active { display: block; }
.dw-popup { display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); z-index: 9999; width: 90%; max-width: 440px; background: #fff; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.2); padding: 32px 28px; opacity: 0; transition: opacity .25s, transform .25s; }
.dw-popup.active { display: block; opacity: 1; transform: translate(-50%, -50%); }
.dw-popup-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 1.6rem; color: #aaa; cursor: pointer; line-height: 1; }
.dw-popup-close:hover { color: #333; }
.dw-popup h3 { font-size: 1.3rem; margin-bottom: 16px; color: #1a1a1a; }
.dw-qr-img { display: block; max-width: 180px; margin: 0 auto 20px; border-radius: 8px; }
.dw-popup-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.dw-popup-btn { display: block; text-align: center; padding: 13px 20px; background: var(--dw-accent); color: #fff; text-decoration: none; border-radius: 9px; font-weight: 600; transition: all .2s; }
.dw-popup-btn:hover { filter: brightness(1.1); }
.dw-popup-btn-outline { background: transparent; border: 2px solid var(--dw-accent); color: var(--dw-accent); }
.dw-popup-btn-outline:hover { background: var(--dw-accent); color: #fff; }
.dw-copy-row { display: flex; align-items: center; gap: 8px; background: #f4f4f4; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; flex-wrap: wrap; }
.dw-copy-label { font-size: .8rem; color: #888; white-space: nowrap; }
.dw-copy-row code { flex: 1; font-size: .82rem; color: #333; word-break: break-all; }
.dw-copy-btn { background: #222; color: #fff; border: none; padding: 5px 12px; border-radius: 6px; font-size: .78rem; cursor: pointer; white-space: nowrap; transition: background .2s; }
.dw-copy-btn:hover { background: #444; }
.dw-copy-btn.copied { background: #2d8a4e; }
.dw-card-holder { font-size: .9rem; color: #555; margin-top: 8px; }

@media (max-width: 480px) {
  .dw-payment-buttons { grid-template-columns: 1fr 1fr; }
  .dw-cd-num { width: 48px; height: 48px; font-size: 1.5rem; }
  .dw-popup { padding: 24px 18px; }
}
