/* ============================================================
   HopeFund — Global Grant & Relief Foundation
   Design System
   ============================================================ */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --navy-900: #0b1220;
  --navy-800: #0f172a;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --blue-500: #3b82f6;
  --purple-500: #8b5cf6;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .14);
  --font: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --grad: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
  --grad-warm: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--slate-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 15px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 15px;
  transition: all .2s ease; white-space: nowrap; border: 1px solid transparent;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(13,148,136,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(13,148,136,.38); }
.btn-amber { background: var(--grad-warm); color: #fff; box-shadow: 0 8px 20px rgba(245,158,11,.3); }
.btn-amber:hover { transform: translateY(-2px); }
.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--slate-200); }
.btn-outline:hover { border-color: var(--teal-500); background: var(--teal-50); }
.btn-ghost { background: transparent; color: var(--slate-700); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-danger { background: var(--red-500); color: #fff; }
.btn-danger:hover { background: var(--red-600); }
.btn-success { background: var(--green-600); color: #fff; }
.btn-success:hover { background: var(--green-500); }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--slate-700); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--slate-400); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--slate-200);
  border-radius: 11px; background: #fff; color: var(--slate-900); transition: all .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.12);
}
.textarea { resize: vertical; min-height: 110px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Badges / Pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-approved { background: #dcfce7; color: #15803d; }
.badge-declined { background: #fee2e2; color: #b91c1c; }
.badge-reversed { background: #ede9fe; color: #6d28d9; }
.badge-info { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: var(--slate-100); color: var(--slate-600); }

/* ---------- Toast ---------- */
#toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 280px; max-width: 380px; padding: 14px 18px; border-radius: 12px; color: #fff;
  font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start;
  animation: slideIn .3s ease; background: var(--slate-900);
}
.toast.success { background: linear-gradient(135deg,#16a34a,#22c55e); }
.toast.error { background: linear-gradient(135deg,#dc2626,#ef4444); }
.toast.info { background: linear-gradient(135deg,#0f766e,#14b8a6); }
@keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(11,18,32,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 5000; padding: 20px;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .25s ease;
}
.modal.wide { max-width: 760px; }
@keyframes pop { from { transform: scale(.95) translateY(10px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.modal-head { padding: 24px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; }
.modal-head h3 { font-size: 20px; }
.modal-body { padding: 20px 28px 28px; }
.modal-close { font-size: 26px; line-height: 1; color: var(--slate-400); padding: 4px 8px; border-radius: 8px; }
.modal-close:hover { background: var(--slate-100); color: var(--slate-700); }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.85);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(226,232,240,.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 21px; letter-spacing: -.4px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 21px; box-shadow: 0 6px 16px rgba(13,148,136,.35);
}
.logo span { color: var(--teal-700); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 15px; font-weight: 600; color: var(--slate-600); transition: color .15s; }
.nav-links a:hover { color: var(--teal-700); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.menu-toggle { display: none; font-size: 26px; }

.hero { position: relative; overflow: hidden; padding: 84px 0 96px; background: radial-gradient(1200px 600px at 80% -10%, #ccfbf1 0%, transparent 60%), radial-gradient(900px 500px at -10% 30%, #fef3c7 0%, transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--teal-100);
  color: var(--teal-700); font-weight: 700; font-size: 13px; padding: 7px 15px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: 54px; line-height: 1.06; letter-spacing: -1.6px; margin: 22px 0 20px; font-weight: 800; }
.hero h1 .accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--slate-600); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.hero-trust .t { font-size: 13px; color: var(--slate-500); display: flex; align-items: center; gap: 7px; font-weight: 600; }
.hero-trust .t b { color: var(--slate-900); }

.hero-visual { position: relative; }
.hero-card {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 26px;
  border: 1px solid var(--slate-100); position: relative; z-index: 2;
}
.hero-card .hc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-card .hc-title { font-size: 13px; color: var(--slate-500); font-weight: 700; }
.hero-balance { font-size: 38px; font-weight: 800; letter-spacing: -1px; }
.hero-balance small { font-size: 14px; color: var(--slate-400); font-weight: 600; }
.hero-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.hero-mini .m { background: var(--slate-50); border-radius: 12px; padding: 13px 15px; }
.hero-mini .m .l { font-size: 11px; color: var(--slate-400); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.hero-mini .m .v { font-size: 17px; font-weight: 800; margin-top: 3px; }
.float-badge {
  position: absolute; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 16px;
  display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 13px; z-index: 3;
  border: 1px solid var(--slate-100);
}
.float-badge .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; }
.fb-1 { top: -18px; left: -22px; animation: floaty 4s ease-in-out infinite; }
.fb-2 { bottom: 26px; right: -26px; animation: floaty 5s ease-in-out infinite .6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.stats-bar { background: var(--navy-900); color: #fff; padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stats-grid .s .n { font-size: 38px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg,#5eead4,#fbbf24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid .s .l { font-size: 14px; color: var(--slate-400); font-weight: 600; margin-top: 2px; }

.section { padding: 88px 0; }
.section.alt { background: var(--slate-50); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.section-head .kicker { color: var(--teal-600); font-weight: 800; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; }
.section-head h2 { font-size: 40px; letter-spacing: -1.2px; margin: 12px 0 14px; font-weight: 800; }
.section-head p { color: var(--slate-600); font-size: 17px; }

.grants-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grant-card {
  background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 24px;
  transition: all .25s ease; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.grant-card::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.grant-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal-100); }
.grant-card:hover::after { transform: scaleX(1); }
.grant-icon { width: 54px; height: 54px; border-radius: 14px; background: var(--teal-50); display: grid; place-items: center; font-size: 26px; margin-bottom: 16px; }
.grant-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.3px; }
.grant-card p { font-size: 14px; color: var(--slate-500); margin-bottom: 14px; min-height: 42px; }
.grant-card .max { font-size: 13px; font-weight: 800; color: var(--teal-700); }
.grant-card .max span { color: var(--slate-400); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 26px; position: relative; }
.step { text-align: center; position: relative; }
.step .num {
  width: 64px; height: 64px; border-radius: 20px; background: #fff; border: 2px solid var(--teal-100);
  display: grid; place-items: center; font-size: 26px; margin: 0 auto 18px; box-shadow: var(--shadow); position: relative; z-index: 2;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--slate-500); }

.feature-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.feature-list { display: flex; flex-direction: column; gap: 22px; }
.feature-item { display: flex; gap: 16px; }
.feature-item .ic { flex: none; width: 48px; height: 48px; border-radius: 13px; background: var(--teal-50); display: grid; place-items: center; font-size: 22px; }
.feature-item h4 { font-size: 17px; margin-bottom: 3px; }
.feature-item p { font-size: 14px; color: var(--slate-500); }
.feature-visual { background: var(--grad); border-radius: var(--radius-lg); padding: 40px; color: #fff; box-shadow: var(--shadow-lg); }
.feature-visual h3 { font-size: 24px; margin-bottom: 20px; }
.fv-row { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.fv-row:last-child { border-bottom: none; }
.fv-row b { font-weight: 800; }

.testimonials { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--slate-100); }
.testimonial .quote { font-size: 15px; color: var(--slate-600); margin-bottom: 20px; font-style: italic; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.testimonial .who .n { font-weight: 700; font-size: 15px; }
.testimonial .who .c { font-size: 13px; color: var(--slate-400); }
.stars { color: var(--amber-500); margin-bottom: 14px; font-size: 15px; }

.faq { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--slate-100); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; padding: 20px 24px; font-weight: 700; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { transition: transform .25s; color: var(--teal-600); font-size: 20px; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 24px 22px; color: var(--slate-600); font-size: 15px; }

.cta-band { background: var(--grad); border-radius: var(--radius-lg); padding: 64px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; width: 400px; height: 400px; background: rgba(255,255,255,.08); border-radius: 50%; top: -200px; right: -100px; }
.cta-band h2 { font-size: 38px; letter-spacing: -1px; margin-bottom: 14px; position: relative; }
.cta-band p { font-size: 17px; opacity: .92; margin-bottom: 28px; position: relative; }

.footer { background: var(--navy-900); color: var(--slate-400); padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { display: block; font-size: 14px; padding: 5px 0; transition: color .15s; }
.footer a:hover { color: var(--teal-400); }
.footer .brand { color: #fff; }
.footer .desc { font-size: 14px; margin: 16px 0; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 16px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-aside { background: var(--grad); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: rgba(255,255,255,.07); bottom: -220px; left: -160px; }
.auth-aside::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); top: -120px; right: -80px; }
.auth-aside .logo { color: #fff; position: relative; z-index: 2; }
.auth-aside .logo span { color: #fff; }
.auth-aside .logo-mark { background: rgba(255,255,255,.18); box-shadow: none; }
.auth-aside-body { position: relative; z-index: 2; }
.auth-aside-body h2 { font-size: 34px; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.auth-aside-body p { font-size: 16px; opacity: .92; max-width: 420px; }
.auth-perks { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.auth-perks .p { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 600; }
.auth-perks .p .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); display: grid; place-items: center; }
.auth-aside-foot { position: relative; z-index: 2; font-size: 13px; opacity: .8; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; overflow-y: auto; }
.auth-card { width: 100%; max-width: 470px; }
.auth-card h1 { font-size: 30px; letter-spacing: -.8px; margin-bottom: 6px; }
.auth-card .sub { color: var(--slate-500); margin-bottom: 28px; }
.auth-card .switch { text-align: center; margin-top: 22px; font-size: 14px; color: var(--slate-500); }
.auth-card .switch a { color: var(--teal-700); font-weight: 700; }
.auth-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--slate-500); margin-bottom: 24px; font-weight: 600; }
.steps-dots { display: flex; gap: 8px; margin-bottom: 24px; }
.steps-dots .d { height: 5px; border-radius: 3px; background: var(--slate-200); flex: 1; transition: background .2s; }
.steps-dots .d.active { background: var(--teal-500); }

/* ============================================================
   APP SHELL (dashboard + admin)
   ============================================================ */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: var(--slate-50); }
.sidebar { background: var(--navy-900); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { color: #fff; padding: 6px 10px 22px; font-size: 19px; }
.sidebar .logo span { color: #fff; }
.sidebar .logo-mark { width: 36px; height: 36px; font-size: 18px; background: var(--grad); }
.side-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.side-nav .grp { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--slate-500); padding: 16px 12px 7px; font-weight: 800; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 11px; color: var(--slate-300); font-weight: 600; font-size: 14.5px; transition: all .15s; position: relative; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(13,148,136,.3); }
.side-link .ic { font-size: 17px; width: 20px; text-align: center; }
.side-link .count { margin-left: auto; background: var(--amber-500); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.side-foot { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; margin-top: 14px; }
.side-user { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.side-user .av { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.side-user .info { min-width: 0; }
.side-user .n { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .e { font-size: 11.5px; color: var(--slate-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { background: #fff; border-bottom: 1px solid var(--slate-200); padding: 0 28px; height: 70px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 500; }
.topbar h1 { font-size: 20px; letter-spacing: -.4px; }
.topbar .sub { font-size: 13px; color: var(--slate-400); }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; background: var(--slate-50); display: grid; place-items: center; font-size: 18px; position: relative; border: 1px solid var(--slate-100); transition: all .15s; }
.icon-btn:hover { background: var(--teal-50); border-color: var(--teal-100); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); border: 2px solid #fff; }
.menu-toggle-app { display: none; }
.content { padding: 28px; flex: 1; }
.page { display: none; animation: fadeUp .3s ease; }
.page.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Cards */
.card { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.card-head { padding: 20px 24px; border-bottom: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.card-head h3 { font-size: 17px; }
.card-head .sub { font-size: 13px; color: var(--slate-400); }

.balance-card { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 16px 40px rgba(13,148,136,.3); position: relative; overflow: hidden; }
.balance-card::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.09); top: -120px; right: -60px; }
.balance-card .lbl { font-size: 13px; opacity: .85; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.balance-card .amt { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; margin: 6px 0 4px; position: relative; }
.balance-card .meta { font-size: 13px; opacity: .88; position: relative; }
.balance-card .acct { margin-top: 20px; display: flex; gap: 26px; position: relative; flex-wrap: wrap; }
.balance-card .acct .a { font-size: 12px; opacity: .85; }
.balance-card .acct .a b { display: block; font-size: 15px; opacity: 1; margin-top: 2px; letter-spacing: .5px; }

.stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat .top { display: flex; justify-content: space-between; align-items: flex-start; }
.stat .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin-top: 12px; }
.stat .l { font-size: 13px; color: var(--slate-500); font-weight: 600; }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-top: 22px; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* Tables */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; padding: 13px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--slate-500); font-weight: 800; border-bottom: 1px solid var(--slate-200); background: var(--slate-50); white-space: nowrap; }
table.tbl td { padding: 15px 16px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
table.tbl tr:hover td { background: var(--slate-50); }
table.tbl .strong { font-weight: 700; }
table.tbl .muted { color: var(--slate-400); font-size: 13px; }
.empty { text-align: center; padding: 54px 20px; color: var(--slate-400); }
.empty .ic { font-size: 44px; margin-bottom: 12px; }
.empty h4 { color: var(--slate-600); font-size: 17px; margin-bottom: 4px; }
.empty p { font-size: 14px; }

/* Tabs / filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 15px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--slate-100); color: var(--slate-600); transition: all .15s; }
.chip:hover { background: var(--slate-200); }
.chip.active { background: var(--teal-700); color: #fff; }

/* Notification list */
.notif { display: flex; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--slate-100); }
.notif:last-child { border-bottom: none; }
.notif.unread { background: var(--teal-50); }
.notif .ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--slate-100); }
.notif .t { font-weight: 700; font-size: 14.5px; }
.notif .b { font-size: 13.5px; color: var(--slate-500); margin-top: 2px; }
.notif .time { font-size: 12px; color: var(--slate-400); margin-top: 5px; }

/* Chat */
.chat { display: grid; grid-template-columns: 320px 1fr; height: calc(100vh - 70px - 56px); min-height: 520px; background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.chat-list { border-right: 1px solid var(--slate-100); overflow-y: auto; }
.chat-list-head { padding: 18px; border-bottom: 1px solid var(--slate-100); display: flex; justify-content: space-between; align-items: center; }
.chat-item { padding: 15px 18px; border-bottom: 1px solid var(--slate-100); cursor: pointer; transition: background .15s; }
.chat-item:hover { background: var(--slate-50); }
.chat-item.active { background: var(--teal-50); border-left: 3px solid var(--teal-600); }
.chat-item .n { font-weight: 700; font-size: 14.5px; display: flex; justify-content: space-between; gap: 8px; }
.chat-item .p { font-size: 13px; color: var(--slate-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.chat-item .unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red-500); flex: none; }
.chat-main { display: flex; flex-direction: column; min-width: 0; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--slate-100); display: flex; align-items: center; gap: 12px; }
.chat-body { flex: 1; overflow-y: auto; padding: 22px; background: var(--slate-50); display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 74%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; position: relative; }
.msg .who { font-size: 11.5px; font-weight: 800; opacity: .8; margin-bottom: 3px; }
.msg .time { font-size: 11px; opacity: .6; margin-top: 6px; }
.msg.user { align-self: flex-start; background: #fff; border: 1px solid var(--slate-200); border-bottom-left-radius: 5px; }
.msg.admin { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 5px; }
.msg img { border-radius: 10px; margin-top: 8px; max-width: 260px; cursor: pointer; }
.chat-input { border-top: 1px solid var(--slate-100); padding: 14px; display: flex; gap: 10px; align-items: flex-end; background: #fff; }
.chat-input textarea { flex: 1; border: 1.5px solid var(--slate-200); border-radius: 12px; padding: 11px 14px; resize: none; max-height: 120px; min-height: 46px; }
.chat-input textarea:focus { outline: none; border-color: var(--teal-500); }
.attach-btn { width: 46px; height: 46px; border-radius: 12px; background: var(--slate-50); border: 1.5px solid var(--slate-200); display: grid; place-items: center; font-size: 18px; flex: none; }
.attach-btn:hover { background: var(--teal-50); border-color: var(--teal-200); }
.attach-preview { font-size: 12px; color: var(--teal-700); font-weight: 700; padding: 0 6px 6px; }

/* Detail rows */
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 16px; font-size: 14px; }
.dl dt { color: var(--slate-500); font-weight: 600; }
.dl dd { font-weight: 600; word-break: break-word; }

/* Misc */
.section-title { font-size: 18px; margin-bottom: 16px; letter-spacing: -.3px; }
.mt-24 { margin-top: 24px; } .mt-16 { margin-top: 16px; } .mb-16 { margin-bottom: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.text-muted { color: var(--slate-500); }
.text-sm { font-size: 13px; }
.pill-soft { background: var(--teal-50); color: var(--teal-700); font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg,#f1f5f9 25%,#e2e8f0 50%,#f1f5f9 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Mobile */
@media (max-width: 1024px) {
  .hero-grid, .feature-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 42px; }
  .grants-grid { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; z-index: 2000; transform: translateX(-100%); transition: transform .25s; width: 264px; }
  .sidebar.open { transform: translateX(0); }
  .menu-toggle-app { display: grid; }
  .stat-grid { grid-template-columns: repeat(2,1fr); }
  .chat { grid-template-columns: 1fr; }
  .chat-list { display: none; }
  .chat.mobile-list .chat-list { display: block; }
  .chat.mobile-list .chat-main { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px; border-bottom: 1px solid var(--slate-200); }
  .menu-toggle { display: block; }
  .hero h1 { font-size: 34px; }
  .section-head h2 { font-size: 30px; }
  .grants-grid, .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .content { padding: 18px; }
  .cta-band { padding: 40px 24px; }
  .cta-band h2 { font-size: 28px; }
  .dl { grid-template-columns: 1fr; gap: 3px 0; }
  .dl dd { margin-bottom: 10px; }
}

/* ============================================================
   Support us / Deposit
   ============================================================ */
.dep-hero { background: var(--grad); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: 0 16px 40px rgba(13,148,136,.28); position: relative; overflow: hidden; }
.dep-hero::before { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,.09); top: -130px; right: -70px; }
.dep-hero h2 { font-size: 28px; letter-spacing: -.6px; position: relative; }
.dep-hero p { margin-top: 10px; max-width: 720px; opacity: .95; line-height: 1.65; position: relative; }
.dep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 760px) { .dep-grid { grid-template-columns: 1fr; } }
.dep-card { display: flex; flex-direction: column; }
.dep-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dep-card-head b { font-size: 16px; }
.dep-ic { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--teal-50); color: var(--teal-700); display: grid; place-items: center; font-size: 20px; }
.dep-net { font-size: 12px; color: var(--slate-400); font-weight: 600; }
.dep-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; background: var(--slate-50); border: 1px solid var(--slate-200); border-radius: 11px; margin-top: 9px; }
.dep-field-txt { min-width: 0; }
.dep-l { font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--slate-500); font-weight: 800; }
.dep-v { font-weight: 700; font-size: 14.5px; word-break: break-all; }
.copy-btn { flex: none; background: #fff; border: 1.5px solid var(--slate-200); color: var(--teal-700); font-weight: 700; font-size: 12.5px; padding: 8px 12px; border-radius: 9px; transition: all .15s; white-space: nowrap; }
.copy-btn:hover { border-color: var(--teal-500); background: var(--teal-50); }
.copy-btn.copied { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.dep-wallet { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; font-weight: 700; background: var(--slate-50); border: 1px dashed var(--slate-300); border-radius: 11px; padding: 12px 14px; margin-bottom: 12px; word-break: break-all; color: var(--slate-700); }
.dep-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 13px 16px; font-size: 13.5px; margin-bottom: 16px; line-height: 1.55; }
.dep-note { background: var(--teal-50); border: 1px solid var(--teal-100); color: var(--teal-800); border-radius: 12px; padding: 14px 18px; font-size: 13.5px; line-height: 1.6; }

/* Admin payment editors */
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--slate-700); cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--teal-600); cursor: pointer; }
.adm-method { border: 1px solid var(--slate-200); border-radius: 14px; padding: 16px; margin-bottom: 14px; background: var(--slate-50); }
.adm-method-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.adm-fields { margin-top: 4px; }
.adm-field-row { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 10px; margin-bottom: 8px; align-items: center; }
@media (max-width: 640px) { .adm-field-row { grid-template-columns: 1fr; } }
.adm-method .input { background: #fff; }
.adm-wallet-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; padding: 10px; border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; }
.adm-wallet-row .input { flex: 1 1 150px; min-width: 0; background: #fff; }
.adm-wallet-row .input.addr { flex: 2 1 240px; }
.adm-wallet-row .btn { flex: none; }
