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

:root {
    --primary: #6E56CF;
    --primary-dark: #5B45B0;
    --accent: #F4A261;
    --bg-light: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-dim: #666;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --radius: 16px;
    --success: #22C55E;
    --error: #EF4444;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === Header === */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 999;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-content {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 0;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    text-decoration: none; font-size: 28px; font-weight: 800;
    color: var(--primary); transition: transform 0.3s;
}
.logo:hover { transform: scale(1.05); }
.logo img { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; }
.nav { display: flex; gap: 32px; }
.nav a {
    text-decoration: none; color: var(--text-dark); font-weight: 500;
    font-size: 16px; transition: color 0.3s; position: relative;
}
.nav a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.3s;
}
.nav a:hover { color: var(--primary); }
.nav a:hover::after { width: 100%; }
.nav a.active { color: var(--primary); }
.nav a.active::after { width: 100%; }

.mobile-menu-btn {
    display: none; background: none; border: none; font-size: 24px;
    color: var(--primary); cursor: pointer; padding: 8px;
}

/* === Hero === */
.donate-hero {
    background: linear-gradient(135deg, #22C55E 0%, #4ADE80 40%, #6E56CF 100%);
    padding: 80px 0 60px; color: white; text-align: center;
    position: relative; overflow: hidden;
}
.donate-hero::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}
.donate-hero .container { position: relative; z-index: 1; }
.donate-hero h1 {
    font-family: 'Montserrat', sans-serif; font-size: 48px;
    font-weight: 800; margin-bottom: 16px;
}
.donate-hero p { font-size: 20px; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.heart-icon { font-size: 64px; margin-bottom: 20px; display: block; }

/* === Message Section === */
.message-section {
    padding: 80px 0 40px; text-align: center;
}
.message-card {
    max-width: 800px; margin: 0 auto; background: white;
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
    padding: 48px 40px;
}
.message-card h2 {
    font-family: 'Montserrat', sans-serif; font-size: 28px;
    font-weight: 700; margin-bottom: 24px; color: var(--text-dark);
}
.message-card p {
    font-size: 17px; color: var(--text-dim); line-height: 1.8;
    margin-bottom: 16px;
}
.message-card p:last-child { margin-bottom: 0; }
.message-card .highlight {
    color: var(--primary); font-weight: 600;
}

/* === Why Support === */
.why-section {
    padding: 40px 0 60px;
}
.why-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: 28px;
    font-weight: 700; text-align: center; margin-bottom: 40px;
}
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; max-width: 960px; margin: 0 auto;
}
.why-card {
    background: white; border-radius: var(--radius); padding: 32px 24px;
    box-shadow: var(--shadow-sm); text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.why-card:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md);
}
.why-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(110,86,207,0.1), rgba(110,86,207,0.05));
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px; color: var(--primary);
}
.why-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.why-card p { font-size: 15px; color: var(--text-dim); line-height: 1.6; }

/* === Donate Form === */
.donate-section {
    padding: 40px 0 80px; text-align: center;
}
.donate-section h2 {
    font-family: 'Montserrat', sans-serif; font-size: 28px;
    font-weight: 700; margin-bottom: 12px;
}
.donate-section > .container > p {
    color: var(--text-dim); margin-bottom: 32px; font-size: 16px;
}

.donate-form {
    max-width: 480px; margin: 0 auto; background: white;
    border-radius: var(--radius); box-shadow: var(--shadow-md);
    padding: 40px 32px;
}

.preset-amounts {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 12px; margin-bottom: 24px;
}
.preset-btn {
    padding: 14px 8px; border: 2px solid #E5E7EB; border-radius: 12px;
    background: white; font-size: 16px; font-weight: 600; cursor: pointer;
    transition: all 0.3s; color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}
.preset-btn:hover {
    border-color: var(--primary); color: var(--primary);
}
.preset-btn.selected {
    border-color: var(--primary); background: rgba(110,86,207,0.08);
    color: var(--primary);
}

.custom-amount {
    margin-bottom: 24px;
}
.custom-amount label {
    display: block; font-size: 14px; font-weight: 500;
    color: var(--text-dim); margin-bottom: 8px; text-align: left;
}
.amount-input-wrap {
    display: flex; align-items: center; gap: 12px;
}
.amount-input {
    flex: 1; padding: 16px 20px; border: 2px solid #E5E7EB;
    border-radius: 14px; font-size: 20px; font-weight: 600;
    font-family: 'Inter', sans-serif; text-align: center;
    transition: border-color 0.3s, box-shadow 0.3s; outline: none;
    background: white;
}
.amount-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(110, 86, 207, 0.15);
}
.amount-input::placeholder { color: #ccc; font-weight: 400; }
.currency-label {
    font-size: 20px; font-weight: 600; color: var(--text-dim);
}

.btn-donate {
    width: 100%; padding: 18px 32px;
    background: linear-gradient(135deg, #22C55E, #16A34A);
    color: white; border: none; border-radius: 14px;
    font-size: 18px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; font-family: 'Inter', sans-serif;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    position: relative;
}
.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.3);
}
.btn-donate:active { transform: translateY(0); }
.btn-donate:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-donate .spinner {
    display: none; width: 22px; height: 22px;
    border: 3px solid rgba(255,255,255,0.3); border-top-color: white;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
.btn-donate.loading .btn-text { display: none; }
.btn-donate.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.donate-note {
    margin-top: 16px; font-size: 13px; color: var(--text-dim);
}
.donate-note i { margin-right: 4px; color: var(--primary); }

.error-msg {
    max-width: 480px; margin: 16px auto 0; padding: 14px 20px;
    background: rgba(239, 68, 68, 0.08); color: var(--error);
    border-radius: 12px; font-size: 14px; font-weight: 500;
    display: none; animation: fadeUp 0.3s ease;
}
.error-msg.visible { display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === Thanks banner === */
.thanks-banner {
    max-width: 520px; margin: 32px auto; padding: 24px;
    background: linear-gradient(135deg, rgba(34,197,94,0.1), rgba(34,197,94,0.05));
    border: 2px solid rgba(34,197,94,0.2); border-radius: var(--radius);
    text-align: center; display: none;
}
.thanks-banner.visible { display: block; animation: fadeUp 0.5s ease; }
.thanks-banner .thanks-icon { font-size: 48px; margin-bottom: 8px; }
.thanks-banner h3 {
    font-family: 'Montserrat', sans-serif; font-size: 22px;
    color: #16A34A; margin-bottom: 8px;
}
.thanks-banner p { font-size: 15px; color: var(--text-dim); }

/* === Mobile menu === */
.mobile-menu {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: white; box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    z-index: 1000; transition: right 0.3s ease; padding: 24px;
}
.mobile-menu.active { right: 0; }
.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid #F0F0F0;
}
.logo-text { font-size: 24px; font-weight: 800; color: var(--primary); }
.mobile-menu-close {
    background: none; border: none; font-size: 28px;
    color: #999; cursor: pointer; padding: 8px;
}
.mobile-nav {
    display: flex; flex-direction: column; gap: 8px;
}
.mobile-nav a {
    text-decoration: none; color: var(--text-dark); font-size: 17px;
    font-weight: 500; padding: 12px 16px; border-radius: 12px;
    transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover { background: var(--bg-light); color: var(--primary); }
.overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); z-index: 999;
}
.overlay.active { display: block; }

/* === Footer === */
.footer {
    background: var(--text-dark); color: white; padding: 48px 0 20px;
}
.footer-content {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px; margin-bottom: 32px;
}
.footer-section h4 {
    font-family: 'Montserrat', sans-serif; font-size: 20px;
    margin-bottom: 16px;
}
.footer-section p { color: rgba(255,255,255,0.7); margin-bottom: 8px; }
.footer-section a {
    color: rgba(255,255,255,0.7); text-decoration: none; display: block;
    margin-bottom: 8px; transition: color 0.3s;
}
.footer-section a:hover { color: white; }
.footer-contact { display: flex; align-items: center; gap: 8px; }
.footer-contact i { margin-right: 8px; }
.footer-bottom {
    text-align: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 13px; color: #888;
}

/* === Responsive === */
@media (max-width: 900px) {
    .why-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .mobile-menu-btn { display: block; }
    .donate-hero h1 { font-size: 32px; }
    .donate-hero p { font-size: 16px; }
    .message-card { padding: 32px 24px; }
    .message-card h2 { font-size: 22px; }
    .donate-form { padding: 28px 20px; }
    .preset-amounts { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}
