/* ==========================================================================
   Give-AID — premium theme
   Palette: deep emerald / teal + warm gold / amber on warm off-white.
   Dark glass navbar, gradient text, soft shadows, rounded cards.
   All class names used by the views are kept (hero, hero-stat, section,
   section-title, card-hover, cause-icon, programme-img, gallery-img,
   partner-logo, testimonial, cta-banner, admin-stat, ...).
   No external fonts / images / CDN — everything is local.
   ========================================================================== */
:root {
    --brand: #0f766e;
    --brand-deep: #0b3d2e;
    --brand-dark: #083026;
    --brand-light: #14b8a6;
    --emerald: #0b5e4b;
    --teal: #0f766e;
    --accent: #c2410c;
    --accent-warm: #d97706;
    --gold: #d9a441;
    --gold-light: #f6c453;
    --gold-soft: #fde68a;
    --ink: #1c2b26;
    --muted: #5f6f68;
    --light-bg: #f4efe6;
    --page-bg: #faf7f0;
    --card-bg: #ffffff;
    --line: #e7dfcf;
    --shadow-sm: 0 2px 10px rgba(11, 61, 46, .08);
    --shadow-md: 0 14px 34px rgba(11, 61, 46, .14);
    --shadow-lg: 0 24px 60px rgba(11, 61, 46, .20);
    --radius: 1rem;
    --ease-out: cubic-bezier(.22, 1, .36, 1);
}

html { position: relative; min-height: 100%; scroll-behavior: smooth; }
body {
    font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background-color: var(--page-bg);
    background-image: radial-gradient(1200px 500px at 85% -5%, rgba(217, 164, 65, .10), transparent 60%),
                      radial-gradient(900px 480px at -10% 20%, rgba(15, 118, 110, .08), transparent 60%);
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main { flex: 1 0 auto; }
::selection { background: rgba(217, 164, 65, .45); color: var(--brand-dark); }

/* ---- Page entrance ------------------------------------------------------ */
body.page-enter main { animation: pageIn .7s var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Scroll reveal (driven by IntersectionObserver in site.js) ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-left { transform: translateX(-26px); }
.reveal-right { transform: translateX(26px); }
.reveal-left.is-visible, .reveal-right.is-visible { transform: translateX(0); }

/* ---- 3D tilt (driven by mousemove in site.js) --------------------------- */
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.tilt .cause-icon, .tilt .card-title, .tilt .stat-value { transform: translateZ(22px); }

/* ---- Navbar: dark glass, sticky, gains shadow on scroll ----------------- */
.site-navbar, .navbar.site-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(90deg, rgba(8, 48, 38, .92), rgba(11, 94, 75, .88) 55%, rgba(15, 118, 110, .88));
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    backdrop-filter: blur(14px) saturate(1.3);
    border-bottom: 1px solid rgba(246, 196, 83, .28);
    box-shadow: 0 4px 24px rgba(8, 48, 38, .18);
    transition: box-shadow .3s ease, background .3s ease;
}
.site-navbar.scrolled { box-shadow: 0 10px 34px rgba(8, 48, 38, .38); background: linear-gradient(90deg, rgba(8, 48, 38, .97), rgba(11, 94, 75, .95) 55%, rgba(15, 118, 110, .95)); }
.navbar-brand { font-weight: 800; letter-spacing: .02em; font-size: 1.35rem; }
.navbar-brand .heart { color: var(--gold-light); filter: drop-shadow(0 0 6px rgba(246, 196, 83, .7)); animation: heartbeat 2.6s ease-in-out infinite; display: inline-block; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.18); } 24% { transform: scale(1); } 36% { transform: scale(1.12); } 48% { transform: scale(1); } }
.navbar .nav-link { font-weight: 500; color: rgba(255, 255, 255, .88) !important; position: relative; padding-bottom: .35rem; transition: color .25s ease; white-space: nowrap; }
/* Keep the navbar on one line on laptop widths: when logged in, the greeting
   plus Profile/Logout buttons add width, so tighten link spacing below 1400px. */
@media (min-width: 992px) and (max-width: 1399.98px) {
    .site-navbar .navbar-nav .nav-link { padding-left: .38rem; padding-right: .38rem; font-size: .92rem; }
    .site-navbar .navbar-brand { font-size: 1.15rem; margin-right: .6rem; }
}
.navbar .nav-link::after {
    content: ""; position: absolute; left: .5rem; right: .5rem; bottom: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--accent-warm));
    transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--gold-soft) !important; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar .dropdown-menu { border: 1px solid var(--line); border-radius: .75rem; box-shadow: var(--shadow-md); padding: .5rem; animation: dropIn .25s var(--ease-out) both; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.navbar .dropdown-item { border-radius: .5rem; transition: background .2s ease, padding-left .2s ease; }
.navbar .dropdown-item:hover { background: rgba(15, 118, 110, .10); color: var(--brand-deep); padding-left: 1.25rem; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
    background:
        radial-gradient(700px 320px at 88% 8%, rgba(246, 196, 83, .28), transparent 60%),
        radial-gradient(600px 380px at 8% 90%, rgba(20, 184, 166, .35), transparent 60%),
        linear-gradient(135deg, #083026 0%, #0b5e4b 48%, #0f766e 78%, #0e7490 100%);
    color: #fff;
    padding: 5rem 0 4.5rem;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero::after {
    content: "";
    position: absolute; right: -80px; top: -80px;
    width: 320px; height: 320px; border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    z-index: -1;
}
/* Animated floating gradient blobs + fine grid, layered under the content */
.hero-blobs { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero-blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; will-change: transform; }
.hero-blob.blob-1 { width: 420px; height: 420px; left: -90px; top: -120px; background: #14b8a6; animation: blobDrift 18s ease-in-out infinite alternate; }
.hero-blob.blob-2 { width: 360px; height: 360px; right: 6%; top: 12%; background: #d9a441; animation: blobDrift 22s ease-in-out infinite alternate-reverse; }
.hero-blob.blob-3 { width: 300px; height: 300px; left: 42%; bottom: -140px; background: #0ea5e9; animation: blobDrift 26s ease-in-out infinite alternate; }
@keyframes blobDrift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(48px, 34px, 0) scale(1.12); }
}
.hero-grid {
    position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 90% 90% at 50% 40%, #000 30%, transparent 75%);
}
.hero h1, .hero-title { font-weight: 800; font-size: 3.1rem; line-height: 1.08; letter-spacing: -.01em; }
.hero-title {
    background: linear-gradient(92deg, #ffffff 20%, #fde68a 55%, #f6c453 80%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 7s linear infinite; background-size: 200% 100%;
}
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 200% 0; } }
.hero .lead { font-size: 1.25rem; opacity: .96; max-width: 34rem; }
.hero-stat {
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 1rem;
    padding: 1.1rem .5rem;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease;
}
.hero-stat:hover { transform: translateY(-4px); border-color: rgba(246, 196, 83, .65); box-shadow: 0 18px 38px rgba(0, 0, 0, .26); }
.hero-stat .stat-value { font-size: 1.6rem; font-weight: 800; display: block; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stat .stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; opacity: .92; color: #fde68a; }

/* ---- Sections ----------------------------------------------------------- */
.section { padding: 3.75rem 0; }
.section-title { font-weight: 800; margin-bottom: .5rem; color: var(--brand-deep); letter-spacing: -.01em; position: relative; padding-bottom: .6rem; }
.section-title::after {
    content: ""; display: block; width: 64px; height: 4px; border-radius: 4px; margin-top: .55rem;
    background: linear-gradient(90deg, var(--gold), var(--accent-warm));
}
.section-title.text-center::after { margin-left: auto; margin-right: auto; }
.section-subtitle { color: var(--muted); margin-bottom: 2.25rem; }
.bg-light-section { background: linear-gradient(180deg, #f4efe6, #fbf8f1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Cards -------------------------------------------------------------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card-bg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-hover { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease; }
.card-hover:hover { transform: translateY(-8px); border-color: rgba(217, 164, 65, .55); box-shadow: var(--shadow-lg); }
.card-hover .programme-img, .card-hover .gallery-img { transition: transform .7s var(--ease-out); }
.card-hover:hover .programme-img, .card-hover:hover .gallery-img { transform: scale(1.06); }
.card-header { background: linear-gradient(90deg, rgba(11, 94, 75, .10), rgba(217, 164, 65, .12)); border-bottom: 1px solid var(--line); font-weight: 700; color: var(--brand-deep); }
.cause-icon { font-size: 2.4rem; line-height: 1; filter: drop-shadow(0 6px 10px rgba(11, 94, 75, .25)); transition: transform .35s var(--ease-out); }
.card-hover:hover .cause-icon { transform: translateY(-4px) scale(1.12) rotate(-4deg); }
.programme-img, .gallery-img { object-fit: cover; width: 100%; height: 200px; }
.gallery-img { height: 220px; }
.partner-logo { max-height: 90px; max-width: 180px; object-fit: contain; filter: grayscale(.35); opacity: .92; transition: filter .35s ease, transform .35s var(--ease-out), opacity .35s ease; }
.card-hover:hover .partner-logo { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
.testimonial { background: #fff; border-left: 4px solid var(--gold); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.testimonial:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.testimonial p { font-style: italic; color: #33463e; }
.badge { letter-spacing: .02em; }
.badge.bg-primary { background: linear-gradient(90deg, var(--teal), var(--brand-light)) !important; }
.badge.bg-warning { background: linear-gradient(90deg, var(--gold-light), var(--gold)) !important; color: #3d2c05 !important; }

/* ---- Buttons ------------------------------------------------------------ */
.btn { border-radius: .65rem; font-weight: 600; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s ease, color .25s ease, border-color .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(217, 164, 65, .6); outline-offset: 2px; }
.btn-primary { background: linear-gradient(135deg, var(--emerald), var(--teal)); border-color: transparent; box-shadow: 0 8px 20px rgba(11, 94, 75, .32); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, var(--teal), var(--brand-light)); border-color: transparent; box-shadow: 0 12px 26px rgba(11, 94, 75, .42); }
.btn-danger { background: linear-gradient(135deg, #e07b1f, #c2410c); border-color: transparent; box-shadow: 0 8px 22px rgba(194, 65, 12, .35); }
.btn-danger:hover, .btn-danger:focus { background: linear-gradient(135deg, #f59e0b, #ea580c); border-color: transparent; box-shadow: 0 14px 30px rgba(194, 65, 12, .45); }
.btn-warning { background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: transparent; color: #3d2c05; box-shadow: 0 8px 20px rgba(217, 164, 65, .35); }
.btn-warning:hover { color: #3d2c05; box-shadow: 0 12px 26px rgba(217, 164, 65, .45); }
.btn-light { box-shadow: 0 8px 20px rgba(0, 0, 0, .18); }
.btn-outline-primary { color: var(--emerald); border-color: var(--teal); }
.btn-outline-primary:hover { background: linear-gradient(135deg, var(--emerald), var(--teal)); border-color: transparent; box-shadow: 0 10px 24px rgba(11, 94, 75, .35); }
.btn-outline-light:hover { box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.btn-glow { box-shadow: 0 0 0 0 rgba(246, 196, 83, .55); animation: glowPulse 2.8s ease-in-out infinite; }
@keyframes glowPulse { 0%, 100% { box-shadow: 0 8px 22px rgba(194, 65, 12, .35), 0 0 0 0 rgba(246, 196, 83, .5); } 50% { box-shadow: 0 8px 22px rgba(194, 65, 12, .35), 0 0 0 10px rgba(246, 196, 83, 0); } }

/* ---- CTA banner --------------------------------------------------------- */
.cta-banner {
    background:
        radial-gradient(500px 220px at 90% 0%, rgba(246, 196, 83, .45), transparent 60%),
        linear-gradient(135deg, #083026 0%, #0b5e4b 55%, #d97706 130%);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.75rem 2rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 36px 36px;
}

/* ---- Footer ------------------------------------------------------------- */
footer.site-footer { background: linear-gradient(180deg, #0b3d2e, #072a20); color: #b8cdc4; margin-top: auto; border-top: 3px solid; border-image: linear-gradient(90deg, var(--teal), var(--gold), var(--accent-warm)) 1; position: relative; overflow: hidden; }
footer.site-footer::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -220px; background: radial-gradient(circle, rgba(217, 164, 65, .18), transparent 70%); pointer-events: none; }
footer.site-footer h5, footer.site-footer h6 { color: #fff; }
footer.site-footer a { color: #cfe3d9; text-decoration: none; transition: color .2s ease, padding-left .2s ease; }
footer.site-footer a:hover { color: var(--gold-soft); text-decoration: none; padding-left: 4px; }

/* ---- Forms -------------------------------------------------------------- */
.form-label { font-weight: 600; color: var(--brand-deep); }
.form-control, .form-select { border: 1px solid #d8cfba; border-radius: .6rem; background-color: #fffdf8; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .18); background-color: #fff; }
.field-validation-error, .text-danger { color: #b91c1c; }
.input-validation-error { border-color: #dc2626; }
.auth-panel { background: #fff; border: 1px solid var(--line); border-radius: 1.25rem; box-shadow: var(--shadow-md); padding: 2rem; }
.alert { border-radius: .75rem; border: none; box-shadow: var(--shadow-sm); }
.alert-info { background: linear-gradient(90deg, rgba(15, 118, 110, .12), rgba(217, 164, 65, .12)); color: #134e4a; }

/* ---- Tables ------------------------------------------------------------- */
.table th { white-space: nowrap; }
.table thead th { background: rgba(11, 94, 75, .08); color: var(--brand-deep); border-bottom: 2px solid rgba(217, 164, 65, .5); }
.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(244, 239, 230, .6); }
.table-hover tbody tr { transition: background .2s ease, transform .2s ease; }
.admin-stat { border-left: 4px solid var(--teal); background: linear-gradient(180deg, #fff, #fdfaf3); transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.admin-stat:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.admin-stat h3 { color: var(--brand-deep); font-weight: 800; font-variant-numeric: tabular-nums; }
.admin-stat.stat-green { border-left-color: #15803d; }
.admin-stat.stat-orange { border-left-color: #d97706; }
.admin-stat.stat-red { border-left-color: #b91c1c; }
.admin-stat.stat-purple { border-left-color: #7c3aed; }

/* ---- Misc polish -------------------------------------------------------- */
h1, h2, h3, h4, h5 { color: var(--brand-deep); }
.hero h1, .hero h2, .cta-banner h2, footer.site-footer h5, footer.site-footer h6 { color: #fff; }
a { color: var(--teal); }
a:hover { color: var(--emerald); }
hr { border-color: var(--line); opacity: 1; }
.list-group-item { border-color: var(--line); }

@media (max-width: 768px) {
    .hero h1, .hero-title { font-size: 2.15rem; }
    .hero { padding: 3.25rem 0 2.75rem; }
    .section { padding: 2.5rem 0; }
    .hero-blob.blob-1, .hero-blob.blob-2 { width: 260px; height: 260px; }
}

/* ---- Reduced motion: disable all animation / motion --------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    .hero-blob { animation: none !important; }
    .navbar-brand .heart { animation: none !important; }
}

/* ==========================================================================
   Merged design system (shared with the hero / flip-card markup in
   Views/Home/Index.cshtml): orbs, gradient text, donate button, hero
   visual, stat strip, 3D flip cards, data-tilt / data-parallax hooks.
   ========================================================================== */

/* ---- Hero orbs (floating gradient blobs, parallax via data-parallax) ----- */
.hero-orb { position: absolute; border-radius: 50%; filter: blur(52px); opacity: .55; pointer-events: none; will-change: transform; z-index: 0; }
.hero-orb.orb-1 { width: 380px; height: 380px; left: -90px; top: -110px; background: #14b8a6; animation: orbFloat 16s ease-in-out infinite alternate; }
.hero-orb.orb-2 { width: 330px; height: 330px; right: 4%; top: 14%; background: #d9a441; animation: orbFloat 21s ease-in-out infinite alternate-reverse; }
.hero-orb.orb-3 { width: 280px; height: 280px; left: 44%; bottom: -150px; background: #38bdf8; animation: orbFloat 25s ease-in-out infinite alternate; }
@keyframes orbFloat { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(42px, 30px, 0) scale(1.1); } }
.hero .container { position: relative; z-index: 1; }

/* ---- Hero eyebrow + gradient text --------------------------------------- */
.hero-eyebrow {
    display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: #fde68a; background: rgba(255, 255, 255, .12); border: 1px solid rgba(246, 196, 83, .45);
    border-radius: 999px; padding: .4rem .95rem;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.text-gradient, .hero-title {
    background: linear-gradient(92deg, #ffffff 15%, #fde68a 55%, #f6c453 85%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 7s linear infinite; background-size: 200% 100%;
}
.hero h1 { text-shadow: none; }

/* ---- Donate button (gold gradient) -------------------------------------- */
.btn-donate {
    background: linear-gradient(135deg, #f59e0b, #d97706 55%, #b45309);
    border-color: transparent; color: #fff !important;
    box-shadow: 0 10px 26px rgba(217, 119, 6, .45);
}
.btn-donate:hover, .btn-donate:focus { background: linear-gradient(135deg, #fbbf24, #ea580c); border-color: transparent; color: #fff !important; box-shadow: 0 14px 32px rgba(217, 119, 6, .55); }

/* ---- Hero visual: photo card + floating chips --------------------------- */
.hero-visual { position: relative; padding-bottom: 2.2rem; }
.hero-photo {
    margin: 0; border-radius: 1.25rem; overflow: hidden; position: relative;
    border: 1px solid rgba(255, 255, 255, .35);
    box-shadow: 0 28px 60px rgba(0, 0, 0, .35);
    transform-style: preserve-3d; will-change: transform;
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.hero-photo img { display: block; width: 100%; height: 320px; object-fit: cover; }
.hero-photo figcaption {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .8rem;
    background: linear-gradient(180deg, transparent, rgba(8, 48, 38, .85));
    color: #fff; font-size: .9rem; font-weight: 600;
}
.hero-chip {
    position: absolute; background: rgba(255, 255, 255, .96); color: var(--brand-deep);
    border-radius: .9rem; padding: .65rem .9rem; font-weight: 700; font-size: .92rem;
    box-shadow: 0 16px 34px rgba(0, 0, 0, .28); border: 1px solid rgba(217, 164, 65, .5);
    animation: chipFloat 5s ease-in-out infinite alternate; max-width: 240px;
}
.hero-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .78rem; }
.hero-chip.chip-1 { left: -14px; bottom: 8px; }
.hero-chip.chip-2 { right: -10px; top: -14px; animation-delay: 1.2s; }
@keyframes chipFloat { from { transform: translateY(0); } to { transform: translateY(-9px); } }

/* ---- Stats strip -------------------------------------------------------- */
.stats-strip { background: linear-gradient(180deg, #0b3d2e, #0e4d3a); margin-top: -1px; }
.stat-card {
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 1rem; padding: 1.1rem .75rem; text-align: center;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), border-color .35s ease;
}
.stat-card:hover { transform: translateY(-4px); border-color: rgba(246, 196, 83, .65); box-shadow: 0 18px 38px rgba(0, 0, 0, .26); }
.stat-card .stat-value { font-size: 1.6rem; font-weight: 800; display: block; color: #fff; font-variant-numeric: tabular-nums; }
.stat-card .stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #fde68a; }

/* ---- 3D flip cards (causes) --------------------------------------------- */
.flip-card { perspective: 1000px; min-height: 210px; cursor: pointer; outline: none; }
.flip-card:focus-visible { outline: 3px solid rgba(217, 164, 65, .7); outline-offset: 3px; border-radius: 1rem; }
.flip-inner {
    position: relative; width: 100%; height: 100%; min-height: 210px;
    transform-style: preserve-3d; transition: transform .65s var(--ease-out);
}
.flip-card:hover .flip-inner, .flip-card:focus-within .flip-inner, .flip-card.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face {
    position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 1.25rem; border-radius: 1rem;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flip-face h5 { color: var(--brand-deep); }
.flip-face.flip-back {
    transform: rotateY(180deg); color: #fff;
    background: linear-gradient(150deg, #0b5e4b, #0f766e 60%, #d97706 140%);
    border-color: transparent;
}
.flip-face.flip-back h5 { color: #fff; }
.flip-face.flip-back p { color: rgba(255, 255, 255, .92); }
.flip-hint { margin-top: .9rem; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-warm); }

/* ---- Shine sweep on the Donate / glow buttons --------------------------- */
.btn-donate, .btn-glow { position: relative; overflow: hidden; }
.btn-donate::after, .btn-glow::after {
    content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
    transform: skewX(-20deg); transition: left .6s ease; pointer-events: none;
}
.btn-donate:hover::after, .btn-glow:hover::after { left: 130%; }

/* ---- data-tilt hook (same behaviour as .tilt) --------------------------- */
[data-tilt] { transform-style: preserve-3d; will-change: transform; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }

/* ---- Donations-by-cause bar chart (Admin Dashboard, pure CSS) ----------- */
.cause-bar-row { margin-bottom: 1rem; }
.cause-bar-row:last-child { margin-bottom: 0; }
.cause-bar-label { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .3rem; }
.cause-bar-track { height: 1.1rem; background: rgba(11, 94, 75, .10); border-radius: 999px; overflow: hidden; }
.cause-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--teal)); transition: width .6s var(--ease-out); }
.cause-bar-row:nth-child(even) .cause-bar-fill { background: linear-gradient(90deg, var(--gold-light), var(--gold)); }

/* ---- How It Works step numbers (Home) ----------------------------------- */
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--emerald), var(--teal)); box-shadow: 0 8px 20px rgba(11, 94, 75, .35); }

/* ---- Reduced motion for the merged pieces ------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .hero-orb, .hero-chip { animation: none !important; }
    .flip-inner { transition-duration: .01ms !important; }
    .flip-card:hover .flip-inner, .flip-card:focus-within .flip-inner, .flip-card.flipped .flip-inner { transform: none !important; }
    .flip-face.flip-back { transform: none !important; position: relative; }
    .flip-face:first-child { display: none !important; }
}

