/* ─────────────────────────────────────────────────────────────────────────────
   Amoud Foundation — Donor Portal V2
   Theme colors: Sky #00adef | Navy #000b23 | Blue #14335c | Gold #f9c700 | Red #c20008
   ───────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #000b23;
  --blue:      #14335c;
  --sky:       #00adef;
  --sky-dark:  #0776bc;
  --gold:      #f9c700;
  --gold-dark: #edb601;
  --red:       #c20008;
  --white:     #ffffff;
  --bg:        #f5f5f5;
  --card:      #ffffff;
  --border:    #dce8ef;
  --text:      #283d46;
  --muted:     #5e5f5f;
  --success:   #16a34a;
  --danger:    #b90000;
  --warning:   #d97706;
  --info:      #1b71ac;
  --radius:    6px;
  --sidebar-w: 260px;
  --sidebar-collapsed: 68px;
  --shadow:    0 3px 6px rgba(0, 0, 0, .14), 0 3px 12px rgba(0, 0, 0, .08);
  --shadow-sm: 0 1px 4px rgba(0, 0, 0, .12);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body { background: var(--bg); color: var(--text); min-height: 100vh; line-height: 1.6; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Login Layout ──────────────────────────────────────────────────────────── */
.dp-login-page {
  display: flex;
  min-height: 100vh;
}

.dp-login-left {
  display: none;
  width: 46%;
  background: var(--blue);
  position: relative;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
}
@media (min-width: 900px) { .dp-login-left { display: flex; } }

.dp-login-left img.dp-bg-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .24;
  mix-blend-mode: luminosity;
}

.dp-login-left-inner {
  position: relative; z-index: 2; text-align: center; color: var(--white);
}

.dp-login-left-inner .dp-logo-text {
  font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 6px;
}
.dp-login-logo-img {
  max-width: 200px;
  height: auto;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 6px;
}
.dp-login-left-inner .dp-portal-label {
  font-size: 14px; color: #68caf1; letter-spacing: .08em; text-transform: uppercase;
}
.dp-login-left-divider {
  width: 48px; height: 2px; background: var(--gold); margin: 28px auto;
}
.dp-login-left-quote {
  font-size: 17px; line-height: 1.8; color: rgba(255,255,255,.8);
  font-style: italic; max-width: 340px;
}
.dp-login-left-quote cite {
  display: block; margin-top: 14px; font-size: 13px;
  color: rgba(255,255,255,.5); font-style: normal;
}

.dp-login-right {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
  background: #f2f2f2;
}

.dp-login-box {
  width: 100%; max-width: 420px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--sky);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
}

.dp-login-box h1 {
  font-size: 28px; font-weight: 700; color: var(--navy); margin-bottom: 6px;
}
.dp-login-box .dp-subtitle {
  color: var(--muted); font-size: 14px; margin-bottom: 32px;
}

/* ── Toggle Tabs ─────────────────────────────────────────────────────────────*/
.dp-tab-toggle {
  display: flex; background: #ecf8ff; border: 1px solid #bdeeff; border-radius: var(--radius);
  padding: 4px; margin-bottom: 24px;
}
.dp-tab-toggle button {
  flex: 1; padding: 9px 12px; border: none; background: transparent;
  border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer;
  color: var(--muted); transition: all .2s;
}
.dp-tab-toggle button.active {
  background: var(--sky); color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ── Form Elements ──────────────────────────────────────────────────────────*/
.dp-form-group { margin-bottom: 18px; }
.dp-form-group label {
  display: block; font-size: 13px; font-weight: 600; color: var(--text);
  margin-bottom: 6px;
}
.dp-form-group label .req { color: var(--danger); }

.dp-input {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 15px; color: var(--text);
  background: var(--white); transition: border .2s, box-shadow .2s; outline: none;
}
.dp-input:focus {
  border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0,173,239,.16);
}
.dp-input:disabled { background: var(--bg); color: var(--muted); cursor: not-allowed; }

.dp-input-icon-wrap { position: relative; }
.dp-input-icon-wrap .dp-input { padding-left: 42px; }
.dp-input-icon-wrap .dp-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--muted); width: 18px; height: 18px;
}

textarea.dp-input { resize: vertical; min-height: 120px; }

.dp-char-count { font-size: 12px; color: var(--muted); text-align: right; margin-top: 4px; }

/* ── Buttons ────────────────────────────────────────────────────────────────*/
.dp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border: none; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.dp-btn-primary {
  background: var(--blue); color: var(--white);
}
.dp-btn-primary:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.dp-btn-gold {
  background: var(--gold); color: var(--navy);
}
.dp-btn-gold:hover { background: var(--gold-dark); color: var(--navy); text-decoration: none; }

.dp-btn-outline {
  background: transparent; color: var(--navy);
  border: 1px solid var(--sky);
}
.dp-btn-outline:hover { background: #ecf8ff; color: var(--navy); text-decoration: none; }

.dp-btn-danger {
  background: var(--red); color: var(--white); border: 1px solid var(--red);
}
.dp-btn-danger:hover { background: var(--navy); color: var(--white); text-decoration: none; }

.dp-btn-sm { padding: 7px 14px; font-size: 13px; border-radius: 7px; }
.dp-btn-block { width: 100%; }

.dp-btn:disabled, .dp-btn.loading {
  opacity: .6; cursor: not-allowed; pointer-events: none;
}

/* ── Alert / Error ──────────────────────────────────────────────────────────*/
.dp-alert {
  display: none; padding: 12px 16px; border-radius: 8px;
  font-size: 14px; margin-bottom: 16px; align-items: center; gap: 10px;
}
.dp-alert.show { display: flex; }
.dp-alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.dp-alert-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.dp-alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* ── OTP Input ──────────────────────────────────────────────────────────────*/
.dp-otp-input {
  text-align: center; letter-spacing: .5em; font-size: 28px; font-weight: 700;
  font-family: monospace; padding: 14px;
}

/* ── Portal Shell ───────────────────────────────────────────────────────────*/
.dp-shell {
  display: flex;
  align-items: flex-start;
  min-height: 80vh;
  background: var(--bg);
}

/* ── Sidebar ────────────────────────────────────────────────────────────────*/
.dp-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--sky);
  display: flex; flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100; transition: width .25s ease;
}
.dp-sidebar.collapsed { width: var(--sidebar-collapsed); }

.dp-sidebar-head {
  padding: 20px 20px 16px;
  border-bottom: 1px solid rgba(0,11,35,.12);
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px;
}
.dp-sidebar-logo {
  display: flex; flex-direction: column; overflow: hidden;
}
.dp-sidebar-logo .name {
  font-size: 17px; font-weight: 700; color: var(--navy);
  white-space: nowrap;
}
.dp-sidebar-logo .portal {
  font-size: 11px; color: rgba(0,11,35,.72);
  white-space: nowrap; text-transform: uppercase; letter-spacing: .08em;
}
.dp-sidebar.collapsed .dp-sidebar-logo { display: none; }

.dp-sidebar-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--navy); padding: 6px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s, background .2s; flex-shrink: 0;
}
.dp-sidebar-toggle:hover { color: var(--navy); background: rgba(255,255,255,.42); }

.dp-sidebar-donor {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,11,35,.12);
  display: flex; align-items: center; gap: 12px;
  overflow: hidden;
}
.dp-sidebar.collapsed .dp-sidebar-donor { justify-content: center; padding: 14px 0; }
.dp-donor-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.dp-donor-name {
  overflow: hidden;
}
.dp-donor-name .fullname {
  font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dp-donor-name .label {
  font-size: 11px; color: rgba(0,11,35,.68);
}
.dp-sidebar.collapsed .dp-donor-name { display: none; }

.dp-sidebar-nav {
  flex: 1; padding: 12px 10px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
}

.dp-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 8px;
  color: var(--navy); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s; text-decoration: none;
  white-space: nowrap; overflow: hidden;
}
.dp-nav-item svg { flex-shrink: 0; width: 19px; height: 19px; }
.dp-nav-item:hover { background: rgba(255,255,255,.35); color: var(--navy); text-decoration: none; }
.dp-nav-item.active { background: var(--gold); color: var(--navy); font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.dp-nav-item.active:hover { background: var(--gold-dark); }
.dp-sidebar.collapsed .dp-nav-item { justify-content: center; padding: 11px 0; }
.dp-sidebar.collapsed .dp-nav-label { display: none; }

.dp-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(0,11,35,.12);
}
.dp-sidebar.collapsed .dp-sidebar-footer { padding: 16px 0; display: flex; justify-content: center; }

.dp-logout-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px;
  background: var(--red); color: var(--white);
  border: 1px solid var(--red);
  font-size: 14px; font-weight: 500; cursor: pointer;
  width: 100%; transition: all .2s;
}
.dp-logout-btn:hover { background: var(--navy); color: var(--white); }
.dp-sidebar.collapsed .dp-logout-btn { width: 40px; height: 40px; justify-content: center; padding: 0; }
.dp-sidebar.collapsed .dp-logout-label { display: none; }

/* ── Main Content ───────────────────────────────────────────────────────────*/
.dp-main {
  flex: 1;
  display: flex; flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.dp-topbar {
  background: var(--white); border-bottom: 3px solid var(--sky);
  padding: 16px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.dp-topbar h1 { font-size: 20px; font-weight: 700; color: var(--navy); }
.dp-topbar .dp-topbar-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }

.dp-content { padding: 28px; flex: 1; }
.dp-content-header { margin-bottom: 24px; }
.dp-content-header h2 { font-size: 22px; font-weight: 700; color: var(--navy); }
.dp-content-header p { font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ── Cards ──────────────────────────────────────────────────────────────────*/
.dp-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.dp-card-header {
  padding: 18px 22px 14px; border-bottom: 1px solid var(--border);
  border-top: 3px solid var(--sky);
  display: flex; align-items: center; justify-content: space-between;
}
.dp-card-header h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.dp-card-header p  { font-size: 13px; color: var(--muted); margin-top: 3px; }
.dp-card-body { padding: 22px; }

/* ── Stats Grid ─────────────────────────────────────────────────────────────*/
.dp-stats-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 24px;
}
.dp-stat-card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--border); border-top: 4px solid var(--sky); padding: 20px 22px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s;
}
.dp-stat-card:hover { box-shadow: var(--shadow); }
.dp-stat-card .dp-stat-label {
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px;
  display: flex; align-items: center; gap: 7px;
}
.dp-stat-card .dp-stat-value {
  font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1.1;
}
.dp-stat-card .dp-stat-sub {
  font-size: 12px; color: var(--muted); margin-top: 4px;
}
.dp-stat-icon {
  width: 30px; height: 30px; border-radius: 6px;
  background: #ecf8ff; display: flex;
  align-items: center; justify-content: center;
}
.dp-stat-icon svg { width: 16px; height: 16px; color: var(--navy); }

/* ── Tables ─────────────────────────────────────────────────────────────────*/
.dp-table-wrap { overflow-x: auto; }
table.dp-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
table.dp-table thead th {
  padding: 11px 16px; text-align: left;
  font-size: 12px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .05em;
  background: #ecf8ff; border-bottom: 1px solid var(--border);
}
table.dp-table tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
table.dp-table tbody tr:last-child { border-bottom: none; }
table.dp-table tbody tr:hover { background: var(--bg); }
table.dp-table tbody td { padding: 13px 16px; color: var(--text); }
table.dp-table .mono { font-family: monospace; font-size: 13px; }

/* ── Badges ─────────────────────────────────────────────────────────────────*/
.dp-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600;
}
.dp-badge-success  { background: #dcfce7; color: #15803d; }
.dp-badge-danger   { background: #fee2e2; color: #dc2626; }
.dp-badge-warning  { background: #fef3c7; color: #92400e; }
.dp-badge-info     { background: #dbeafe; color: #1d4ed8; }
.dp-badge-neutral  { background: #f1f5f9; color: #475569; }
.dp-badge-navy     { background: var(--blue); color: var(--white); }

/* ── Search bar ─────────────────────────────────────────────────────────────*/
.dp-search-wrap { position: relative; margin-bottom: 18px; }
.dp-search-wrap svg {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%); color: var(--muted); width: 17px; height: 17px;
}
.dp-search-wrap .dp-input { padding-left: 40px; }

/* ── Form Grid ──────────────────────────────────────────────────────────────*/
.dp-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.dp-form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .dp-form-grid { grid-template-columns: 1fr; } }

.dp-form-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border);
}

/* ── Payment Method Card ────────────────────────────────────────────────────*/
.dp-pm-card {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 16px 18px; display: flex;
  align-items: center; justify-content: space-between;
  margin-bottom: 12px; transition: border .2s, box-shadow .2s;
  gap: 12px;
}
.dp-pm-card.default-card { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(255,206,34,.2); }
.dp-pm-card-info { display: flex; align-items: center; gap: 14px; }
.dp-pm-brand {
  width: 44px; height: 30px; border-radius: 5px;
  background: var(--bg); display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--navy); border: 1px solid var(--border);
  text-transform: uppercase;
}
.dp-pm-details .dp-pm-number { font-size: 15px; font-weight: 600; color: var(--text); }
.dp-pm-details .dp-pm-expiry { font-size: 12px; color: var(--muted); }
.dp-pm-actions { display: flex; gap: 8px; align-items: center; }

/* ── Recurring Donation Item ─────────────────────────────────────────────────*/
.dp-schedule-item {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 18px 20px; margin-bottom: 14px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.dp-schedule-item-info { flex: 1; }
.dp-schedule-item-info .dp-schedule-campaign {
  font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.dp-schedule-meta {
  font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px;
}
.dp-schedule-meta span { display: flex; align-items: center; gap: 5px; }
.dp-schedule-actions { display: flex; gap: 8px; }

/* ── Receipt Row ────────────────────────────────────────────────────────────*/
.dp-receipt-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--border); gap: 16px;
}
.dp-receipt-row:last-child { border-bottom: none; }
.dp-receipt-row-info { display: flex; align-items: center; gap: 14px; }
.dp-receipt-icon {
  width: 46px; height: 46px; border-radius: 10px;
  background: #ecf8ff; display: flex;
  align-items: center; justify-content: center;
}
.dp-receipt-icon svg { width: 22px; height: 22px; color: var(--blue); }
.dp-receipt-year { font-size: 15px; font-weight: 600; color: var(--navy); }
.dp-receipt-meta { font-size: 13px; color: var(--muted); }

/* ── Empty State ────────────────────────────────────────────────────────────*/
.dp-empty {
  text-align: center; padding: 56px 24px;
}
.dp-empty svg { width: 52px; height: 52px; color: var(--border); margin-bottom: 16px; }
.dp-empty h4 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.dp-empty p  { font-size: 14px; color: var(--muted); }

/* ── Loader ─────────────────────────────────────────────────────────────────*/
.dp-spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%; animation: dp-spin .65s linear infinite;
}
@keyframes dp-spin { to { transform: rotate(360deg); } }

.dp-page-loader {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px; color: var(--muted); gap: 12px;
}
.dp-page-loader img.dp-gif-loader {
  width: 90px; opacity: .9;
}

/* ── Top nav progress bar ────────────────────────────────────────────────────*/
#dp-nav-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--sky); z-index: 9999;
  transition: width .25s ease, opacity .4s ease;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px var(--sky);
  pointer-events: none; opacity: 0;
}
#dp-nav-bar.dp-bar-active { opacity: 1; }
.dp-page-loader .dp-spinner { border-color: var(--border); border-top-color: var(--blue); }

/* ── Toast ──────────────────────────────────────────────────────────────────*/
#dp-toast-container {
  position: fixed; bottom: 24px; right: 24px;
  display: flex; flex-direction: column; gap: 10px; z-index: 9999;
}
.dp-toast {
  padding: 14px 18px; border-radius: 10px; font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,.15); max-width: 340px;
  animation: dp-toast-in .3s ease; display: flex; align-items: center; gap: 10px;
}
.dp-toast-success { background: #166534; color: #fff; }
.dp-toast-error   { background: #991b1b; color: #fff; }
.dp-toast-info    { background: var(--blue); color: #fff; }
@keyframes dp-toast-in { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }

/* ── Stripe Elements ────────────────────────────────────────────────────────*/
.dp-stripe-element {
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--white); min-height: 46px;
}
.dp-stripe-element.StripeElement--focus { border-color: var(--sky); box-shadow: 0 0 0 3px rgba(0,173,239,.16); }

/* ── Dialog ─────────────────────────────────────────────────────────────────*/
.dp-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.45); z-index: 200;
  align-items: center; justify-content: center;
}
.dp-overlay.show { display: flex; }
.dp-dialog {
  background: var(--white); border-radius: 14px;
  padding: 28px; width: 100%; max-width: 440px;
  box-shadow: 0 16px 48px rgba(0,0,0,.2); margin: 16px;
}
.dp-dialog h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.dp-dialog p  { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.dp-dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }

/* ── Feedback ───────────────────────────────────────────────────────────────*/
.dp-feedback-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 24px;
}
@media (max-width: 800px) { .dp-feedback-grid { grid-template-columns: 1fr; } }

.dp-contact-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px;
}
.dp-contact-item svg { width: 18px; height: 18px; color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.dp-contact-item .dp-contact-label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dp-contact-item .dp-contact-value { font-size: 14px; color: var(--text); margin-top: 2px; }

/* ══════════════════════════════════════════════════════════════════════════════
   RESPONSIVE SYSTEM — Complete mobile-first rewrite
   Breakpoints: 480 | 640 | 768 | 1024
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Sidebar backdrop overlay ────────────────────────────────────────────────*/
.dp-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 39, .52);
  z-index: 998;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.dp-sidebar-backdrop.show { display: block; }

/* ── Mobile toggle button ────────────────────────────────────────────────────*/
.dp-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--dp-line, #dde8ef);
  background: #fff;
  cursor: pointer;
  margin-right: 10px;
  flex-shrink: 0;
  color: var(--dp-ink, #071527);
}
.dp-mobile-toggle svg { width: 20px; height: 20px; }

/* ── Sidebar close button (mobile only) ─────────────────────────────────────*/
.dp-sidebar-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  cursor: pointer;
  flex-shrink: 0;
}
.dp-sidebar-close svg { width: 18px; height: 18px; }
.dp-sidebar-close:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ════════════════════════════════════════════════════════════════
   ≤ 1024px  — Tablet landscape: collapse sidebar by default
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .dp-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   ≤ 768px  — Tablet portrait & mobile: sidebar off-canvas
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Mobile toggle visible, desktop collapse toggle hidden */
  .dp-mobile-toggle { display: flex; }
  .dp-sidebar-close { display: flex; }
  .dp-sidebar-toggle { display: none !important; }

  /* Sidebar — hidden off-screen (slide-in on open) */
  .dp-sidebar,
  .dp-sidebar.collapsed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 999 !important;
    transform: translateX(-100%) !important;
    transition: transform .28s cubic-bezier(.4,0,.2,1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  /* Sidebar open state */
  .dp-sidebar.mobile-open {
    transform: translateX(0) !important;
    box-shadow: 8px 0 40px rgba(7,21,39,.28) !important;
  }

  /* Collapsed states irrelevant on mobile — always show full sidebar */
  .dp-sidebar.collapsed .dp-sidebar-logo,
  .dp-sidebar.collapsed .dp-donor-name,
  .dp-sidebar.collapsed .dp-nav-label,
  .dp-sidebar.collapsed .dp-logout-label {
    display: flex !important;
  }
  .dp-sidebar.collapsed .dp-sidebar-logo { display: flex !important; flex-direction: column !important; }
  .dp-sidebar.collapsed .dp-donor-name   { display: block !important; }
  .dp-sidebar.collapsed .dp-nav-label    { display: inline !important; }
  .dp-sidebar.collapsed .dp-logout-label { display: inline !important; }

  .dp-sidebar.collapsed .dp-nav-item     { justify-content: flex-start !important; padding: 10px 12px !important; }
  .dp-sidebar.collapsed .dp-sidebar-donor { justify-content: flex-start !important; padding: 12px 16px !important; margin: 14px 16px !important; }
  .dp-sidebar.collapsed .dp-sidebar-top-action { padding: 12px 14px !important; }
  .dp-sidebar.collapsed .dp-logout-btn   { width: 100% !important; height: auto !important; padding: 9px 12px !important; }
  .dp-sidebar.collapsed .dp-sidebar-nav  { padding: 0 12px 16px !important; }

  /* Main content — full width */
  .dp-main { min-width: 0 !important; width: 100% !important; }

  /* Topbar */
  .dp-topbar {
    padding: 12px 14px !important;
    min-height: 60px !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .dp-topbar > div {
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .dp-topbar h1 {
    font-size: 16px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .dp-topbar .dp-topbar-sub { font-size: 11px !important; }

  /* Content area */
  .dp-content { padding: 14px !important; }

  /* Stats — 1 column on mobile */
  .dp-stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .dp-stat-card { padding: 14px 14px !important; min-height: auto !important; }
  .dp-stat-card .dp-stat-value { font-size: 20px !important; }
  .dp-stat-card .dp-stat-label { font-size: 10px !important; gap: 5px !important; }
  .dp-stat-icon { width: 24px !important; height: 24px !important; }
  .dp-stat-icon svg { width: 13px !important; height: 13px !important; }

  /* Cards */
  .dp-card-header {
    padding: 12px 14px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    min-height: auto !important;
  }
  .dp-card-body { padding: 14px !important; }

  /* Tables */
  .dp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table.dp-table thead th { padding: 9px 10px !important; font-size: 10px !important; white-space: nowrap; }
  table.dp-table tbody td { padding: 10px 10px !important; font-size: 13px !important; }
  table.dp-table .mono    { font-size: 11px !important; }

  /* Form grid — single column */
  .dp-form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .dp-form-actions {
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  .dp-form-actions .dp-btn { width: 100% !important; justify-content: center !important; }

  /* Toast — full-width at bottom */
  #dp-toast-container {
    left: 12px !important;
    right: 12px !important;
    bottom: 16px !important;
  }
  .dp-toast { max-width: 100% !important; }

  /* Dialog */
  .dp-dialog {
    padding: 20px 16px !important;
    margin: 12px !important;
    border-radius: 12px !important;
  }
  .dp-dialog-actions {
    flex-direction: column-reverse !important;
    gap: 8px !important;
  }
  .dp-dialog-actions .dp-btn { width: 100% !important; justify-content: center !important; }

  /* Recurring schedule items */
  .dp-schedule-item {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .dp-schedule-actions { flex-wrap: wrap !important; }

  /* Receipt rows */
  .dp-receipt-row {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  /* Feedback grid */
  .dp-feedback-grid { grid-template-columns: 1fr !important; }

  /* Search bar full width */
  .dp-search-wrap { max-width: 100% !important; }
}

/* ════════════════════════════════════════════════════════════════
   ≤ 480px  — Small phones
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* Stats — single column on very small */
  .dp-stats-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .dp-stat-card { padding: 14px 16px !important; min-height: auto !important; }

  /* Topbar title shorter */
  .dp-topbar h1 { font-size: 14px !important; }

  /* Content tighter */
  .dp-content { padding: 10px !important; }

  /* Card header buttons stack */
  .dp-card-header { align-items: flex-start !important; }

  /* PM grid single col */
  .dp-pm-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* PM visual smaller */
  .dp-pm-visual { min-height: 100px !important; padding: 14px 16px 12px !important; }
  .dp-pm-visual-num { font-size: 13px !important; letter-spacing: .12em !important; }
  .dp-pm-logo svg { height: 20px !important; }

  /* Login box tighter */
  .dp-login-box { padding: 20px 14px !important; }
  .dp-login-box h1 { font-size: 22px !important; }
}

/* Sleek portal refresh */
:root {
  --portal-ink: #000b23;
  --portal-navy: #14335c;
  --portal-cyan: #00adef;
  --portal-cyan-soft: #e8f8fe;
  --portal-gold: #f9c700;
  --portal-red: #c20008;
  --portal-line: #e6edf2;
  --portal-page: #f6f8fa;
  --portal-shadow: 0 10px 28px rgba(0, 11, 35, .08);
}

body {
  background: var(--portal-page);
}

.dp-login-page {
  min-height: calc(100vh - 0px);
  background: var(--portal-page);
}

.dp-login-left {
  background: linear-gradient(145deg, #000b23 0%, #14335c 100%);
  width: 44%;
}

.dp-login-left::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 11, 35, .72), rgba(0, 11, 35, .88)),
    url("https://www.amoudfoundation.org/wp-content/uploads/2021/09/islamic-bg.png");
  background-size: cover;
  opacity: .95;
}

.dp-login-left img.dp-bg-img {
  opacity: .16;
  mix-blend-mode: normal;
}

.dp-login-left-inner {
  max-width: 380px;
}

.dp-login-left-inner .dp-logo-text {
  color: var(--portal-gold);
  font-size: 30px;
  letter-spacing: 0;
}

.dp-login-left-inner .dp-portal-label {
  color: #68caf1;
  font-size: 13px;
  font-weight: 700;
}

.dp-login-left-divider {
  width: 54px;
  height: 3px;
  border-radius: 99px;
  background: var(--portal-gold);
  margin: 28px auto;
}

.dp-login-left-quote {
  color: rgba(255,255,255,.88);
  font-size: 16px;
}

.dp-login-left-quote cite {
  color: rgba(255,255,255,.58);
}

.dp-login-right {
  background:
    radial-gradient(circle at top right, rgba(0, 173, 239, .08), transparent 34%),
    var(--portal-page);
  align-items: center;
}

.dp-login-box {
  max-width: 430px;
  padding: 34px;
  border: 1px solid var(--portal-line);
  border-top: 4px solid var(--portal-cyan);
  border-radius: 8px;
  box-shadow: var(--portal-shadow);
}

.dp-login-box h1 {
  margin: 0 0 4px;
  color: var(--portal-ink);
  font-size: 27px;
  letter-spacing: 0;
}

.dp-login-box .dp-subtitle {
  margin-bottom: 28px;
}

.dp-tab-toggle {
  background: #f3f7fa;
  border: 1px solid #d8eef8;
  border-radius: 7px;
}

.dp-tab-toggle button {
  color: var(--portal-navy);
  font-weight: 700;
}

.dp-tab-toggle button.active {
  background: var(--portal-cyan);
  color: var(--portal-ink);
  box-shadow: none;
}

.dp-alert {
  border-radius: 7px;
  line-height: 1.5;
}

.dp-alert.show {
  display: flex;
}

.dp-otp-notice {
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.dp-otp-notice span {
  display: block;
  min-width: 0;
}

.dp-otp-notice strong {
  color: #004ed0;
  overflow-wrap: anywhere;
}

.dp-alert-info {
  background: #eef7ff;
  border-color: #b7dfff;
  color: #14335c;
}

.dp-input {
  height: 46px;
  border: 1px solid #d9e4ec;
  border-radius: 6px;
}

.dp-input:focus {
  border-color: var(--portal-cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, .14);
}

.dp-otp-input {
  font-family: Consolas, Monaco, monospace;
  letter-spacing: .35em;
  font-size: 25px;
  padding-left: calc(14px + .35em);
}

.dp-btn {
  min-height: 42px;
  border-radius: 6px;
  box-shadow: none;
}

.dp-btn-primary {
  background: var(--portal-navy);
}

.dp-btn-primary:hover {
  background: var(--portal-ink);
}

.dp-btn-gold {
  background: var(--portal-gold);
  color: var(--portal-ink);
}

.dp-shell {
  background: var(--portal-page);
}

.dp-sidebar {
  background: linear-gradient(180deg, #000b23 0%, #102b4d 100%);
  border-right: 1px solid rgba(255,255,255,.08);
  box-shadow: 8px 0 24px rgba(0, 11, 35, .08);
}

.dp-sidebar-head {
  min-height: 76px;
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,.09);
}

.dp-sidebar-logo .name {
  color: var(--portal-gold);
  font-size: 16px;
}

.dp-sidebar-logo .portal {
  color: #68caf1;
  font-size: 10px;
  font-weight: 700;
}

.dp-sidebar-toggle {
  color: rgba(255,255,255,.72);
}

.dp-sidebar-toggle:hover {
  color: #fff;
  background: rgba(255,255,255,.1);
}

.dp-sidebar-top-action {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dp-sidebar.collapsed .dp-sidebar-top-action {
  padding: 12px 0;
  display: flex;
  justify-content: center;
}

.dp-sidebar-donor {
  margin: 14px;
  padding: 12px;
  border: 1px solid rgba(104, 202, 241, .2);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}

.dp-sidebar.collapsed .dp-sidebar-donor {
  margin: 12px 8px;
  padding: 10px 0;
}

.dp-donor-avatar {
  background: var(--portal-cyan);
  color: var(--portal-ink);
}

.dp-donor-name .fullname {
  color: #fff;
}

.dp-donor-name .label {
  color: rgba(255,255,255,.5);
}

.dp-sidebar-nav {
  padding: 2px 12px 16px;
  gap: 4px;
}

.dp-nav-item {
  position: relative;
  color: rgba(255,255,255,.72);
  border-radius: 7px;
  font-weight: 600;
  padding: 11px 12px;
}

.dp-nav-item:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.dp-nav-item.active {
  background: rgba(0, 173, 239, .16);
  color: #fff;
  box-shadow: none;
}

.dp-nav-item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 99px;
  background: var(--portal-gold);
}

.dp-sidebar.collapsed .dp-nav-item.active::before {
  left: 6px;
}

.dp-logout-btn {
  background: rgba(194, 0, 8, .12);
  border: 1px solid rgba(194, 0, 8, .38);
  color: #ffd2d2;
  font-weight: 700;
}

.dp-logout-btn:hover {
  background: var(--portal-red);
  border-color: var(--portal-red);
  color: #fff;
}

.dp-sidebar-footer {
  border-top: 0;
  padding: 0;
}

.dp-topbar {
  border-bottom: 1px solid var(--portal-line);
  box-shadow: 0 1px 0 rgba(0, 11, 35, .03);
}

.dp-content {
  padding: 30px;
}

.dp-card,
.dp-stat-card {
  border: 1px solid var(--portal-line);
  border-radius: 8px;
  box-shadow: var(--portal-shadow);
}

.dp-card-header {
  border-top: 0;
  border-bottom: 1px solid var(--portal-line);
}

.dp-stat-card {
  border-top: 3px solid var(--portal-cyan);
}

.dp-stat-icon,
.dp-receipt-icon {
  background: var(--portal-cyan-soft);
}

table.dp-table thead th {
  background: #f7fbfd;
}

@media (max-width: 900px) {
  .dp-login-page {
    min-height: auto;
  }

  .dp-login-right {
    min-height: 100vh;
  }
}

@media (max-width: 520px) {
  .dp-login-right {
    padding: 22px 14px;
  }

  .dp-login-box {
    padding: 24px 18px;
  }

  .dp-otp-input {
    font-size: 22px;
    letter-spacing: .25em;
    padding-left: calc(14px + .25em);
  }
}

/* White sidebar refinement */
.dp-sidebar {
  background: #fff;
  border-right: 1px solid var(--dp-line);
  box-shadow: 6px 0 24px rgba(7, 21, 39, .04);
}

.dp-sidebar-head {
  border-bottom: 1px solid var(--dp-line);
  background: #fff;
}

.dp-sidebar-logo .name {
  color: var(--dp-ink);
}

.dp-sidebar-logo .portal {
  color: var(--dp-cyan-2);
}

.dp-sidebar-toggle {
  color: var(--dp-muted);
  border: 1px solid var(--dp-line);
  background: #fff;
}

.dp-sidebar-toggle:hover {
  color: var(--dp-ink);
  background: var(--dp-cyan-soft);
  border-color: #bfeafa;
}

.dp-sidebar-top-action {
  border-bottom: 0;
}

.dp-sidebar-donor {
  border: 1px solid var(--dp-line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.dp-donor-avatar {
  background: var(--dp-cyan-soft);
  color: var(--dp-blue);
  border: 1px solid #bfeafa;
}

.dp-donor-name .fullname {
  color: var(--dp-ink);
}

.dp-donor-name .label {
  color: var(--dp-muted);
}

.dp-nav-item {
  color: var(--dp-muted);
}

.dp-nav-item:hover {
  background: var(--dp-cyan-soft);
  color: var(--dp-blue);
}

.dp-nav-item.active {
  background: var(--dp-blue);
  color: #fff;
}

.dp-nav-item.active::before {
  background: var(--dp-gold);
}

.dp-logout-btn {
  background: #fff;
  border-color: #f1c8c8;
  color: var(--dp-red);
}

.dp-logout-btn:hover {
  background: var(--dp-red);
  border-color: var(--dp-red);
  color: #fff;
}

.dp-sidebar.collapsed .dp-sidebar-donor {
  border-color: var(--dp-line);
}

/* Complete donor portal redesign */
:root {
  --dp-ink: #071527;
  --dp-ink-2: #102a43;
  --dp-blue: #14335c;
  --dp-cyan: #00adef;
  --dp-cyan-2: #0776bc;
  --dp-cyan-soft: #edf9fd;
  --dp-gold: #f9c700;
  --dp-red: #c20008;
  --dp-page: #f4f7f9;
  --dp-surface: #ffffff;
  --dp-surface-2: #f8fbfd;
  --dp-line: #dde8ef;
  --dp-text: #1f2f3d;
  --dp-muted: #667786;
  --dp-shadow-soft: 0 1px 2px rgba(7, 21, 39, .05), 0 14px 36px rgba(7, 21, 39, .08);
  --dp-shadow-card: 0 1px 2px rgba(7, 21, 39, .04), 0 8px 22px rgba(7, 21, 39, .06);
  --dp-radius: 8px;
}

.dp-login-page,
.dp-shell,
.dp-dialog,
.dp-toast,
.dp-btn,
.dp-input,
.dp-card,
.dp-sidebar {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Login */
.dp-login-page {
  min-height: 100vh;
  background: var(--dp-page);
}

.dp-login-left {
  width: 42%;
  min-width: 420px;
  background: var(--dp-ink);
  padding: 56px;
}

.dp-login-left::after {
  background:
    linear-gradient(145deg, rgba(7, 21, 39, .86), rgba(20, 51, 92, .92)),
    url("https://www.amoudfoundation.org/wp-content/uploads/2021/09/islamic-bg.png");
  background-size: 420px auto;
  background-repeat: repeat;
}

.dp-login-left img.dp-bg-img {
  opacity: .1;
}

.dp-login-left-inner {
  text-align: left;
  width: 100%;
  max-width: 430px;
}

.dp-login-left-inner .dp-logo-text {
  font-size: 34px;
  line-height: 1.12;
  color: #fff;
}

.dp-login-left-inner .dp-logo-text::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--dp-gold);
}

.dp-login-left-inner .dp-portal-label {
  color: var(--dp-cyan);
  margin-top: 14px;
  letter-spacing: .12em;
}

.dp-login-left-divider {
  display: none;
}

.dp-login-left-quote {
  margin-top: 86px;
  max-width: 390px;
  color: rgba(255,255,255,.82);
  font-size: 18px;
  line-height: 1.75;
}

.dp-login-left-quote cite {
  margin-top: 20px;
  color: rgba(255,255,255,.56);
}

.dp-login-right {
  background:
    linear-gradient(180deg, #fff 0%, var(--dp-page) 100%);
  padding: 44px 24px;
}

.dp-login-box {
  max-width: 456px;
  padding: 38px;
  border: 1px solid var(--dp-line);
  border-top: 0;
  border-radius: 10px;
  box-shadow: var(--dp-shadow-soft);
  position: relative;
}

.dp-login-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 10px 10px 0 0;
  background: var(--dp-cyan);
}

.dp-login-box h1 {
  font-size: 30px;
  color: var(--dp-ink);
}

.dp-login-box .dp-subtitle {
  color: var(--dp-muted);
}

.dp-tab-toggle {
  gap: 4px;
  padding: 4px;
  background: var(--dp-surface-2);
  border-color: var(--dp-line);
}

.dp-tab-toggle button {
  min-height: 36px;
  color: var(--dp-muted);
}

.dp-tab-toggle button.active {
  background: var(--dp-ink);
  color: #fff;
}

.dp-form-group label {
  color: var(--dp-ink-2);
}

.dp-input {
  border-color: var(--dp-line);
  color: var(--dp-text);
  background: #fff;
}

.dp-input:focus {
  border-color: var(--dp-cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, .13);
}

.dp-btn {
  min-height: 44px;
  font-weight: 700;
}

.dp-btn-primary {
  background: var(--dp-ink);
}

.dp-btn-primary:hover {
  background: var(--dp-blue);
}

.dp-btn-gold {
  background: var(--dp-gold);
  color: var(--dp-ink);
}

.dp-btn-outline {
  color: var(--dp-blue);
  border-color: var(--dp-line);
  background: #fff;
}

.dp-btn-outline:hover {
  border-color: var(--dp-cyan);
  background: var(--dp-cyan-soft);
}

.dp-btn-danger {
  background: #fff5f5;
  color: var(--dp-red);
  border-color: #ffd5d5;
}

.dp-btn-danger:hover {
  background: var(--dp-red);
  border-color: var(--dp-red);
  color: #fff;
}

.dp-otp-notice {
  display: flex;
  flex-wrap: nowrap;
  background: var(--dp-cyan-soft);
  border-color: #bfeafa;
  color: var(--dp-blue);
}

.dp-otp-notice span {
  line-height: 1.55;
}

.dp-otp-input {
  height: 54px;
  border-width: 2px;
  border-color: var(--dp-cyan);
  color: var(--dp-ink);
  background: #fff;
}

/* App Shell */
.dp-shell {
  min-height: 100vh;
  background: var(--dp-page);
}

.dp-main {
  min-height: 100vh;
  background: var(--dp-page);
}

.dp-sidebar {
  width: 272px;
  background: var(--dp-ink);
  border-right: 0;
  box-shadow: none;
}

.dp-sidebar.collapsed {
  width: 76px;
}

.dp-sidebar-head {
  min-height: 78px;
  padding: 22px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.dp-sidebar-logo .name {
  color: #fff;
  font-size: 17px;
  line-height: 1.2;
}

.dp-sidebar-logo .portal {
  color: var(--dp-cyan);
  margin-top: 4px;
}

.dp-sidebar-toggle {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: rgba(255,255,255,.72);
}

.dp-sidebar-toggle:hover {
  background: rgba(255,255,255,.09);
}

.dp-sidebar-top-action {
  padding: 14px 16px 4px;
}

.dp-logout-btn {
  min-height: 40px;
  padding: 9px 12px;
  background: rgba(194, 0, 8, .14);
  border-color: rgba(194, 0, 8, .34);
  color: #ffd6d6;
  border-radius: 8px;
}

.dp-logout-btn:hover {
  background: var(--dp-red);
  border-color: var(--dp-red);
}

.dp-sidebar.collapsed .dp-sidebar-top-action {
  padding: 14px 0 4px;
}

.dp-sidebar.collapsed .dp-logout-btn {
  width: 42px;
  height: 42px;
  padding: 0;
}

.dp-sidebar-donor {
  margin: 14px 16px 18px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.045);
  border-radius: 10px;
}

.dp-donor-avatar {
  width: 40px;
  height: 40px;
  background: var(--dp-cyan);
}

.dp-donor-name .fullname {
  color: #fff;
  font-size: 13px;
}

.dp-donor-name .label {
  color: rgba(255,255,255,.48);
}

.dp-sidebar-nav {
  padding: 0 12px 18px;
  gap: 3px;
}

.dp-nav-item {
  min-height: 44px;
  padding: 10px 12px;
  color: rgba(255,255,255,.68);
  border-radius: 8px;
  font-size: 13px;
}

.dp-nav-item svg {
  width: 18px;
  height: 18px;
}

.dp-nav-item:hover {
  background: rgba(255,255,255,.075);
  color: #fff;
}

.dp-nav-item.active {
  background: #fff;
  color: var(--dp-ink);
  box-shadow: none;
}

.dp-nav-item.active::before {
  left: 7px;
  top: 13px;
  bottom: 13px;
  width: 3px;
  background: var(--dp-gold);
}

.dp-sidebar.collapsed .dp-nav-item {
  padding: 10px 0;
}

.dp-sidebar.collapsed .dp-nav-item.active::before {
  left: 9px;
}

.dp-sidebar-footer {
  margin-top: auto;
}

/* Main pages */
.dp-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 76px;
  padding: 18px 32px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--dp-line);
  backdrop-filter: blur(12px);
}

.dp-topbar h1 {
  margin: 0;
  color: var(--dp-ink);
  font-size: 23px;
  line-height: 1.2;
}

.dp-topbar .dp-topbar-sub {
  color: var(--dp-muted);
}

.dp-content {
  padding: 32px;
}

.dp-card {
  overflow: hidden;
  background: var(--dp-surface);
  border: 1px solid var(--dp-line);
  border-radius: var(--dp-radius);
  box-shadow: var(--dp-shadow-card);
}

.dp-card-header {
  min-height: 64px;
  padding: 18px 22px;
  border-top: 0;
  border-bottom: 1px solid var(--dp-line);
  background: #fff;
}

.dp-card-header h3 {
  color: var(--dp-ink);
  font-size: 16px;
}

.dp-card-header p {
  color: var(--dp-muted);
}

.dp-card-body {
  padding: 22px;
}

.dp-stats-grid {
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 18px;
}

.dp-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 136px;
  padding: 22px;
  border: 1px solid var(--dp-line);
  border-top: 0;
  border-radius: var(--dp-radius);
  background: #fff;
  box-shadow: var(--dp-shadow-card);
}

.dp-stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: var(--dp-cyan);
}

.dp-stat-card .dp-stat-label {
  color: var(--dp-muted);
  letter-spacing: .04em;
}

.dp-stat-card .dp-stat-value {
  color: var(--dp-ink);
  font-size: 28px;
}

.dp-stat-icon {
  background: var(--dp-cyan-soft);
}

.dp-table-wrap {
  border-radius: 0 0 var(--dp-radius) var(--dp-radius);
}

table.dp-table {
  margin: 0;
}

table.dp-table thead th {
  background: var(--dp-surface-2);
  color: var(--dp-muted);
  border-bottom: 1px solid var(--dp-line);
}

table.dp-table tbody tr {
  border-bottom: 1px solid var(--dp-line);
}

table.dp-table tbody tr:hover {
  background: #fbfdfe;
}

table.dp-table tbody td {
  color: var(--dp-text);
}

.dp-badge {
  border-radius: 999px;
  font-size: 11px;
}

.dp-badge-navy {
  background: var(--dp-blue);
}

.dp-search-wrap {
  max-width: 420px;
}

.dp-form-grid {
  gap: 18px 20px;
}

.dp-form-actions {
  border-top-color: var(--dp-line);
}

.dp-pm-card,
.dp-schedule-item,
.dp-receipt-row {
  border-color: var(--dp-line);
}

.dp-pm-card {
  border-radius: 8px;
  background: #fff;
}

.dp-pm-card.default-card {
  border-color: var(--dp-cyan);
  box-shadow: 0 0 0 3px rgba(0, 173, 239, .1);
}

.dp-pm-brand {
  background: var(--dp-surface-2);
  color: var(--dp-blue);
  border-color: var(--dp-line);
}

.dp-schedule-item {
  border-radius: 8px;
  background: #fff;
}

.dp-schedule-item-info .dp-schedule-campaign {
  color: var(--dp-ink);
}

.dp-receipt-icon {
  background: var(--dp-cyan-soft);
}

.dp-empty {
  color: var(--dp-muted);
}

.dp-dialog {
  border-radius: 10px;
  border: 1px solid var(--dp-line);
  box-shadow: 0 24px 70px rgba(7, 21, 39, .2);
}

.dp-dialog h3 {
  color: var(--dp-ink);
}

.dp-overlay {
  background: rgba(7, 21, 39, .55);
}

.dp-feedback-grid {
  align-items: start;
}

.dp-contact-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--dp-line);
}

.dp-contact-item:last-child {
  border-bottom: 0;
}

.dp-contact-item svg {
  color: var(--dp-cyan-2);
}

/* Responsive redesign */
@media (max-width: 1200px) {
  .dp-stats-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 900px) {
  .dp-login-left {
    display: none;
  }

  .dp-login-right {
    min-height: 100vh;
  }
}

@media (max-width: 768px) {
  .dp-sidebar {
    width: 280px !important;
  }

  .dp-sidebar.mobile-open {
    box-shadow: 0 20px 70px rgba(0, 0, 0, .32);
  }

  .dp-topbar {
    padding: 16px 18px;
  }

  .dp-content {
    padding: 20px 14px;
  }

  .dp-stats-grid {
    grid-template-columns: 1fr;
  }

  .dp-card-header {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .dp-pm-card,
  .dp-receipt-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .dp-pm-actions,
  .dp-schedule-actions {
    flex-wrap: wrap;
  }

  .dp-mobile-toggle {
    border-radius: 8px;
    border-color: var(--dp-line);
  }
}

@media (max-width: 520px) {
  .dp-login-box {
    padding: 28px 20px;
  }

  .dp-login-box h1 {
    font-size: 26px;
  }

  .dp-otp-notice {
    align-items: flex-start;
  }

  .dp-otp-input {
    font-size: 22px;
    letter-spacing: .22em;
    padding-left: calc(14px + .22em);
  }
}

/* Final light sidebar skin */
.dp-sidebar,
.dp-sidebar.mobile-open {
  background: #ffffff !important;
  border-right: 1px solid #dde8ef !important;
  box-shadow: 6px 0 24px rgba(7, 21, 39, .04) !important;
}

.dp-sidebar-head {
  background: #ffffff !important;
  border-bottom: 1px solid #e6edf2 !important;
}

.dp-sidebar-logo .name {
  color: #000b23 !important;
}

.dp-sidebar-logo .portal {
  color: #0776bc !important;
}

.dp-sidebar-toggle {
  color: #667786 !important;
  background: #ffffff !important;
  border: 1px solid #d9e4ec !important;
}

.dp-sidebar-toggle:hover {
  color: #000b23 !important;
  background: #edf9fd !important;
  border-color: #bfeafa !important;
}

.dp-sidebar-top-action {
  background: #ffffff !important;
  border-bottom: 0 !important;
}

.dp-sidebar-donor {
  background: #f8fbfd !important;
  border: 1px solid #dde8ef !important;
  box-shadow: none !important;
}

.dp-donor-avatar {
  background: #edf9fd !important;
  color: #14335c !important;
  border: 1px solid #bfeafa !important;
}

.dp-donor-name .fullname {
  color: #000b23 !important;
}

.dp-donor-name .label {
  color: #667786 !important;
}

.dp-sidebar-nav {
  background: #ffffff !important;
}

.dp-nav-item {
  color: #4d6070 !important;
  background: transparent !important;
}

.dp-nav-item svg {
  color: currentColor !important;
}

.dp-nav-item:hover {
  color: #14335c !important;
  background: #edf9fd !important;
}

.dp-nav-item.active {
  color: #ffffff !important;
  background: #14335c !important;
  box-shadow: none !important;
}

.dp-nav-item.active::before {
  background: #f9c700 !important;
}

.dp-logout-btn {
  background: #ffffff !important;
  border: 1px solid #f1c8c8 !important;
  color: #c20008 !important;
}

.dp-logout-btn:hover {
  background: #c20008 !important;
  border-color: #c20008 !important;
  color: #ffffff !important;
}

.dp-sidebar-footer {
  background: #ffffff !important;
}

/* ── Dialog Icon ─────────────────────────────────────────────────────────────*/
.dp-dialog-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff0f0;
  border: 1px solid #ffd5d5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--dp-red);
}

/* ── Payment Methods Redesign ────────────────────────────────────────────────*/
.dp-pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
  padding: 4px 0;
}

.dp-pm-item {
  border: 1.5px solid var(--dp-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(7,21,39,.06);
  transition: box-shadow .2s, border-color .2s, transform .15s;
}
.dp-pm-item:hover {
  box-shadow: 0 6px 24px rgba(7,21,39,.11);
  transform: translateY(-2px);
}
.dp-pm-item--default {
  border-color: var(--dp-cyan);
  box-shadow: 0 0 0 3px rgba(0,173,239,.12), 0 4px 16px rgba(7,21,39,.08);
}

/* Mini card visual */
.dp-pm-visual {
  padding: 18px 20px 14px;
  border-radius: 0;
  position: relative;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dp-pm-visual-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dp-pm-chip svg {
  width: 30px;
  height: 22px;
  display: block;
  border-radius: 3px;
}

.dp-pm-logo {
  height: 26px;
  display: flex;
  align-items: center;
}
.dp-pm-logo svg {
  height: 26px;
  width: auto;
  max-width: 70px;
}

.dp-pm-visual-num {
  font-family: 'Courier New', Courier, monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .18em;
  color: rgba(255,255,255,.95);
  text-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.dp-pm-visual-bot {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.dp-pm-exp-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  opacity: .72;
  text-transform: uppercase;
}
.dp-pm-exp-val {
  font-size: 13px;
  font-weight: 600;
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: .06em;
}

/* Info row below visual */
.dp-pm-info {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dp-pm-info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dp-pm-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dp-ink);
  font-family: 'Courier New', Courier, monospace;
  letter-spacing: .1em;
}
.dp-pm-meta {
  font-size: 12px;
  color: var(--dp-muted);
  margin-top: 2px;
}

.dp-pm-default-badge {
  background: #e0f8ff;
  color: #0776bc;
  border: 1px solid #bfeafa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dp-pm-actions {
  display: flex;
  gap: 8px;
}

@media (max-width: 600px) {
  .dp-pm-grid {
    grid-template-columns: 1fr;
  }
}
