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

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #c7d8b5;
    color: #111;
}

.page {
    width: min(1400px, 92%);
    margin: 0 auto;
    padding: 32px 24px 56px;
}

.hero {
width: 100%;
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
background-image:
linear-gradient(to bottom, rgba(199,216,181,0.0) 60%, rgba(199,216,181,1) 100%),
linear-gradient(rgba(199,216,181,0.72), rgba(199,216,181,0.72)),
url("../images/hero-nature.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
}

.hero-content {
    width: min(100%, 1200px);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-showcase {
padding-top: 80px;
padding-bottom: 40px;
display: flex;
justify-content: center;
}

.hero-image {
width: min(100%, 900px);
border-radius: 12px;
}

.hero h1 {
    font-size: clamp(56px, 8vw, 112px);
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero p {
    font-size: 18px;
    color: #2f3a2a;
    margin-bottom: 22px;
}

.hero-buttons {
    display: inline-flex;
    gap: 12px;
    margin-bottom: 34px;
}

.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 15px;
    text-decoration: none;
    border: 1px solid #111;
    transition: 0.2s ease;
}

.btn-dark {
    background: #111;
    color: #fff;
}

.btn-light {
    background: #edf2e8;
    color: #111;
    border-color: #a7b59b;
}

.btn:hover,
.mini-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.hero-image {
    width: min(100%, 860px);
    margin: 0 auto;
    display: block;
    border-radius: 10px;
}

.impact-title {
    text-align: center;
    color: #616b5b;
    font-size: 16px;
    margin: 10px 0 34px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.stat-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.stat strong {
    display: block;
    font-size: 28px;
    margin-bottom: 6px;
}

.stat span {
    font-size: 15px;
    color: #555;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 72px;
    align-items: center;
    margin-bottom: 86px;
}

.feature.reverse {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.feature-text h2 {
    font-size: clamp(38px, 4vw, 64px);
    line-height: 1.05;
    margin-bottom: 20px;
}

.feature-text p {
    font-size: 21px;
    line-height: 1.75;
    color: #4e5748;
    max-width: 760px;
    margin-bottom: 24px;
}

.feature-media {
    display: flex;
    justify-content: center;
}

.feature-image {
    width: 100%;
    max-width: 420px;
    display: block;
    border-radius: 10px;
}

.mini-btn {
    display: inline-block;
    background: #111;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
    padding: 12px 18px;
    border-radius: 10px;
}

.team-section {
    padding-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.section-title {
    text-align: center;
    font-size: clamp(28px, 3vw, 44px);
    margin-top: 0;
    margin-bottom: 50px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-bottom: 120px;
}

.team-card h3 {
    font-size: 22px;
    margin-bottom: 6px;
}

.team-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #3f4d39;
}

.team-card p {
    font-size: 15px;
    line-height: 1.8;
    color: #535c4e;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 120px;
}

.mission-box h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.mission-box p {
    font-size: 15px;
    line-height: 1.8;
    color: #535c4e;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 14px;
    color: #4d5648;
    flex-wrap: wrap;
}

.footer-left,
.footer-right {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.footer a {
    color: inherit;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .page {
        width: min(100%, 94%);
        padding: 24px 16px 44px;
    }

    .stats,
    .team-grid,
    .mission-grid,
    .feature,
    .feature.reverse {
        grid-template-columns: 1fr;
    }

    .feature,
    .feature.reverse {
        gap: 24px;
        margin-bottom: 56px;
    }

    .stat {
        justify-content: flex-start;
    }

    .feature-image {
        max-width: 320px;
    }

    .feature-text p {
        font-size: 18px;
    }

    .stat strong {
        font-size: 22px;
    }
}

.learn-btn {
margin-top: 20px;
display: inline-block;
padding: 12px 22px;
background: #111;
color: #fff;
border-radius: 12px;
text-decoration: none;
font-size: 14px;
transition: 0.2s;
}

.learn-btn:hover {
transform: translateY(-2px);
opacity: 0.9;
}

html {
scroll-behavior: smooth;
}

.profile-pic {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 14px;
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.donation-section {
    margin-top: 40px;
    margin-bottom: 120px;
    padding: 60px 40px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    text-align: center;
}

.donation-text {
    max-width: 850px;
    margin: 0 auto 40px;
    font-size: 18px;
    line-height: 1.8;
    color: #4e5748;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.donation-card {
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    padding: 28px 22px;
}

.donation-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.donation-amount {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 14px;
}

.donation-card p {
    font-size: 15px;
    line-height: 1.7;
    color: #535c4e;
    margin-bottom: 18px;
}

.donation-progress {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 16px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #111;
    border-radius: 999px;
}

.donation-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
}

.donation-modal.show {
    display: flex;
}

.donation-modal-content {
    width: min(100%, 500px);
    background: #eef4e8;
    border-radius: 18px;
    padding: 32px 24px;
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

.selected-amount-text {
    font-size: 18px;
    margin-top: 14px;
    margin-bottom: 10px;
    color: #2f3a2a;
}

.payment-text {
    font-size: 15px;
    color: #4e5748;
    margin-bottom: 24px;
}

.payment-options {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.payment-btn {
    border: none;
    background: #111;
    color: #fff;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.payment-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.payment-info {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 14px;
    padding: 18px 16px;
    font-size: 15px;
    line-height: 1.7;
    color: #3f4d39;
}

.donate-btn {
    border: none;
    cursor: pointer;
}

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    padding: 20px;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    width: min(100%, 420px);
    background: #eef4e8;
    border-radius: 18px;
    padding: 32px 24px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.auth-modal-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #111;
    text-align: center;
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 14px;
    border: none;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
    color: #111;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-form label {
    font-size: 14px;
    font-weight: 600;
    color: #2f3a2a;
}

.auth-form input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b7c6aa;
    border-radius: 12px;
    background: #fff;
    font-size: 15px;
    outline: none;
}

.auth-form input:focus {
    border-color: #111;
}

.auth-submit-btn {
    margin-top: 8px;
    border: none;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s ease;
}

.auth-submit-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .donation-grid {
        grid-template-columns: 1fr;
    }

    .donation-section {
        padding: 40px 20px;
    }

    .progress-header {
        flex-direction: column;
        gap: 8px;
    }
}

.donation-stats {
display: flex;
justify-content: center;
gap: 60px;
margin-top: 40px;
flex-wrap: wrap;
}

.donation-stat {
text-align: center;
}

.donation-stat h3 {
font-size: 32px;
margin-bottom: 6px;
}

.donation-stat p {
font-size: 14px;
color: #4e5748;
}
.auth-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    min-width: 280px;
    max-width: 420px;
    background: #111;
    color: #fff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: 0.25s ease;
    z-index: 20000;
}

.auth-toast.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.auth-toast.success {
    background: #1f6f3d;
}

.auth-toast.error {
    background: #8f1d1d;
}

.auth-toast.info {
    background: #111;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 52px;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.auth-help {
    font-size: 13px;
    line-height: 1.6;
    color: #4e5748;
}

.auth-link-btn {
    border: none;
    background: transparent;
    color: #111;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    padding: 4px 0 0;
}

.auth-link-btn:hover {
    text-decoration: underline;
}

.captcha-row {
    display: flex;
    gap: 10px;
}

.captcha-refresh-btn {
    border: none;
    background: #111;
    color: #fff;
    border-radius: 12px;
    padding: 0 16px;
    cursor: pointer;
}

.hidden {
    display: none;
}

.password-field {
    position: relative;
    width: 100%;
}

.password-input {
    width: 100%;
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
}

.password-toggle:hover {
    color: #2f3133;
}

.password-toggle:focus {
    outline: none;
}

.eye-icon {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}

.eye-closed {
    display: none;
}

.password-toggle.active .eye-open {
    display: none;
}

.password-toggle.active .eye-closed {
    display: block;
}

.landing-insights-section {
    width: min(1200px, 92%);
    margin: 50px auto 0;
}

.landing-map-card,
.landing-donation-card,
.landing-chart-card {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(31, 22, 61, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 24px;
}

.landing-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.landing-card-header h3 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    color: #ffffff;
}

.landing-card-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
}

.landing-map-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
}

.landing-map-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.deployment-map-frame {
    width: 100%;
    min-height: 360px;
    border: 0;
    border-radius: 16px;
}

.map-note {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
}

.map-note h4 {
    margin: 0 0 6px;
    color: #ffffff;
}

.map-note p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.5;
}

.landing-location-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-card {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px;
}

.location-card h4 {
    margin: 0 0 10px;
    color: #2b1f47;
}

.location-card p {
    margin: 0 0 12px;
    color: #615b72;
    line-height: 1.5;
}

.location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.location-meta span {
    background: #ffffff;
    color: #4c4660;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 0.86rem;
    border: 1px solid rgba(120, 89, 189, 0.12);
}

.landing-donation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 22px;
}

.landing-donor-list,
.landing-leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-donor-item,
.leaderboard-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 16px;
}

.landing-donor-item strong,
.leaderboard-info strong {
    display: block;
    color: #2b1f47;
    margin-bottom: 4px;
}

.landing-donor-item span,
.leaderboard-info span {
    display: block;
    color: #6a647b;
    font-size: 0.9rem;
}

.donor-amount,
.leaderboard-amount {
    font-weight: 700;
    color: #2b1f47;
    white-space: nowrap;
}

.leaderboard-header {
    align-items: flex-start;
}

.leaderboard-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.leaderboard-tab {
    border: 1px solid #c7b7ea;
    background: #ffffff;
    color: #5b4c82;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
}

.leaderboard-tab.active {
    background: #6f4db8;
    color: #ffffff;
    border-color: #6f4db8;
}

.leaderboard-rank {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ece6fb;
    color: #4a3878;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.leaderboard-info {
    flex: 1;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.rank-badge.gold {
    background: #fff2c7;
    color: #8a6500;
}

.rank-badge.silver {
    background: #eef1f5;
    color: #5f6c78;
}

.rank-badge.bronze {
    background: #f5e2d4;
    color: #8b5833;
}

.landing-chart-card {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .landing-map-layout,
    .landing-donation-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .landing-card-header,
    .leaderboard-header,
    .landing-donor-item,
    .leaderboard-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .donor-amount,
    .leaderboard-amount {
        white-space: normal;
    }
}

.chart-box {
    position: relative;
    width: 100%;
    height: 320px;
}

#dailyDonationChart {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.auth-link-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.payment-btn.active {
    background: #5a3fa3;
}

#checkoutFormContainer {
    display: grid;
    gap: 12px;
}

.reference-input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
}


.location-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.location-card-actions {
    margin-top: 12px;
}

.map-view-btn {
    border: 0;
    border-radius: 999px;
    padding: 10px 14px;
    background: #5b4caf;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.map-view-btn:hover {
    background: #4b3d9b;
}

.leaflet-popup-content {
    font-family: inherit;
    line-height: 1.5;
}

.map-popup h4 {
    margin: 0 0 8px;
    color: #2b1f47;
}

.map-popup p {
    margin: 0 0 10px;
    color: #615b72;
}

.map-popup-meta {
    display: grid;
    gap: 6px;
    font-size: 0.9rem;
    color: #4c4660;
}
