/* ================================================================
   DonateNow — Full Design System
   ================================================================ */
:root {
  --accent:       #0BA36A;
  --accent-dark:  #078a58;
  --accent-light: #d1fae5;
  --bg:           #f8fafc;
  --surface:      #ffffff;
  --border:       #e2e8f0;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --danger:       #ef4444;
  --warn:         #f59e0b;
  --radius:       14px;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 40px rgba(0,0,0,.12);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; }
img  { max-width: 100%; display: block; }
a    { color: var(--accent); text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────────── */
.dn-wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Header ──────────────────────────────────────────────────── */
.dn-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(8px);
}
.dn-header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.dn-logo         { height: 38px; object-fit: contain; }
.dn-logo-link    { display: flex; align-items: center; }
.dn-nav          { display: flex; align-items: center; gap: 16px; }
.dn-nav-link     { font-size: 14px; color: var(--text-muted); font-weight: 500; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.dn-nav-link:hover { color: var(--accent); background: var(--accent-light); }
.dn-nav-cta      { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 100px; font-size: 14px; font-weight: 600; transition: background .2s, transform .15s; }
.dn-nav-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ── Hero ────────────────────────────────────────────────────── */
.dn-hero {
  position: relative;
  min-height: 480px;
  background: linear-gradient(135deg, #0a4a30 0%, #0BA36A 60%, #00c97b 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
/* Subtle Islamic geometric lattice overlay */
.dn-hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(30deg,  rgba(255,255,255,.03) 12%, transparent 12.5%, transparent 87.5%, rgba(255,255,255,.03) 88%),
    linear-gradient(150deg, rgba(255,255,255,.03) 12%, transparent 12.5%, transparent 87.5%, rgba(255,255,255,.03) 88%),
    linear-gradient(30deg,  rgba(255,255,255,.03) 12%, transparent 12.5%, transparent 87.5%, rgba(255,255,255,.03) 88%),
    linear-gradient(150deg, rgba(255,255,255,.03) 12%, transparent 12.5%, transparent 87.5%, rgba(255,255,255,.03) 88%),
    linear-gradient(60deg,  rgba(255,255,255,.055) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,.055) 75%),
    linear-gradient(60deg,  rgba(255,255,255,.055) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,.055) 75%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
  pointer-events: none;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.hero-content { position: relative; z-index: 1; text-align: center; padding: 60px 24px; }
.hero-eyebrow  { color: rgba(255,255,255,.8); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 16px; }
.hero-title    { font-size: clamp(36px, 6vw, 68px); font-weight: 800; color: #fff; letter-spacing: -2px; line-height: 1; margin-bottom: 20px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-sub      { font-size: 18px; color: rgba(255,255,255,.85); max-width: 520px; margin: 0 auto 24px; }
/* Trust pills row inside hero */
.hero-trust-row  { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust-pill { background: rgba(255,255,255,.16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: rgba(255,255,255,.92); font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 100px; border: 1px solid rgba(255,255,255,.28); letter-spacing: .3px; }
.hero-cta      { display: inline-block; background: #fff; color: var(--accent); font-weight: 700; font-size: 16px; padding: 16px 40px; border-radius: 100px; box-shadow: 0 8px 32px rgba(0,0,0,.2); transition: transform .2s, box-shadow .2s; animation: cta-pulse 2.8s ease-in-out infinite; }
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,.25); animation: none; }
@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 0 0 rgba(255,255,255,.5); }
  60%       { box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 0 0 16px rgba(255,255,255,0); }
}

/* ── Stats Bar ───────────────────────────────────────────────── */
.dn-stats-bar { background: var(--surface); border-bottom: 1px solid var(--border); padding: 0; }
.stats-bar-inner { display: flex; align-items: stretch; justify-content: center; flex-wrap: nowrap; }
.stat-pill       { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 18px 40px; border-right: 1px solid var(--border); cursor: default; transition: background .25s; }
.stat-pill:last-child { border-right: none; }
.stat-pill:hover { background: var(--accent-light); }
.stat-num        { font-size: 28px; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-lbl        { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.stat-pill--wide { flex: 1; min-width: 200px; }
.stats-bar-progress-wrap  { display: flex; align-items: center; gap: 12px; width: 100%; }
.stats-bar-progress-track { flex: 1; height: 10px; background: #e2f8ee; border-radius: 100px; overflow: hidden; }
.stats-bar-progress-fill  { height: 100%; background: linear-gradient(90deg, var(--accent), #00d98a); border-radius: 100px; width: 0%; transition: width 1s ease; }
.stats-bar-pct   { font-size: 14px; font-weight: 700; color: var(--accent); min-width: 40px; }

/* ── Main + Grid ─────────────────────────────────────────────── */
.dn-main    { padding: 48px 0 80px; }
.pledge-outer { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }

/* ── Pledge Card ─────────────────────────────────────────────── */
.pledge-card      { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 40px; border-top: 4px solid var(--accent); }
.pledge-card-head { margin-bottom: 28px; }
.pledge-card-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.pledge-card-head p  { color: var(--text-muted); margin-top: 4px; }

/* ── Mode Tabs ───────────────────────────────────────────────── */
.mode-tabs { display: flex; gap: 8px; margin-bottom: 28px; background: var(--bg); padding: 6px; border-radius: 12px; }
.mode-tab  { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: none; background: transparent; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .25s; }
.mode-tab.active { background: linear-gradient(135deg, var(--accent) 0%, #00c97b 100%); color: #fff; box-shadow: 0 4px 14px rgba(11,163,106,.4); }
.mode-tab .tab-icon { font-size: 16px; }

/* ── Mode Panels ─────────────────────────────────────────────── */
.mode-panel { display: none; }
.mode-panel.active { display: block; }

/* ── Input Groups ────────────────────────────────────────────── */
.input-group { margin-bottom: 22px; }
.input-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.input-group .opt  { font-weight: 400; color: var(--text-muted); }
.input-hint  { display: block; font-size: 12px; color: var(--text-muted); margin-top: 5px; }
.input-money-wrap { position: relative; }
.input-currency   { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--text-muted); pointer-events: none; }
.input-money      { width: 100%; padding: 14px 16px 14px 36px; font-size: 24px; font-weight: 700; border: 2px solid var(--border); border-radius: 12px; outline: none; transition: border-color .2s, box-shadow .2s; background: var(--bg); }
.input-money:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11,163,106,.12); background: var(--surface); }
input[type=text], input[type=email], textarea {
  width: 100%; padding: 12px 14px; font-size: 15px;
  border: 2px solid var(--border); border-radius: 10px; outline: none;
  font-family: var(--font); background: var(--bg); color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
input[type=text]:focus, input[type=email]:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 4px rgba(11,163,106,.12); background: var(--surface);
}
textarea { resize: vertical; }

/* ── Preset Buttons ──────────────────────────────────────────── */
.amount-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.preset-btn     { padding: 6px 14px; border: 2px solid var(--border); border-radius: 100px; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text-muted); transition: all .2s; }
.preset-btn:hover    { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.preset-btn.selected { border-color: var(--accent); color: #fff; background: var(--accent); box-shadow: 0 2px 8px rgba(11,163,106,.35); }

/* ── Schedule Grid ───────────────────────────────────────────── */
.schedule-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.schedule-card {
  position: relative; display: flex; flex-direction: column; align-items: center;
  padding: 14px 10px; border: 2px solid var(--border); border-radius: 12px;
  cursor: pointer; transition: all .2s; text-align: center;
}
.schedule-card:hover { border-color: var(--accent); background: var(--accent-light); }
.schedule-card.selected { border-color: var(--accent); background: var(--accent-light); box-shadow: 0 0 0 3px rgba(11,163,106,.15); }
.schedule-card input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.scard-label { font-size: 14px; font-weight: 700; color: var(--text); }
.scard-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Range Slider ────────────────────────────────────────────── */
.range-wrap   { margin-top: 6px; }
.range-input  { -webkit-appearance: none; width: 100%; height: 6px; border-radius: 10px; background: linear-gradient(90deg, var(--accent) 0%, var(--border) 0%); outline: none; cursor: pointer; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid white; box-shadow: 0 2px 8px rgba(0,0,0,.2); cursor: pointer; }
.range-input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid white; cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ── Projection Box ──────────────────────────────────────────── */
.projection-box {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0a4a30, #0BA36A);
  border-radius: 16px; padding: 28px; margin: 28px 0;
  opacity: 0; transform: translateY(12px) scale(0.98);
  transition: opacity .4s ease, transform .4s ease;
}
.projection-box.active { opacity: 1; transform: translateY(0) scale(1); }
.projection-orb {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.15) 0%, transparent 70%);
  animation: orb-pulse 4s ease-in-out infinite;
}
@keyframes orb-pulse { 0%,100%{transform:scale(1);opacity:.8} 50%{transform:scale(1.3);opacity:.5} }
.proj-row         { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.proj-row--total  { margin-top: 8px; }
.proj-label       { font-size: 13px; color: rgba(255,255,255,.75); font-weight: 500; }
.proj-value       { font-size: 16px; color: #fff; font-weight: 700; }
.proj-total       { font-size: 26px; color: #fff; font-weight: 800; }
.proj-divider     { border: none; border-top: 1px solid rgba(255,255,255,.2); margin: 6px 0; }

/* Ring progress */
.proj-ring-wrap   { text-align: center; margin-top: 20px; }
.proj-ring        { width: 100px; height: 100px; transform: rotate(-90deg); }
.ring-track       { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 10; }
.ring-fill        { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.ring-pct         { fill: #fff; font-size: 18px; font-weight: 800; transform: rotate(90deg); transform-origin: 60px 60px; }
.ring-label       { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 8px; }

/* ── Donor Info ──────────────────────────────────────────────── */
.donor-info-section { border-top: 1px solid var(--border); padding-top: 28px; margin-top: 8px; }
.section-heading    { font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.two-col            { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Gift Aid ────────────────────────────────────────────────── */
.gift-aid-row     { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fffbeb; border: 2px solid #fde68a; border-radius: 12px; cursor: pointer; margin-top: 18px; }
.gift-aid-row input[type=checkbox] { position: absolute; opacity: 0; width: 0; height: 0; }
.ga-box           { width: 22px; height: 22px; min-width: 22px; border: 2px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: all .2s; background: #fff; }
.gift-aid-row input[type=checkbox]:checked ~ .ga-text { /* do nothing */ }
.gift-aid-row:has(input:checked) .ga-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.gift-aid-row:has(input:checked) .ga-box svg { display: block; }
.ga-box svg       { display: none; width: 14px; height: 14px; color: white; }
.ga-text          { font-size: 14px; color: var(--text); }
.ga-text strong   { display: block; margin-bottom: 2px; }
.ga-badge         { display: inline-block; background: #fde68a; color: #92400e; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-top: 4px; text-transform: uppercase; letter-spacing: .5px; }

/* ── Submit Button ───────────────────────────────────────────── */
.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 18px 24px; margin-top: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #00c97b 100%);
  color: #fff; border: none; border-radius: 14px;
  font-size: 16px; font-weight: 700; cursor: pointer;
  transition: transform .15s, box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 24px rgba(11,163,106,.45);
  position: relative; overflow: hidden;
}
.submit-btn::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: left .55s ease; pointer-events: none;
}
.submit-btn:hover:not(:disabled)::after { left: 150%; }
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(11,163,106,.55); }
.submit-btn:disabled { background: linear-gradient(135deg, #cbd5e1, #94a3b8); box-shadow: none; cursor: not-allowed; opacity: .65; }
.btn-arrow  { width: 20px; height: 20px; }
.submit-hint { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 10px; }

/* ── Right Column ────────────────────────────────────────────── */
.pledge-visual-col { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 80px; }

/* ── Impact Card ─────────────────────────────────────────────── */
.impact-card, .coin-jar-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px;
}
.impact-heading { font-size: 15px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.impact-timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline-empty  { font-size: 14px; color: var(--text-muted); text-align: center; padding: 20px 0; }
.tl-step         { display: flex; align-items: flex-start; gap: 14px; animation: fadeSlide .4s ease both; }
@keyframes fadeSlide { from{opacity:0;transform:translateX(-10px)} to{opacity:1;transform:none} }
.tl-dot          { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: var(--accent-light); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.tl-content      { }
.tl-content strong { display: block; font-size: 14px; font-weight: 700; }
.tl-content span   { font-size: 13px; color: var(--text-muted); }

/* ── Coin Jar ────────────────────────────────────────────────── */
.jar-wrap     { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.coin-jar-svg { width: 140px; height: 180px; }
.jar-label    { font-size: 13px; color: var(--text-muted); text-align: center; transition: color .3s; }
#jarFill      { transition: y .8s ease, height .8s ease; }

/* ── Trust Badges ────────────────────────────────────────────── */
.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-badge  { flex: 1; min-width: 128px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--text-muted); transition: border-color .2s, background .2s, color .2s; }
.trust-badge:hover { border-color: var(--accent); background: var(--accent-light); color: var(--text); }
.trust-badge span:first-child { font-size: 20px; }

/* == ADMIN DASHBOARD == */
.adm-page   { min-height: 100vh; background: #0f172a; }
.adm-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: 260px; z-index: 50;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-right: 1px solid rgba(255,255,255,.07);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.adm-logo-area { padding: 24px 24px 20px; border-bottom: 1px solid rgba(255,255,255,.07); }
.adm-logo-area img { height: 36px; }
.adm-logo-area h2  { color: #fff; font-size: 15px; margin-top: 12px; font-weight: 700; }
.adm-logo-area p   { color: rgba(255,255,255,.4); font-size: 12px; }
.adm-nav       { padding: 16px 12px; flex: 1; }
.adm-nav a     { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: rgba(255,255,255,.6); font-weight: 500; transition: all .2s; margin-bottom: 4px; }
.adm-nav a:hover, .adm-nav a.active { background: rgba(255,255,255,.08); color: #fff; }
.adm-nav a.active { background: rgba(11,163,106,.2); color: var(--accent); }
.adm-nav-icon  { font-size: 18px; }
.adm-footer    { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,.07); }
.adm-footer a  { font-size: 13px; color: rgba(255,255,255,.4); }
.adm-footer a:hover { color: var(--danger); }

.adm-main      { margin-left: 260px; min-height: 100vh; background: #f1f5f9; }
.adm-topbar    { background: #fff; border-bottom: 1px solid var(--border); padding: 0 32px; height: 64px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.adm-topbar h1 { font-size: 18px; font-weight: 800; }
.adm-topbar-right { display: flex; align-items: center; gap: 16px; }
.adm-badge     { background: var(--accent-light); color: var(--accent); padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.adm-logout    { font-size: 13px; color: var(--danger); font-weight: 600; }
.adm-content   { padding: 32px; }

/* KPI Grid */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 32px; }
.kpi-card  { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.kpi-card--accent { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); }
.kpi-card--accent .kpi-label, .kpi-card--accent .kpi-sub { color: rgba(255,255,255,.8); }
.kpi-card--accent .kpi-value { color: #fff; }
.kpi-label  { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 8px; }
.kpi-value  { font-size: 32px; font-weight: 800; letter-spacing: -1px; color: var(--text); line-height: 1; }
.kpi-sub    { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.kpi-icon   { font-size: 24px; margin-bottom: 8px; }
.kpi-progress { margin-top: 12px; }
.kpi-bar-track { height: 8px; background: #e2e8f0; border-radius: 100px; overflow: hidden; }
.kpi-bar-fill  { height: 100%; background: var(--accent); border-radius: 100px; transition: width 1.5s cubic-bezier(.22,1,.36,1); }
.kpi-card--accent .kpi-bar-track { background: rgba(255,255,255,.25); }
.kpi-card--accent .kpi-bar-fill  { background: #fff; }

/* Charts section */
.charts-row         { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-bottom: 32px; }
.chart-card         { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.chart-card h3      { font-size: 15px; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.chart-canvas-wrap  { position: relative; width: 100%; height: 220px; }
canvas.chart-canvas { width: 100% !important; height: 100% !important; }

/* Schedule donut */
.donut-wrap   { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.donut-canvas { width: 160px !important; height: 160px !important; }
.donut-legend { width: 100%; }
.dl-row       { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.dl-dot       { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dl-label     { flex: 1; color: var(--text-muted); }
.dl-val       { font-weight: 700; }

/* Pledge Table */
.adm-table-card       { background: #fff; border-radius: var(--radius); box-shadow: 0 1px 8px rgba(0,0,0,.06); overflow: hidden; }
.adm-table-head       { padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.adm-table-head h3    { font-size: 15px; font-weight: 700; }
.adm-filters          { display: flex; align-items: center; gap: 10px; }
.adm-filter-btn       { padding: 6px 14px; border: 1px solid var(--border); border-radius: 8px; background: transparent; font-size: 13px; cursor: pointer; color: var(--text-muted); transition: all .2s; }
.adm-filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.adm-table            { width: 100%; border-collapse: collapse; }
.adm-table th         { background: var(--bg); padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .8px; border-bottom: 1px solid var(--border); }
.adm-table td         { padding: 14px 20px; border-bottom: 1px solid #f1f5f9; font-size: 14px; vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: #f8fafc; }
.pledge-progress-cell { min-width: 160px; }
.pledge-bar-wrap      { display: flex; align-items: center; gap: 8px; }
.pledge-bar-track     { flex: 1; height: 8px; background: #e2e8f0; border-radius: 100px; overflow: hidden; }
.pledge-bar-fill      { height: 100%; border-radius: 100px; background: var(--accent); }
.pledge-bar-fill.complete { background: #0ea5e9; }
.pledge-bar-fill.pending  { background: #94a3b8; }
.pledge-pct-lbl       { font-size: 12px; color: var(--text-muted); min-width: 32px; text-align: right; }
.pledge-name          { font-weight: 600; }
.pledge-email         { font-size: 12px; color: var(--text-muted); }
.pledge-amount        { font-weight: 700; color: var(--text); }
.pledge-sub           { font-size: 12px; color: var(--text-muted); }
.status-badge         { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 8px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.s-active    { background: #d1fae5; color: #065f46; } .s-active::before    { background: var(--accent); }
.s-complete  { background: #dbeafe; color: #1e40af; } .s-complete::before  { background: #3b82f6; }
.s-pending   { background: #f1f5f9; color: #64748b; } .s-pending::before   { background: #94a3b8; }
.s-cancelled { background: #fee2e2; color: #991b1b; } .s-cancelled::before { background: var(--danger); }
.s-paused    { background: #fef3c7; color: #92400e; } .s-paused::before    { background: var(--warn); }

/* Remaining pill */
.remaining-pill { font-size: 12px; color: var(--danger); font-weight: 600; background: #fee2e2; padding: 2px 8px; border-radius: 100px; display: inline-block; }

/* Stripe info */
.stripe-cell     { font-size: 12px; }
.stripe-label    { display: inline-block; background: #f0f2ff; color: #4338ca; padding: 2px 8px; border-radius: 6px; font-weight: 600; margin-bottom: 2px; }
.direct-debit    { color: #7c3aed; font-weight: 600; display: flex; align-items: center; gap: 4px; font-size: 13px; }

/* Login form */
.adm-login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a4a30, #0BA36A); }
.adm-login-card { background: #fff; border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 400px; box-shadow: var(--shadow-lg); }
.adm-login-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.adm-login-card p  { color: var(--text-muted); margin-bottom: 28px; font-size: 14px; }
.adm-login-card .input-group { margin-bottom: 18px; }
.adm-login-card label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.adm-login-card input { width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 10px; outline: none; font-size: 15px; transition: border-color .2s; }
.adm-login-card input:focus { border-color: var(--accent); }
.adm-login-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; transition: background .2s; }
.adm-login-btn:hover { background: var(--accent-dark); }
.adm-alert { padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.adm-alert-err { background: #fee2e2; color: var(--danger); }
.adm-alert-ok  { background: #d1fae5; color: #065f46; }

/* My Pledge Portal */
.portal-wrap       { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.portal-hero       { background: linear-gradient(135deg, #0a4a30, var(--accent)); border-radius: 20px; padding: 40px; margin-bottom: 28px; color: #fff; text-align: center; }
.portal-hero h1    { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.portal-hero p     { opacity: .85; }
.portal-big-ring   { margin: 24px auto; position: relative; width: 160px; height: 160px; }
.portal-big-ring svg { width: 160px; height: 160px; transform: rotate(-90deg); }
.portal-big-ring .ring-track { fill:none; stroke:rgba(255,255,255,.2); stroke-width:14; }
.portal-big-ring .ring-fill  { fill:none; stroke:#fff; stroke-width:14; stroke-linecap:round; transition: stroke-dashoffset 2s cubic-bezier(.22,1,.36,1); }
.portal-ring-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.portal-ring-pct  { font-size: 34px; font-weight: 800; color: #fff; }
.portal-ring-sub  { font-size: 13px; color: rgba(255,255,255,.75); }
.portal-card      { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; margin-bottom: 20px; }
.portal-card h2   { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.portal-stat-row  { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.portal-stat-row:last-child { border-bottom: none; }
.portal-stat-key  { font-size: 14px; color: var(--text-muted); }
.portal-stat-val  { font-size: 14px; font-weight: 600; }
.portal-payments-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.portal-payments-table th { text-align: left; padding: 8px 12px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .7px; background: var(--bg); }
.portal-payments-table td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
.portal-payments-table tr:last-child td { border-bottom: none; }
.portal-empty     { text-align: center; padding: 32px; color: var(--text-muted); }
.portal-login-card { max-width: 440px; margin: 80px auto; background: #fff; border-radius: 20px; padding: 48px 36px; box-shadow: var(--shadow-lg); }

/* Success / Cancel */
.outcome-wrap { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.outcome-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 56px 48px; max-width: 520px; width: 100%; text-align: center; }
.outcome-icon { font-size: 64px; margin-bottom: 24px; }
.outcome-card h1 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.outcome-card p  { color: var(--text-muted); font-size: 15px; max-width: 380px; margin: 0 auto 28px; line-height: 1.7; }
.outcome-ref  { display: inline-block; background: var(--accent-light); color: var(--accent); font-weight: 700; padding: 6px 18px; border-radius: 100px; font-size: 14px; margin-bottom: 28px; }
.outcome-btn  { display: inline-block; background: var(--accent); color: #fff; padding: 14px 36px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: background .2s; }
.outcome-btn:hover { background: var(--accent-dark); }
.outcome-btns { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ── Footer ──────────────────────────────────────────────────── */
.dn-footer      { background: #1e293b; padding: 32px 0; margin-top: 60px; }
.dn-footer-org  { color: rgba(255,255,255,.6); font-size: 14px; text-align: center; margin-bottom: 4px; }
.dn-footer-legal{ color: rgba(255,255,255,.35); font-size: 12px; text-align: center; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .pledge-outer        { grid-template-columns: 1fr; }
  .pledge-form-col     { grid-row: 1; }
  .pledge-visual-col   { position: static; grid-row: 2; }
  .charts-row          { grid-template-columns: 1fr; }
  .adm-sidebar         { display: none; }
  .adm-main            { margin-left: 0; }
}
@media (max-width: 768px) {
  /* Hide tall hero on mobile — scroll wastes valuable above-fold space */
  .dn-hero             { display: none; }
  /* Compact the header so form fills the viewport faster */
  .dn-header-inner     { height: 52px; }
  .dn-logo             { height: 28px; }
}
@media (max-width: 600px) {
  .pledge-card         { padding: 20px 16px; border-radius: 16px; }
  .schedule-grid       { grid-template-columns: 1fr 1fr; }
  .kpi-grid            { grid-template-columns: 1fr 1fr; }
  .two-col             { grid-template-columns: 1fr; }
  .stats-bar-inner     { flex-wrap: wrap; }
  .stat-pill           { padding: 12px 18px; flex: 1; min-width: 80px; border-right: 1px solid var(--border); }
  .stat-pill:nth-child(2n) { border-right: none; }
  .stat-pill:nth-child(3), .stat-pill:nth-child(4) { border-top: 1px solid var(--border); }
  .stat-num            { font-size: 22px; }
  .hero-title          { font-size: 36px; letter-spacing: -1px; }
  .adm-content         { padding: 16px; }
  /* Mode tabs take full width on small screens */
  .mode-tabs           { border-radius: 10px; }
  .mode-tab            { font-size: 14px; padding: 10px 12px; }
  /* Preset buttons — ensure they wrap nicely */
  .amount-presets      { gap: 6px; }
  .preset-btn          { padding: 6px 10px; font-size: 13px; min-width: 52px; }
  /* Schedule cards — tighter on mobile */
  .scard-label         { font-size: 12px; }
  /* Submit button full width */
  .submit-btn          { font-size: 15px; padding: 15px 20px; }
  /* Projection box — tighter */
  .projection-box.active { padding: 16px 18px; }
  /* Donor fields — full padding */
  .donor-info-section  { padding: 20px 0 0; }
}

/* Mobile compact banner (replaces hero on small screens) */
.mobile-banner {
  display: none;
  background: linear-gradient(135deg, #0a4a30, var(--accent));
  color: #fff;
  padding: 16px 24px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative; overflow: hidden;
}
.mobile-banner::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(60deg, rgba(255,255,255,.04) 25%, transparent 25.5%, transparent 75%, rgba(255,255,255,.04) 75%);
  background-size: 40px 70px;
  pointer-events: none;
}
.mobile-banner-name { font-weight: 800; font-size: 15px; position: relative; }
.mobile-banner-sub  { font-size: 13px; font-weight: 600; background: rgba(255,255,255,.2); padding: 5px 14px; border-radius: 100px; white-space: nowrap; position: relative; }
@media (max-width: 768px) {
  .mobile-banner { display: flex; }
}

/* ══════════════════════════════════════════════════════════════
   OUTCOME PAGES (success.php / cancel.php)
═══════════════════════════════════════════════════════════════ */
.outcome-success { border-top: 5px solid var(--accent); }
.outcome-cancel  { border-top: 5px solid var(--danger);  }
.outcome-title   { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.outcome-sub     { color: var(--text-muted); font-size: 15px; max-width: 380px; margin: 0 auto 24px; line-height: 1.7; }
.outcome-note    { color: var(--text-muted); font-size: 14px; max-width: 380px; margin: 20px auto; line-height: 1.7; }
.outcome-summary { text-align: left; background: var(--bg); border-radius: 14px; padding: 20px 24px; margin: 0 0 24px; }
.outcome-row     { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.outcome-row:last-child { border-bottom: none; }
.outcome-row strong { font-weight: 700; }
.outcome-gift-aid strong { color: var(--accent); }
.outcome-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }

/* Shared buttons */
.btn-primary  { display: inline-block; background: var(--accent); color: #fff; padding: 13px 28px; border-radius: 100px; font-weight: 700; font-size: 15px; transition: background .2s, transform .15s; text-decoration: none; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); color: #fff; }
.btn-outline  { display: inline-block; background: transparent; color: var(--accent); padding: 12px 28px; border-radius: 100px; font-weight: 700; font-size: 15px; border: 2px solid var(--accent); transition: background .2s, color .2s; text-decoration: none; }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ══════════════════════════════════════════════════════════════
   DONOR PORTAL EXTRA CLASSES (my-pledge.php)
═══════════════════════════════════════════════════════════════ */
.portal-page            { background: var(--bg); }
.portal-lookup-wrap     { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.portal-lookup-card     { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); padding: 48px 40px; max-width: 460px; width: 100%; text-align: center; }
.portal-lookup-icon     { font-size: 56px; margin-bottom: 16px; }
.portal-lookup-card h1  { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.portal-lookup-card p   { color: var(--text-muted); font-size: 15px; margin-bottom: 28px; line-height: 1.6; }
.portal-lookup-form     { text-align: left; }

.portal-header-card     { background: linear-gradient(135deg, #0a4a30, var(--accent)); border-radius: 20px; padding: 36px 40px; margin-bottom: 24px; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.portal-header-left h1  { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.portal-header-left p   { opacity: .8; font-size: 15px; margin-bottom: 12px; }
.portal-ref             { font-size: 12px; opacity: .7; margin-bottom: 10px; }
.portal-header-right    { flex-shrink: 0; }

.portal-big-ring        { position: relative; width: 160px; height: 160px; }
.portal-big-ring svg    { display: block; }
.portal-ring-center     { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.portal-ring-pct        { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.portal-ring-label      { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }

.portal-stats-grid      { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.portal-stat-card       { background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.portal-stat-label      { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 6px; }
.portal-stat-val        { font-size: 22px; font-weight: 800; color: var(--text); }

.direct-debit-card      { display: flex; align-items: center; gap: 16px; background: #f5f3ff; border-radius: 14px; padding: 18px 22px; margin-bottom: 20px; border: 1px solid #ddd6fe; }
.dd-icon                { font-size: 32px; flex-shrink: 0; }
.dd-title               { font-weight: 700; font-size: 15px; color: #5b21b6; }
.dd-sub                 { font-size: 13px; color: #7c3aed; margin-top: 2px; }
.dd-badge               { margin-left: auto; background: #7c3aed; color: #fff; padding: 4px 12px; border-radius: 100px; font-size: 12px; font-weight: 700; white-space: nowrap; }

.remaining-pill         { display: inline-block; background: #fef3c7; color: #92400e; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; }

@media (max-width: 640px) {
  .portal-header-card   { flex-direction: column; align-items: flex-start; }
  .portal-stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .portal-lookup-card   { padding: 32px 24px; }
  .outcome-card         { padding: 36px 24px; }
}
