/* ================================================================
   FUNDHOPE — PREMIUM FINTECH DESIGN SYSTEM v5.0
   Fully Responsive: Mobile / Tablet / Desktop
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #2563EB;
  --blue-d:     #1D4ED8;
  --blue-l:     #EFF6FF;
  --purple:     #7C3AED;
  --purple-l:   #F5F3FF;
  --cyan:       #06B6D4;
  --cyan-l:     #ECFEFF;
  --success:    #10B981;
  --success-l:  #ECFDF5;
  --warning:    #F59E0B;
  --warning-l:  #FFFBEB;
  --danger:     #EF4444;
  --danger-l:   #FEF2F2;
  --bg:         #F8FAFC;
  --surface:    #FFFFFF;
  --surface2:   #F1F5F9;
  --surface3:   #E2E8F0;
  --border:     #E2E8F0;
  --border2:    #CBD5E1;
  --text:       #0F172A;
  --text2:      #334155;
  --text3:      #64748B;
  --text4:      #94A3B8;
  --text-inv:   #FFFFFF;
  --grad-primary:  linear-gradient(135deg, #2563EB, #7C3AED);
  --grad-cyan:     linear-gradient(135deg, #06B6D4, #2563EB);
  --grad-warm:     linear-gradient(135deg, #F59E0B, #EF4444);
  --grad-green:    linear-gradient(135deg, #10B981, #059669);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(37,99,235,0.1), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(37,99,235,0.15), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-xl: 0 24px 64px rgba(37,99,235,0.2), 0 8px 20px rgba(0,0,0,0.1);
  --glow-blue: 0 0 0 3px rgba(37,99,235,0.15);
  --r-xs: 6px; --r-sm: 10px; --r-md: 14px;
  --r-lg: 18px; --r-xl: 22px; --r-2xl: 28px;
  --r-3xl: 36px; --r-full: 9999px;
  --font:         'Inter', 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

html, body {
  height: 100%;
  font-family: var(--font);
  background: #0F172A;
  overflow-x: hidden;
}

/* ================================================================
   DESKTOP LAYOUT — Two-column: Brand LEFT, Phone RIGHT
   ================================================================ */

/* Full-page dark background with animated blobs */
.desktop-bg {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #172554 100%);
}

.db-blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.4;
  pointer-events: none;
}
.db-blob-1 {
  width: 700px; height: 700px; top: -200px; left: -150px;
  background: radial-gradient(circle, #2563EB, transparent 70%);
  animation: blobFloat 10s ease-in-out infinite;
}
.db-blob-2 {
  width: 500px; height: 500px; bottom: -150px; right: -100px;
  background: radial-gradient(circle, #7C3AED, transparent 70%);
  animation: blobFloat 12s ease-in-out infinite reverse;
}
.db-blob-3 {
  width: 400px; height: 400px; top: 40%; left: 35%;
  background: radial-gradient(circle, #06B6D4, transparent 70%);
  opacity: 0.2; animation: blobFloat 14s ease-in-out infinite 2s;
}
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-20px) scale(1.05); }
  66%     { transform: translate(-15px,25px) scale(0.97); }
}

/* Brand panel — visible only on large screens, positioned LEFT */
.desktop-brand {
  position: fixed;
  left: 0; top: 0; bottom: 0;
width: calc(50vw - 1px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: -4px;
  z-index: 2;
  pointer-events: none;
}

.db-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 360px;
}

.db-logo {
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(37,99,235,0.45);
}
.db-name {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 800; color: #fff;
  letter-spacing: -1px; margin-bottom: 8px;
}
.db-tagline {
  font-size: 15px; color: rgba(255,255,255,0.5);
  line-height: 1.6; margin-bottom: 40px; max-width: 280px;
}

.db-stats {
  display: flex; gap: 32px;
  padding: 24px 28px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-2xl);
  margin-bottom: 32px;
}
.dbs-val {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.5px;
}
.dbs-label {
  font-size: 11px; color: rgba(255,255,255,0.4);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-top: 3px;
}

/* Feature pills */
.db-features {
  display: flex; flex-direction: column; gap: 10px;
}
.db-feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: rgba(255,255,255,0.6);
}
.db-feature-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--grad-primary); flex-shrink: 0;
}

/* ================================================================
   IPHONE FRAME — centered in right half on desktop
   ================================================================ */
.iphone-wrapper {
  position: fixed;
  top: 50%;
  /* On desktop: center in the RIGHT half of screen */
  left: calc(50vw + (50vw - 250px) / 2);
  transform: translate(-50%, -50%);
  z-index: 100;
  filter:
    drop-shadow(0 60px 120px rgba(0,0,0,0.45))
    drop-shadow(0 0 60px rgba(37,99,235,0.2));
}

.iphone-frame {
  width: 340px; height: 740px;
  background: linear-gradient(160deg, #D1D5DB 0%, #9CA3AF 40%, #6B7280 100%);
  border-radius: 56px; position: relative; overflow: visible;
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.4),
    inset 0 -2px 0 rgba(0,0,0,0.2),
    0 0 0 1px rgba(0,0,0,0.15);
}

.iphone-btn {
  position: absolute;
  background: linear-gradient(90deg, #9CA3AF, #D1D5DB);
  border-radius: 3px;
}
.ibtn-mute   { width: 3px; height: 32px; left: -2px; top: 148px; }
.ibtn-vol-up { width: 3px; height: 58px; left: -2px; top: 202px; }
.ibtn-vol-dn { width: 3px; height: 58px; left: -2px; top: 274px; }
.ibtn-power  { width: 3px; height: 86px; right: -2px; top: 202px; }

.iphone-screen {
  position: absolute; inset: 2px;
  border-radius: 54px; overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.12);
}

.dynamic-island {
  position: absolute; top: 12px; left: 50%;
  transform: translateX(-50%); z-index: 999;
  width: 126px; height: 36px;
}
.di-pill {
  width: 100%; height: 100%; background: #000;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: flex-end;
  padding-right: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}
.di-cam {
  width: 10px; height: 10px; background: #1a1a2a; border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,100,255,0.3);
}

#app { position: absolute; inset: 0; overflow: hidden; }

/* ================================================================
   RESPONSIVE BREAKPOINTS
   ================================================================ */

/* Large desktop (≥1400px) — more brand space */
@media (min-width: 1400px) {
  .desktop-brand { padding-right: 0px; }
  .db-name { font-size: 38px; }
}

/* Standard desktop (≥1100px) — default layout above */

/* Small desktop / large tablet (900px–1099px) */
@media (max-width: 1099px) {
  .desktop-brand {
    width: calc(50vw - 200px);
    padding-right: 40px;
  }
  .iphone-wrapper {
    left: calc(50vw + (50vw - 200px) / 2);
  }
  .db-name { font-size: 24px; }
  .db-tagline { font-size: 13px; margin-bottom: 28px; }
  .db-stats { gap: 20px; padding: 18px 20px; }
  .dbs-val { font-size: 18px; }
  .db-features { display: none; } /* hide features on smaller screens */
}

/* Tablet (600px–899px) — phone centered, brand above */
@media (max-width: 899px) {
  html, body { overflow-y: auto; overflow-x: hidden; }

  .desktop-bg { position: fixed; }

  .desktop-brand {
    position: relative;
    width: 100%;
    top: auto; left: auto; bottom: auto;
    justify-content: center;
    padding: 40px 24px 24px;
    text-align: center;
    pointer-events: auto;
  }

  .db-inner {
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
  }

  .db-logo { margin-bottom: 14px; }
  .db-name { font-size: 28px; text-align: center; }
  .db-tagline { text-align: center; margin-bottom: 20px; }

  .db-stats {
    gap: 24px;
    padding: 16px 24px;
    margin-bottom: 24px;
  }

  .db-features { display: none; }

  .iphone-wrapper {
    position: relative;
    top: auto; left: auto;
    transform: none;
    display: flex;
    justify-content: center;
    padding: 0 0 40px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.4));
  }

  body {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }
}

/* Phone scale-down (600px–740px) */
@media (max-width: 740px) {
  .iphone-frame {
    width: 360px;
    height: 780px;
    border-radius: 48px;
  }
  .iphone-screen { border-radius: 46px; }
  .dynamic-island { width: 110px; height: 32px; }
}

/* Small phone (max 480px) — shrink frame to fit screen */
@media (max-width: 480px) {
  .iphone-frame {
    width: calc(100vw - 24px);
    max-width: 390px;
    height: calc((100vw - 24px) * 2.165);
    max-height: 844px;
    border-radius: 40px;
  }
  .iphone-screen { border-radius: 38px; }
  .iphone-wrapper { padding: 0 0 32px; }

  .db-stats { gap: 16px; padding: 14px 18px; }
  .dbs-val  { font-size: 16px; }
  .db-name  { font-size: 24px; }
}

/* Very small (max 360px) */
@media (max-width: 360px) {
  .iphone-frame {
    width: calc(100vw - 12px);
    height: calc((100vw - 12px) * 2.165);
    border-radius: 32px;
  }
  .iphone-screen { border-radius: 30px; }
}

/* ================================================================
   SCREEN BASE + TRANSITIONS
   ================================================================ */
.screen {
  position: absolute; inset: 0;
  background: var(--bg);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.screen-body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.screen-body::-webkit-scrollbar { display: none; }

.screen.entering        { animation: slideInR  0.3s cubic-bezier(0.32,0.72,0,1) forwards; }
.screen.leaving         { animation: slideOutL 0.3s cubic-bezier(0.32,0.72,0,1) forwards; }
.screen.entering-back   { animation: slideInL  0.3s cubic-bezier(0.32,0.72,0,1) forwards; }
.screen.leaving-forward { animation: slideOutR 0.3s cubic-bezier(0.32,0.72,0,1) forwards; }

@keyframes slideInR  { from { transform: translateX(100%); }                    to { transform: translateX(0); } }
@keyframes slideOutL { from { transform: translateX(0); }                        to { transform: translateX(-25%); opacity: 0.4; } }
@keyframes slideInL  { from { transform: translateX(-25%); opacity: 0.4; }      to { transform: translateX(0); } }
@keyframes slideOutR { from { transform: translateX(0); }                        to { transform: translateX(100%); } }

@keyframes fadeUp  { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.fade-up { animation: fadeUp 0.4s ease both; }

/* ================================================================
   STATUS BAR
   ================================================================ */
.status-bar {
  height: 54px; padding: 14px 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; position: relative; z-index: 10;
}
.status-time { font-size: 15px; font-weight: 700; color: var(--text); letter-spacing: -0.3px; }
.status-right { display: flex; align-items: center; gap: 6px; color: var(--text); }
.status-bar.dark .status-time,
.status-bar.dark .status-right { color: #fff; }

/* ================================================================
   SPLASH SCREEN
   ================================================================ */
.splash-screen { background: #0F172A; overflow: hidden; }

.splash-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 80% at 30% 20%, rgba(37,99,235,0.6) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(124,58,237,0.5) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 110%, rgba(6,182,212,0.3) 0%, transparent 50%),
    #0F172A;
}

.splash-particles { position: absolute; inset: 0; overflow: hidden; }
.sp {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  animation: particleRise linear infinite;
}
@keyframes particleRise {
  0%   { bottom: -20px; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 0.6; }
  100% { bottom: 110%; opacity: 0; transform: translateX(30px) scale(0.5); }
}
.sp:nth-child(1)  { left: 8%;  background:#60A5FA; width:3px;height:3px; animation-duration:9s;  }
.sp:nth-child(2)  { left: 22%; background:#A78BFA; animation-duration:13s; animation-delay:-3s; }
.sp:nth-child(3)  { left: 38%; background:#34D399; width:3px;height:3px; animation-duration:11s; animation-delay:-1s; }
.sp:nth-child(4)  { left: 55%; background:#60A5FA; animation-duration:10s; animation-delay:-5s; }
.sp:nth-child(5)  { left: 70%; background:#F472B6; width:4px;height:4px; animation-duration:14s; animation-delay:-7s; }
.sp:nth-child(6)  { left: 85%; background:#A78BFA; animation-duration:12s; animation-delay:-2s; }
.sp:nth-child(7)  { left: 15%; background:rgba(255,255,255,0.3); width:1px;height:1px; animation-duration:16s; animation-delay:-9s; }
.sp:nth-child(8)  { left: 48%; background:rgba(255,255,255,0.25); animation-duration:8s; animation-delay:-4s; }

.splash-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%; padding: 0 32px;
}
.splash-logo-wrap {
  position: relative; margin-bottom: 28px;
  animation: splashLogoIn 0.8s cubic-bezier(0.2,0,0,1) 0.2s both;
}
@keyframes splashLogoIn {
  from { transform: scale(0.5) translateY(30px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.splash-logo {
  width: 100px; height: 100px;
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  border-radius: 32px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 24px 60px rgba(37,99,235,0.6);
  position: relative;
}
.splash-logo-ring {
  position: absolute; inset: -14px; border-radius: 46px;
  border: 1.5px solid rgba(37,99,235,0.35);
  animation: ringBreath 2.5s ease-in-out infinite;
}
.splash-logo-ring2 {
  position: absolute; inset: -26px; border-radius: 58px;
  border: 1px solid rgba(37,99,235,0.15);
  animation: ringBreath 2.5s ease-in-out infinite 0.35s;
}
@keyframes ringBreath {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.03); }
}
.splash-name {
  font-family: var(--font-display); font-size: 38px; font-weight: 800;
  color: #fff; letter-spacing: -1.5px; margin-bottom: 8px;
  animation: splashTextIn 0.7s cubic-bezier(0.2,0,0,1) 0.5s both;
}
.splash-sub {
  font-size: 14px; color: rgba(255,255,255,0.5); letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500; margin-bottom: 56px;
  animation: splashTextIn 0.7s cubic-bezier(0.2,0,0,1) 0.65s both;
}
@keyframes splashTextIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.splash-stats {
  display: flex; gap: 40px;
  animation: splashTextIn 0.8s cubic-bezier(0.2,0,0,1) 0.9s both;
}
.splash-stat { text-align: center; }
.splash-stat-val { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; letter-spacing: -0.5px; }
.splash-stat-label { font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 3px; }

.splash-progress {
  position: absolute; bottom: 36px; left: 48px; right: 48px;
  height: 2px; background: rgba(255,255,255,0.08); border-radius: 1px;
  animation: splashTextIn 0.5s ease 1s both;
}
.splash-progress-fill {
  height: 100%; background: linear-gradient(90deg, #2563EB, #7C3AED);
  border-radius: 1px; width: 0;
  animation: progressLoad 1.8s cubic-bezier(0.4,0,0.2,1) 0.8s forwards;
}
@keyframes progressLoad { to { width: 100%; } }

/* ================================================================
   ONBOARDING
   ================================================================ */
.onboard-screen { background: var(--surface); }
.onboard-img-wrap { height: 340px; position: relative; overflow: hidden; flex-shrink: 0; }
.onboard-img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.onboard-img-fade {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(255,255,255,0.02) 60%, #fff 100%);
}
.onboard-skip {
  position: absolute; top: 64px; right: 20px; z-index: 10;
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.35); backdrop-filter: blur(12px);
  padding: 7px 18px; border-radius: var(--r-full); cursor: pointer;
  border: 1px solid rgba(255,255,255,0.15);
}
.onboard-stepper {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px;
}
.onboard-step {
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.4); transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
}
.onboard-step.active { width: 24px; background: #fff; }
.onboard-step:not(.active) { width: 6px; }
.onboard-body { padding: 24px 24px 32px; }
.onboard-eyebrow { font-size: 11px; font-weight: 700; color: var(--blue); letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 10px; }
.onboard-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text); line-height: 1.22; letter-spacing: -0.5px; margin-bottom: 10px; }
.onboard-desc { font-size: 14px; color: var(--text3); line-height: 1.68; margin-bottom: 32px; }
.onboard-cta { display: flex; gap: 12px; align-items: center; }

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  border: none; border-radius: var(--r-full); cursor: pointer;
  transition: all 0.18s cubic-bezier(0.2,0,0,1);
  -webkit-tap-highlight-color: transparent; letter-spacing: -0.1px;
  text-decoration: none; position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: var(--grad-primary); color: #fff; padding: 15px 28px; flex: 1;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}
.btn-secondary {
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text2); padding: 15px 22px;
}
.btn-ghost { background: transparent; color: var(--blue); padding: 15px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-sm { font-size: 13px; padding: 9px 18px; }
.btn-xs { font-size: 12px; padding: 7px 14px; }
.btn-icon { width: 42px; height: 42px; border-radius: 50%; padding: 0; flex-shrink: 0; }
.btn-success { background: var(--grad-green); color: #fff; box-shadow: 0 6px 20px rgba(16,185,129,0.3); }
.btn-danger  { background: linear-gradient(135deg, #EF4444, #DC2626); color: #fff; box-shadow: 0 6px 20px rgba(239,68,68,0.3); }
.btn-amber   { background: linear-gradient(135deg, #F59E0B, #D97706); color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--blue); color: var(--blue); padding: 13px 22px; }
.btn-loading { opacity: 0.75; pointer-events: none; }
.btn-loading::before {
  content: ''; display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   FORMS
   ================================================================ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block; font-size: 11px; font-weight: 700; color: var(--text3);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 7px;
}
.form-input {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 14px 16px;
  font-size: 15px; color: var(--text); font-family: var(--font);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none; -webkit-appearance: none;
}
.form-input:focus { border-color: var(--blue); box-shadow: var(--glow-blue); background: var(--surface); }
.form-input::placeholder { color: var(--text4); }
.input-group { position: relative; }
.input-group .form-input { padding-left: 44px; }
.input-group .ig-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text4); pointer-events: none; }
textarea.form-input { resize: none; min-height: 110px; padding-top: 14px; line-height: 1.6; }
select.form-input { cursor: pointer; }
.forgot-link { text-align: right; margin-bottom: 18px; }
.forgot-link a { font-size: 13px; font-weight: 500; color: var(--blue); cursor: pointer; }

/* ================================================================
   AUTH SCREEN
   ================================================================ */
.auth-screen { background: var(--surface); overflow-y: auto; scrollbar-width: none; }
.auth-screen::-webkit-scrollbar { display: none; }
.auth-hero { height: 200px; position: relative; overflow: hidden; background: linear-gradient(135deg, #1D4ED8, #7C3AED); }
.auth-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.25; }
.auth-hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 24px;
  background: linear-gradient(to bottom, rgba(29,78,216,0.6), rgba(124,58,237,0.8));
}
.auth-logo-sm {
  width: 52px; height: 52px; border-radius: 16px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.auth-hero-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.auth-body { padding: 24px 24px 0; }
.auth-sub { font-size: 14px; color: var(--text3); margin-bottom: 22px; }
.demo-creds {
  background: var(--blue-l); border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--r-lg); padding: 14px 16px; margin-bottom: 20px;
}
.demo-label { font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.demo-pills { display: flex; gap: 8px; }
.demo-pill {
  flex: 1; padding: 9px 8px; border-radius: var(--r-sm); font-size: 12px;
  font-weight: 600; text-align: center; cursor: pointer; border: 1.5px solid;
  transition: all 0.18s; font-family: var(--font); -webkit-tap-highlight-color: transparent;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.demo-pill:active { transform: scale(0.96); }
.dp-admin { border-color: rgba(37,99,235,0.3);  color: var(--blue);    background: rgba(37,99,235,0.06); }
.dp-raise { border-color: rgba(16,185,129,0.3); color: var(--success); background: rgba(16,185,129,0.06); }
.dp-donor { border-color: rgba(124,58,237,0.3); color: var(--purple);  background: rgba(124,58,237,0.06); }
.social-row { display: flex; gap: 10px; margin-bottom: 8px; }
.social-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: var(--r-md); border: 1.5px solid var(--border);
  background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: all 0.18s; font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}
.social-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-l); }
.divider-row { display: flex; align-items: center; gap: 12px; margin: 18px 0; }
.divider-row::before,.divider-row::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider-row span { font-size: 12px; color: var(--text4); font-weight: 500; }
.auth-foot { text-align: center; padding: 16px 24px 28px; font-size: 14px; color: var(--text3); }
.auth-foot a { color: var(--blue); font-weight: 600; cursor: pointer; }

/* ================================================================
   BOTTOM NAV
   ================================================================ */
.bottom-nav {
  display: flex; height: 80px;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(24px) saturate(180%);
  border-top: 0.5px solid var(--border); flex-shrink: 0;
  padding-bottom: 16px; position: relative; z-index: 50;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
}
.nav-item {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: all 0.2s; position: relative;
}
.nav-icon svg { color: var(--text4); transition: color 0.2s, transform 0.2s; }
.nav-label { font-size: 10px; font-weight: 600; color: var(--text4); transition: color 0.2s; }
.nav-item.active .nav-icon svg { color: var(--blue); transform: scale(1.08); }
.nav-item.active .nav-label { color: var(--blue); }
.nav-item.active::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 28px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--purple));
  border-radius: 0 0 3px 3px;
}
.nav-create-wrap {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.nav-create-btn {
  width: 50px; height: 50px; margin-top: -22px;
  background: var(--grad-primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,99,235,0.45), 0 2px 6px rgba(37,99,235,0.2);
  transition: all 0.2s;
}
.nav-create-btn svg { color: #fff; }
.nav-create-btn:active { transform: scale(0.88) translateY(2px); }
.nav-badge {
  position: absolute; top: 7px; right: calc(50% - 21px);
  min-width: 16px; height: 16px; background: var(--danger);
  border-radius: 8px; font-size: 9px; font-weight: 700; color: #fff;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
  border: 2px solid #fff;
}

/* ================================================================
   SCREEN HEADER
   ================================================================ */
.screen-hdr {
  padding: 8px 20px 12px; display: flex; align-items: center;
  gap: 12px; flex-shrink: 0; background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}
.screen-hdr-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); flex: 1; letter-spacing: -0.3px; }
.back-btn {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface2);
  border: 1px solid var(--border); display: flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0;
  transition: all 0.18s; -webkit-tap-highlight-color: transparent;
}
.back-btn svg { color: var(--text2); }
.back-btn:hover { background: var(--blue-l); border-color: rgba(37,99,235,0.2); }
.back-btn:active { transform: scale(0.93); }

/* ================================================================
   HOME SCREEN
   ================================================================ */
.home-topbar { padding: 8px 20px 16px; flex-shrink: 0; background: var(--surface); }
.home-greeting-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.greeting-hi { font-size: 12px; color: var(--text3); font-weight: 500; margin-bottom: 2px; }
.greeting-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.avatar-ring {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  border: 2.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-primary) border-box;
  box-shadow: var(--shadow-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.avatar-ring img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-ring svg { color: var(--blue); }
.search-wrap { position: relative; }
.search-input {
  width: 100%; padding: 13px 16px 13px 44px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r-full); font-size: 14px; color: var(--text);
  font-family: var(--font); outline: none; transition: all 0.2s; cursor: text;
}
.search-input:focus { border-color: var(--blue); box-shadow: var(--glow-blue); background: var(--surface); }
.search-input::placeholder { color: var(--text4); }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text4); pointer-events: none; }
.search-filter {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--grad-primary); display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.search-filter svg { color: #fff; }

/* Impact Hero */
.impact-hero {
  margin: 0 20px 20px; border-radius: var(--r-2xl);
  background: var(--grad-primary); padding: 22px 20px;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.impact-hero::before { content: ''; position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.08); }
.impact-hero::after  { content: ''; position: absolute; bottom: -50px; left: -20px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.05); }
.ih-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 6px; }
.ih-amount { font-family: var(--font-display); font-size: 32px; font-weight: 800; color: #fff; letter-spacing: -1.5px; margin-bottom: 4px; }
.ih-sub { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.ih-chips { display: flex; gap: 8px; flex-wrap: wrap; position: relative; z-index: 1; }
.ih-chip {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2); border-radius: var(--r-full);
  padding: 6px 12px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.95);
}
.ih-chip svg { opacity: 0.8; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 0 20px; margin-bottom: 24px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 16px; box-shadow: var(--shadow-xs); transition: all 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card-icon { width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.stat-val { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 2px; }
.stat-label { font-size: 11px; color: var(--text3); font-weight: 500; }
.stat-trend { font-size: 11px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.trend-up { color: var(--success); }
.trend-dn { color: var(--danger); }

/* Sections */
.sec-hdr { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; margin-bottom: 14px; }
.sec-title { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; display: flex; align-items: center; gap: 6px; }
.sec-link { font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; }

/* Category Strip */
.cat-scroll { padding: 0 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-chip {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  padding: 10px 12px; min-width: 68px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r-lg);
  cursor: pointer; transition: all 0.2s; box-shadow: var(--shadow-xs); flex-shrink: 0;
}
.cat-chip:hover { border-color: var(--blue); background: var(--blue-l); }
.cat-chip.active { background: var(--grad-primary); border-color: transparent; box-shadow: 0 4px 16px rgba(37,99,235,0.35); }
.cat-icon { width: 34px; height: 34px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; }
.cat-name { font-size: 10px; font-weight: 600; color: var(--text3); white-space: nowrap; }
.cat-chip.active .cat-name { color: rgba(255,255,255,0.9); }
.cat-chip.active .cat-icon { background: rgba(255,255,255,0.18); }

/* Filter Pills */
.filter-scroll { padding: 0 20px; display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-pill {
  padding: 8px 16px; border-radius: var(--r-full); white-space: nowrap;
  background: var(--surface); border: 1.5px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text3);
  cursor: pointer; transition: all 0.18s; flex-shrink: 0;
}
.filter-pill.active { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

/* ================================================================
   CAMPAIGN CARDS
   ================================================================ */
.campaign-list { padding: 0 20px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.campaign-card {
  background: var(--surface); border-radius: var(--r-2xl); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.2,0,0,1), box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}
.campaign-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.campaign-card:active { transform: scale(0.99); box-shadow: var(--shadow-sm); }
.cc-img { height: 180px; position: relative; overflow: hidden; background: var(--surface2); }
.cc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s cubic-bezier(0.2,0,0,1); }
.campaign-card:hover .cc-img img { transform: scale(1.04); }
.cc-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 35%, rgba(15,23,42,0.75) 100%); }
.cc-badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 5px; flex-wrap: wrap; }
.cc-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 4px 9px; border-radius: var(--r-full); font-size: 10px; font-weight: 700;
  backdrop-filter: blur(12px); letter-spacing: 0.02em;
}
.cc-badge-verified { background: rgba(16,185,129,0.2);  color: #34D399; border: 1px solid rgba(16,185,129,0.35); }
.cc-badge-trending { background: rgba(245,158,11,0.2);  color: #FCD34D; border: 1px solid rgba(245,158,11,0.35); }
.cc-badge-urgent   { background: rgba(239,68,68,0.2);   color: #FCA5A5; border: 1px solid rgba(239,68,68,0.35); }
.cc-badge-editor   { background: rgba(124,58,237,0.25); color: #C4B5FD; border: 1px solid rgba(124,58,237,0.35); }
.cc-cat-pill {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  padding: 3px 9px; border-radius: var(--r-full); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.cc-body { padding: 14px 16px 16px; }
.cc-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; line-height: 1.35; letter-spacing: -0.2px; }
.cc-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--text4); margin-bottom: 12px; }
.cc-meta-item { display: flex; align-items: center; gap: 3px; }
.cc-meta-item svg { flex-shrink: 0; }
.cc-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border2); }
.cc-bar { height: 5px; background: var(--surface2); border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.cc-bar-fill { height: 100%; background: var(--grad-primary); border-radius: 3px; transition: width 0.8s cubic-bezier(0.2,0,0,1); }
.cc-foot { display: flex; align-items: center; justify-content: space-between; }
.cc-raised { font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.cc-goal { font-size: 11px; color: var(--text4); margin-top: 1px; }
.cc-stats { display: flex; align-items: center; gap: 12px; }
.cc-stat { text-align: center; }
.cc-stat-val { font-size: 12px; font-weight: 700; color: var(--text2); }
.cc-stat-label { font-size: 9px; color: var(--text4); text-transform: uppercase; letter-spacing: 0.06em; }
.cc-trust-pill {
  display: flex; align-items: center; gap: 3px; padding: 4px 9px;
  border-radius: var(--r-full); background: var(--success-l);
  border: 1px solid rgba(16,185,129,0.2); font-size: 11px; font-weight: 700; color: var(--success);
}
.h-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.hcc {
  display: flex; background: var(--surface); border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; transition: all 0.22s; box-shadow: var(--shadow-xs);
}
.hcc:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.hcc-img { width: 96px; flex-shrink: 0; overflow: hidden; background: var(--surface2); }
.hcc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.hcc:hover .hcc-img img { transform: scale(1.07); }
.hcc-body { flex: 1; padding: 12px 13px; min-width: 0; }
.hcc-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcc-bar { height: 4px; background: var(--surface2); border-radius: 2px; overflow: hidden; margin-bottom: 5px; }
.hcc-fill { height: 100%; background: var(--grad-primary); border-radius: 2px; }
.hcc-meta { display: flex; justify-content: space-between; font-size: 11px; }
.hcc-pct { color: var(--blue); font-weight: 700; }
.hcc-days { color: var(--text4); }

/* Activity Feed */
.activity-feed { padding: 0 20px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.act-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xs);
  animation: fadeUp 0.4s ease both;
}
.act-av {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  overflow: hidden; border: 2px solid var(--border); position: relative;
  background: linear-gradient(135deg, var(--blue), var(--purple));
}
.act-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.act-av-fb { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #fff; }
.act-info { flex: 1; min-width: 0; }
.act-name { font-size: 13px; font-weight: 700; color: var(--text); }
.act-camp { font-size: 11px; color: var(--text4); margin-top: 1px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.act-time { font-size: 10px; color: var(--text4); margin-top: 2px; }
.act-amt { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--success); white-space: nowrap; }

/* ================================================================
   CAMPAIGN DETAIL
   ================================================================ */
.cd-hero { height: 260px; position: relative; overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.cd-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cd-hero-fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(15,23,42,0.85) 100%); }
.cd-hero-controls {
  position: absolute; top: 60px; left: 0; right: 0; z-index: 20;
  display: flex; justify-content: space-between; padding: 0 16px;
}
.cd-ctrl-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(16px) saturate(180%);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15); transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cd-ctrl-btn:active { transform: scale(0.9); }
.cd-ctrl-btn svg { color: var(--text); }
.cd-ctrl-btn.liked svg { color: var(--danger); fill: var(--danger); }
.cd-ctrl-group { display: flex; gap: 8px; }
.cd-hero-meta { position: absolute; bottom: 14px; left: 16px; right: 16px; z-index: 10; }
.cd-hero-cat { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 4px; }
.cd-hero-title { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: #fff; line-height: 1.3; letter-spacing: -0.3px; }
.cd-body { padding: 20px; padding-bottom: 100px; }
.cd-meta-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.cd-meta-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--r-full); font-size: 12px; color: var(--text3); }
.cd-meta-chip svg { color: var(--text4); flex-shrink: 0; }
.cd-progress-card {
  background: linear-gradient(145deg, var(--blue-l), var(--purple-l));
  border: 1px solid rgba(37,99,235,0.12); border-radius: var(--r-2xl); padding: 18px; margin-bottom: 16px;
}
.cd-raised-row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
.cd-raised { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.cd-raised-sub { font-size: 12px; color: var(--text3); margin-top: 2px; }
.cd-pct-badge { background: var(--grad-primary); color: #fff; padding: 6px 14px; border-radius: var(--r-full); font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.5px; box-shadow: 0 4px 16px rgba(37,99,235,0.35); }
.cd-bar { height: 8px; background: rgba(37,99,235,0.12); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.cd-bar-fill { height: 100%; background: var(--grad-primary); border-radius: 4px; transition: width 1s cubic-bezier(0.2,0,0,1); }
.cd-prog-stats { display: flex; }
.cd-prog-stat { flex: 1; text-align: center; padding: 10px 0; }
.cd-prog-stat:not(:last-child) { border-right: 1px solid rgba(37,99,235,0.12); }
.cd-prog-val { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.cd-prog-label { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.cd-scores { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-bottom: 18px; }
.cd-score { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px 6px; text-align: center; }
.cd-score-val { font-family: var(--font-display); font-size: 17px; font-weight: 800; }
.cd-score-label { font-size: 9px; color: var(--text4); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.cd-sec { margin-bottom: 22px; }
.cd-sec-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; letter-spacing: -0.2px; display: flex; align-items: center; gap: 7px; }
.cd-sec-title svg { color: var(--blue); flex-shrink: 0; }
.cd-story { font-size: 14px; color: var(--text2); line-height: 1.75; }
.donor-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.donor-av { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid var(--border); position: relative; background: linear-gradient(135deg, var(--blue), var(--purple)); display: flex; align-items: center; justify-content: center; }
.donor-av img { width: 100%; height: 100%; object-fit: cover; }
.donor-av-fb { font-size: 11px; font-weight: 700; color: #fff; }
.donor-info { flex: 1; }
.donor-name { font-size: 13px; font-weight: 600; color: var(--text); }
.donor-time { font-size: 11px; color: var(--text4); margin-top: 1px; }
.donor-amt { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--success); }
.cd-donate-bar {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 14px 20px 20px; background: rgba(255,255,255,0.97);
  backdrop-filter: blur(24px) saturate(180%); border-top: 0.5px solid var(--border);
  display: flex; gap: 10px; box-shadow: 0 -8px 32px rgba(0,0,0,0.06);
}

/* ================================================================
   DONATE SHEET
   ================================================================ */
.sheet-overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.5); z-index: 200; backdrop-filter: blur(4px); animation: overlayIn 0.25s ease; }
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
.sheet {
  position: absolute; bottom: 0; left: 0; right: 0; background: var(--surface);
  border-radius: var(--r-3xl) var(--r-3xl) 0 0; z-index: 201;
  padding: 0 20px 32px; max-height: 90%; overflow-y: auto; scrollbar-width: none;
  box-shadow: 0 -16px 60px rgba(0,0,0,0.15); animation: sheetUp 0.38s cubic-bezier(0.2,0,0,1);
}
.sheet::-webkit-scrollbar { display: none; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle { width: 36px; height: 4px; background: var(--border2); border-radius: 2px; margin: 14px auto 20px; }
.sheet-close { position: absolute; top: 16px; right: 20px; width: 32px; height: 32px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-close svg { color: var(--text3); }
.sheet-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 4px; letter-spacing: -0.5px; }
.sheet-sub { font-size: 13px; color: var(--text4); margin-bottom: 20px; }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.amt-chip {
  padding: 14px 10px; border-radius: var(--r-lg); background: var(--surface2);
  border: 1.5px solid var(--border); font-family: var(--font-display); font-size: 15px;
  font-weight: 700; color: var(--text); text-align: center; cursor: pointer; transition: all 0.18s;
}
.amt-chip.selected { background: var(--blue-l); border-color: var(--blue); color: var(--blue); }
.amt-custom-wrap { position: relative; margin-bottom: 20px; }
.amt-prefix { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text4); z-index: 1; }
.amt-custom { width: 100%; padding: 15px 16px 15px 34px; background: var(--surface2); border: 1.5px solid var(--border); border-radius: var(--r-lg); font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text); outline: none; transition: all 0.2s; }
.amt-custom:focus { border-color: var(--blue); box-shadow: var(--glow-blue); background: var(--surface); }
.payment-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.pm-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface2); border: 1.5px solid var(--border); cursor: pointer; transition: all 0.18s; }
.pm-item.active { background: var(--blue-l); border-color: var(--blue); }
.pm-icon { width: 42px; height: 42px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pm-info { flex: 1; }
.pm-name { font-size: 14px; font-weight: 600; color: var(--text); }
.pm-desc { font-size: 11px; color: var(--text4); margin-top: 1px; }
.pm-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.18s; }
.pm-item.active .pm-radio { background: var(--blue); border-color: var(--blue); }
.pm-item.active .pm-radio svg { color: #fff; }

/* ================================================================
   TOASTS
   ================================================================ */
#toast-container { position: absolute; top: 64px; left: 0; right: 0; z-index: 9999; padding: 0 14px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-lg); font-size: 13px; font-weight: 500; margin-bottom: 8px; pointer-events: auto; backdrop-filter: blur(16px); box-shadow: var(--shadow-lg); animation: toastIn 0.3s cubic-bezier(0.2,0,0,1); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.toast-hiding { animation: toastOut 0.25s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }
.toast.success { background: rgba(236,253,245,0.97); border: 1px solid rgba(16,185,129,0.25); color: #065F46; }
.toast.success svg { color: var(--success); }
.toast.error   { background: rgba(254,242,242,0.97); border: 1px solid rgba(239,68,68,0.25); color: #991B1B; }
.toast.error svg { color: var(--danger); }
.toast.info    { background: rgba(239,246,255,0.97); border: 1px solid rgba(37,99,235,0.2); color: #1D4ED8; }
.toast.info svg { color: var(--blue); }
.toast.warning { background: rgba(255,251,235,0.97); border: 1px solid rgba(245,158,11,0.2); color: #92400E; }
.toast.warning svg { color: var(--warning); }

/* Processing + Success */
.proc-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 500; gap: 16px; }
.proc-spinner { width: 48px; height: 48px; border: 3px solid var(--border); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.7s linear infinite; }
.proc-msg { font-size: 15px; color: var(--text3); font-weight: 500; }
.success-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 40px 24px; background: linear-gradient(180deg, #F0FDF4 0%, var(--bg) 100%); }
.success-icon { width: 96px; height: 96px; border-radius: 50%; background: var(--grad-green); display: flex; align-items: center; justify-content: center; box-shadow: 0 16px 48px rgba(16,185,129,0.4); animation: successPop 0.6s cubic-bezier(0.2,0,0,1); }
.success-icon svg { color: #fff; }
@keyframes successPop { 0% { transform: scale(0.3); opacity: 0; } 65% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.success-title { font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--text); text-align: center; letter-spacing: -0.8px; }
.success-sub { font-size: 14px; color: var(--text3); text-align: center; line-height: 1.65; }
.receipt-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-2xl); padding: 18px; width: 100%; box-shadow: var(--shadow-sm); }
.receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; }
.receipt-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.receipt-label { font-size: 12px; color: var(--text4); }
.receipt-val { font-size: 13px; font-weight: 600; color: var(--text); }
.receipt-total .receipt-val { font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--success); letter-spacing: -0.5px; }

/* ================================================================
   NOTIFICATIONS
   ================================================================ */
.notif-list { padding: 0 20px 80px; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.notif-item.unread { background: #fff; border-left: 3px solid var(--blue); box-shadow: var(--shadow-sm); }
.notif-icon { width: 42px; height: 42px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ni-green { background: var(--success-l); } .ni-green svg { color: var(--success); }
.ni-red   { background: var(--danger-l); }  .ni-red svg   { color: var(--danger); }
.ni-gold  { background: var(--warning-l); } .ni-gold svg  { color: var(--warning); }
.ni-blue  { background: var(--blue-l); }    .ni-blue svg  { color: var(--blue); }
.ni-violet{ background: var(--purple-l); }  .ni-violet svg{ color: var(--purple); }
.notif-body { flex: 1; }
.notif-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.notif-desc  { font-size: 12px; color: var(--text3); line-height: 1.5; }
.notif-time  { font-size: 10px; color: var(--text4); margin-top: 4px; }
.notif-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 5px; }

/* ================================================================
   PROFILE
   ================================================================ */
.profile-hero {
  padding: 80px 20px 22px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--blue-l) 0%, var(--purple-l) 100%); flex-shrink: 0;
}
.profile-hero::before { content: ''; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(37,99,235,0.1), transparent); }
.profile-av { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; border: 3px solid var(--surface); box-shadow: var(--shadow-md); margin-bottom: 14px; position: relative; background: var(--grad-primary); display: flex; align-items: center; justify-content: center; }
.profile-av img { width: 100%; height: 100%; object-fit: cover; }
.profile-av svg { color: #fff; }
.profile-name { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; margin-bottom: 3px; }
.profile-email { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.role-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; border: 1.5px solid; }
.rc-admin     { background: rgba(37,99,235,0.08);  color: var(--blue);    border-color: rgba(37,99,235,0.2); }
.rc-fundraiser{ background: rgba(16,185,129,0.08); color: var(--success); border-color: rgba(16,185,129,0.2); }
.rc-donor     { background: rgba(124,58,237,0.08); color: var(--purple);  border-color: rgba(124,58,237,0.2); }
.profile-stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 14px 20px; }
.ps-card { text-align: center; padding: 12px 8px; background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--border); box-shadow: var(--shadow-xs); }
.ps-val { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -0.3px; }
.ps-label { font-size: 10px; color: var(--text4); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.menu-section { padding: 0 20px; margin-bottom: 8px; }
.menu-section-label { font-size: 11px; font-weight: 700; color: var(--text4); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 8px; padding-left: 2px; }
.menu-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-xs); }
.menu-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; transition: background 0.15s; border-bottom: 0.5px solid var(--border); }
.menu-row:last-child { border-bottom: none; }
.menu-row:hover { background: var(--surface2); }
.menu-row:active { background: var(--surface3); }
.mr-icon { width: 38px; height: 38px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mr-info { flex: 1; }
.mr-label { font-size: 14px; font-weight: 500; color: var(--text); }
.mr-sub { font-size: 11px; color: var(--text4); margin-top: 2px; }
.mr-arrow { color: var(--text4); }

/* ================================================================
   WALLET
   ================================================================ */
.wallet-card {
  margin: 16px 20px; border-radius: var(--r-2xl); padding: 24px;
  background: var(--grad-primary); position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.wc-dots { position: absolute; inset: 0; opacity: 0.06; background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.8) 1px, transparent 0); background-size: 18px 18px; }
.wc-orb1 { position: absolute; top: -40px; right: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,0.1); }
.wc-orb2 { position: absolute; bottom: -50px; left: 20px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.wc-label { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; position: relative; }
.wc-balance { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: #fff; letter-spacing: -2px; margin-bottom: 20px; position: relative; }
.wc-chips { display: flex; gap: 8px; position: relative; }
.wc-chip { flex: 1; background: rgba(255,255,255,0.12); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--r-md); padding: 10px 12px; }
.wc-chip-val { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; }
.wc-chip-label { font-size: 10px; color: rgba(255,255,255,0.55); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.wallet-actions { display: flex; gap: 8px; padding: 0 20px; margin-bottom: 20px; }
.wa-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; background: var(--surface); border-radius: var(--r-xl); border: 1px solid var(--border); cursor: pointer; transition: all 0.18s; box-shadow: var(--shadow-xs); }
.wa-btn:hover { border-color: var(--blue); background: var(--blue-l); }
.wa-btn-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.wa-btn-label { font-size: 11px; font-weight: 600; color: var(--text3); }
.txn-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 0.5px solid var(--border); }
.txn-icon { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.txn-icon.txn-c { background: var(--success-l); } .txn-icon.txn-c svg { color: var(--success); }
.txn-icon.txn-d { background: var(--danger-l); }  .txn-icon.txn-d svg { color: var(--danger); }
.txn-info { flex: 1; }
.txn-desc { font-size: 13px; font-weight: 600; color: var(--text); }
.txn-date { font-size: 11px; color: var(--text4); margin-top: 1px; }
.txn-amt { font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.txn-c-amt { color: var(--success); }
.txn-d-amt { color: var(--danger); }

/* ================================================================
   CREATE CAMPAIGN
   ================================================================ */
.create-top { padding: 8px 20px 16px; flex-shrink: 0; background: var(--surface); border-bottom: 0.5px solid var(--border); }
.create-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.create-step-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.create-step-counter { font-size: 12px; color: var(--text4); font-weight: 500; }
.create-progress { display: flex; gap: 5px; }
.create-seg { height: 3px; flex: 1; border-radius: 2px; background: var(--border); transition: all 0.3s; }
.create-seg.done { background: var(--grad-primary); }
.create-body { flex: 1; overflow-y: auto; padding: 20px; scrollbar-width: none; }
.create-body::-webkit-scrollbar { display: none; }
.create-foot { padding: 14px 20px 20px; background: rgba(255,255,255,0.97); backdrop-filter: blur(16px); border-top: 0.5px solid var(--border); flex-shrink: 0; }
.upload-zone { border: 2px dashed var(--border2); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: all 0.2s; background: var(--surface2); text-align: center; min-height: 120px; }
.upload-zone:hover { border-color: var(--blue); background: var(--blue-l); }
.upload-zone svg { color: var(--text4); }
.upload-zone:hover svg { color: var(--blue); }
.upload-zone-text { font-size: 13px; font-weight: 600; color: var(--text3); }
.upload-zone-sub { font-size: 11px; color: var(--text4); }
.callout { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-lg); font-size: 13px; color: var(--text2); line-height: 1.5; margin-bottom: 14px; }
.callout-blue  { background: var(--blue-l); border: 1px solid rgba(37,99,235,0.15); }
.callout-blue svg { color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.callout-green { background: var(--success-l); border: 1px solid rgba(16,185,129,0.15); }
.callout-amber { background: var(--warning-l); border: 1px solid rgba(245,158,11,0.15); }
.callout-amber svg { color: var(--warning); flex-shrink: 0; margin-top: 1px; }

/* ================================================================
   ADMIN DASHBOARD
   ================================================================ */
.admin-tabs { display: flex; gap: 6px; padding: 0 20px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab { padding: 9px 16px; border-radius: var(--r-full); font-size: 13px; font-weight: 600; color: var(--text3); background: var(--surface); border: 1.5px solid var(--border); cursor: pointer; white-space: nowrap; transition: all 0.18s; flex-shrink: 0; }
.admin-tab.active { background: var(--grad-primary); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
.admin-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; padding: 0 20px; margin-bottom: 16px; }
.admin-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.as-val { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.8px; margin-bottom: 2px; }
.as-label { font-size: 11px; color: var(--text4); }
.as-badge { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; margin-top: 6px; }
.as-up { background: var(--success-l); color: var(--success); }
.as-dn { background: var(--danger-l);  color: var(--danger); }
.mini-bar-chart { display: flex; align-items: flex-end; gap: 5px; height: 56px; }
.mbc-bar { flex: 1; border-radius: 4px 4px 0 0; min-height: 4px; background: var(--grad-primary); opacity: 0.75; }
.pending-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-xs); }
.pc-top { display: flex; gap: 12px; margin-bottom: 12px; }
.pc-img { width: 52px; height: 52px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-info { flex: 1; }
.pc-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 3px; line-height: 1.3; }
.pc-meta  { font-size: 11px; color: var(--text4); }
.pc-actions { display: flex; gap: 8px; }
.analytics-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; font-size: 13px; }
.analytics-label { color: var(--text3); }
.analytics-val { font-weight: 700; color: var(--text); }
.analytics-bar { height: 6px; background: var(--surface2); border-radius: 3px; overflow: hidden; margin-bottom: 12px; }
.analytics-fill { height: 100%; border-radius: 3px; }

/* Role Select */
.role-card { display: flex; align-items: center; gap: 16px; padding: 20px; background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-2xl); cursor: pointer; transition: all 0.22s; box-shadow: var(--shadow-xs); margin-bottom: 12px; }
.role-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.role-icon { width: 54px; height: 54px; border-radius: var(--r-xl); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ri-blue   { background: var(--blue-l); }   .ri-blue svg   { color: var(--blue); }
.ri-green  { background: var(--success-l); } .ri-green svg { color: var(--success); }
.ri-purple { background: var(--purple-l); }  .ri-purple svg{ color: var(--purple); }
.role-info { flex: 1; }
.role-name { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.role-desc { font-size: 13px; color: var(--text3); line-height: 1.4; }
.role-arrow { color: var(--text4); }

/* My Campaigns */
.my-camp-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 14px 16px; margin: 0 20px 10px; box-shadow: var(--shadow-xs); cursor: pointer; }
.mc-top { display: flex; gap: 12px; margin-bottom: 10px; }
.mc-img { width: 48px; height: 48px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.mc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mc-info { flex: 1; }
.mc-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; line-height: 1.3; }
.mc-status { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: var(--r-full); font-size: 10px; font-weight: 700; }
.mcs-approved { background: var(--success-l); color: var(--success); }
.mcs-pending  { background: var(--warning-l); color: var(--warning); }
.mcs-rejected { background: var(--danger-l);  color: var(--danger); }

/* Donation History + Saved */
.dh-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 0.5px solid var(--border); cursor: pointer; transition: background 0.15s; }
.dh-item:hover { background: var(--surface2); }
.dh-img { width: 44px; height: 44px; border-radius: var(--r-md); overflow: hidden; flex-shrink: 0; background: var(--success-l); display: flex; align-items: center; justify-content: center; }
.dh-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dh-img svg { color: var(--success); }
.dh-info { flex: 1; }
.dh-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.dh-meta  { font-size: 11px; color: var(--text4); }
.dh-amt   { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--success); }
.saved-list { padding: 16px 20px 80px; display: flex; flex-direction: column; gap: 14px; }

/* Timeline */
.timeline-item { display: flex; gap: 12px; padding-bottom: 16px; }
.tl-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--blue-l); border: 2px solid var(--blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tl-dot svg { color: var(--blue); }
.tl-body { flex: 1; padding-top: 4px; }
.tl-date { font-size: 10px; color: var(--text4); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.tl-title { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.tl-text { font-size: 12px; color: var(--text3); line-height: 1.55; }

/* Skeleton + Empty */
.skeleton { background: linear-gradient(90deg, var(--surface2) 25%, #f0f4f8 50%, var(--surface2) 75%); background-size: 400% 100%; animation: shimmer 1.5s ease-in-out infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.empty-state { text-align: center; padding: 52px 24px; }
.empty-icon { margin: 0 auto 16px; width: 64px; height: 64px; background: var(--surface2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.empty-icon svg { color: var(--text4); }
.empty-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-desc { font-size: 13px; color: var(--text4); line-height: 1.65; max-width: 220px; margin: 0 auto; }

.pb-nav { padding-bottom: 90px; }

/* ================================================================
   OVERFLOW + TEXT CLAMP FIXES
   ================================================================ */

/* Campaign card text overflow fixes */
.cc-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cc-goal { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc-raised { white-space: nowrap; }
.cc-foot { flex-wrap: wrap; gap: 8px; }
.cc-stats { flex-shrink: 0; }

/* Horizontal card */
.hcc-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Detail screen */
.cd-hero-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cd-raised { white-space: nowrap; }
.cd-raised-sub { white-space: nowrap; font-size: 11px; }

/* Profile overflow */
.profile-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px;
}
.profile-email {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px;
}

/* Screen headers */
.screen-hdr-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Greeting name */
.greeting-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px;
}

/* Notification */
.notif-title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.notif-desc {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Menu rows */
.mr-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mr-sub   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Wallet balance */
.wc-balance { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Status bar time */
.status-time { overflow: hidden; white-space: nowrap; }

/* Impact hero */
.ih-amount { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Activity feed */
.act-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.act-camp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Admin stat value */
.as-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Campaign detail story */
.cd-story { word-break: break-word; }

/* Horizontal card donate button */
.hcc-body { overflow: hidden; }

/* My campaign title */
.mc-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Pending card title */
.pc-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Donation history */
.dh-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dh-meta  { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Registration role selector */
.reg-role-picker { display: flex; gap: 8px; }
.reg-role-card {
  flex: 1; padding: 14px 8px; border: 2px solid var(--border);
  border-radius: var(--r-xl); text-align: center; cursor: pointer;
  transition: all 0.2s; background: var(--surface2);
}
.reg-role-card.active { border-color: var(--blue); background: var(--blue-l); }
.reg-role-emoji { font-size: 24px; margin-bottom: 6px; }
.reg-role-name { font-size: 13px; font-weight: 700; color: var(--text2); }
.reg-role-card.active .reg-role-name { color: var(--blue); }
.reg-role-desc { font-size: 10px; color: var(--text4); margin-top: 2px; }