* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: #f5f7fa; color: #1f2937; line-height: 1.6;
}
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1150px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 14px 0; position: sticky; top: 0; z-index: 10; }
.nav { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.logo { font-weight: 800; font-size: 1.2rem; color: #111; }
.nav nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav nav a { color: #374151; font-size: 0.95rem; }

/* Buttons */
.btn {
    display: inline-block; padding: 8px 16px; border-radius: 8px;
    background: #eef2ff; color: #1e40af; font-weight: 600;
    border: 1px solid #c7d2fe; cursor: pointer; font-size: 0.9rem;
    transition: all .15s;
}
.btn:hover { background: #e0e7ff; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { background: transparent; color: #2563eb; }
.btn-sm { padding: 5px 10px; font-size: 0.85rem; }
.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-danger { background: #fee2e2; color: #b91c1c; border-color: #fecaca; }

/* Hero */
.hero { text-align: center; padding: 60px 20px; }
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p { max-width: 600px; margin: 0 auto 24px; color: #4b5563; }

/* Stats */
.stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin: 30px 0 50px; }
.stat { background: #fff; padding: 20px 30px; border-radius: 12px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat strong { display: block; font-size: 1.5rem; color: #2563eb; }
.stat span { font-size: 0.85rem; color: #6b7280; }

/* Grid & Cards */
.section-title { margin: 30px 0 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card {
    background: #fff; border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column;
    transition: transform .15s;
}
.card:hover { transform: translateY(-2px); }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-noimg { height: 180px; background: linear-gradient(135deg,#dbeafe,#eef2ff); display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 1.05rem; }
.card h3 a { color: #111; }
.card p { font-size: 0.9rem; color: #4b5563; flex: 1; }
.tag { display: inline-block; background: #eef2ff; color: #4338ca; padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; width: fit-content; }
.card-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: #6b7280; margin-top: 8px; }

/* Progress */
.progress { background: #e5e7eb; border-radius: 20px; height: 8px; overflow: hidden; }
.progress > div { background: linear-gradient(90deg,#2563eb,#3b82f6); height: 100%; }
.progress.big { height: 14px; margin-bottom: 12px; }

/* Appeal detail */
.appeal-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; margin: 30px 0; }
@media (max-width: 780px) { .appeal-detail { grid-template-columns: 1fr; } }
.appeal-img { width: 100%; border-radius: 12px; margin-bottom: 16px; }
.appeal-detail h1 { margin: 10px 0; }
.description { margin: 20px 0; font-size: 1.05rem; }
.donate-box { background: #fff; padding: 22px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); position: sticky; top: 90px; }
.amount-raised { font-size: 1.8rem; font-weight: 800; color: #2563eb; margin-top: 12px; }
.percent { font-weight: 700; color: #059669; }
.donate-form { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.donate-form label, .form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; color: #374151; }
.donate-form input, .donate-form textarea, .form input, .form select, .form textarea {
    padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.form { display: flex; flex-direction: column; gap: 14px; max-width: 600px; margin: 20px 0; }
.update-box { background: #fff; border-left: 4px solid #2563eb; padding: 14px 18px; margin: 12px 0; border-radius: 8px; }
.update-box small { color: #6b7280; display: block; margin: 4px 0; }
.donations-list { list-style: none; margin-top: 12px; }
.donations-list li { padding: 10px 0; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }

/* Filters */
.filters { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.filters a { padding: 6px 14px; background: #fff; border-radius: 20px; font-size: 0.9rem; border: 1px solid #e5e7eb; }
.filters a.active { background: #2563eb; color: #fff; border-color: #2563eb; }

/* Forms/auth */
.auth-wrap { max-width: 420px; margin: 40px auto; background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.auth-wrap h1 { margin-bottom: 20px; }

/* Flash */
.flash { padding: 12px 18px; border-radius: 8px; margin: 16px 0; font-size: 0.95rem; }
.flash-success { background: #d1fae5; color: #065f46; }
.flash-error { background: #fee2e2; color: #991b1b; }

/* Table */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; margin: 16px 0; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e5e7eb; font-size: 0.92rem; }
.table th { background: #f9fafb; font-weight: 700; }
.badge { padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-active { background: #dbeafe; color: #1e40af; }
.badge-completed { background: #d1fae5; color: #065f46; }
.badge-rejected { background: #fee2e2; color: #991b1b; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin: 30px 0; }
.step { background: #fff; padding: 22px; border-radius: 12px; text-align: center; }
.step .num { width: 40px; height: 40px; border-radius: 50%; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 12px; }

/* Footer */
.site-footer { margin-top: 60px; padding: 30px 0; background: #111827; color: #d1d5db; text-align: center; font-size: 0.88rem; }
.muted { color: #6b7280; font-size: 0.88rem; }