/* ===== CSS VARIABLES ===== */
:root {
    --color-primary: #1B6B4A;
    --color-primary-dark: #145239;
    --color-primary-light: #e8f5ee;
    --color-accent-gold: #C9A84C;
    --color-accent-gold-light: #f5ecd4;
    --color-bg: #FAF8F5;
    --color-bg-card: #FFFFFF;
    --color-text: #2D2D2D;
    --color-text-muted: #6B6B6B;
    --color-text-light: #FFFFFF;
    --color-border: #E8E4DF;
    --color-success: #2E7D32;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 640px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1:focus {
    outline: none;
}

/* ===== BLAZOR ERROR UI ===== */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9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Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== FADE-IN ANIMATION ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.7s ease-out both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.35s; }
.fade-in-delay-4 { animation-delay: 0.5s; }
.fade-in-delay-5 { animation-delay: 0.65s; }

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(145deg, #145239 0%, var(--color-primary) 50%, #1a7a55 100%);
    color: var(--color-text-light);
    text-align: center;
    padding: 3.5rem 1.25rem 3rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-bismillah {
    font-family: var(--font-arabic);
    font-size: 1.35rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: 1rem;
    line-height: 1.75;
    opacity: 0.92;
    max-width: 520px;
    margin: 0 auto 1.75rem;
}

.hero-ayah {
    font-family: var(--font-arabic);
    font-size: 1.5rem;
    line-height: 2;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.hero-ayah-translation {
    font-size: 0.82rem;
    opacity: 0.6;
    font-style: italic;
    margin-bottom: 2rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-accent-gold);
    color: #2D2000;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(201, 168, 76, 0.35);
    letter-spacing: 0.01em;
}

.btn-cta:hover {
    background: #d4b35a;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 168, 76, 0.45);
}

.btn-cta:active {
    transform: translateY(0);
}

/* ===== SECTION BASE ===== */
.section {
    padding: 2.75rem 1.25rem;
}

.section-card {
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--color-bg-card);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}

.section-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    text-align: center;
}

.section-divider {
    width: 48px;
    height: 3px;
    background: var(--color-accent-gold);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
    border: none;
}

/* ===== WHY DONATE SECTION ===== */
.why-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.why-points {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.why-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
}

.why-point-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.05rem;
}

/* ===== BKASH SECTION ===== */
.bkash-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.bkash-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #E2136E;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

.bkash-label {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.bkash-number-box {
    background: linear-gradient(135deg, #fdf8f0, #fefcf8);
    border: 2px solid var(--color-accent-gold);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.bkash-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
}

.bkash-type {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: var(--color-primary-dark);
}

.btn-copy.copied {
    background: var(--color-success);
}

.bkash-steps-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.85rem;
    color: var(--color-text);
}

.bkash-steps {
    list-style: none;
    counter-reset: steps;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.bkash-step {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--color-text);
}

.bkash-step::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    min-width: 26px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.05rem;
}

.bkash-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-style: italic;
    text-align: center;
    padding: 0.75rem 1rem;
    background: #f9f7f4;
    border-radius: 8px;
    margin-bottom: 1.25rem;
}

.bkash-disclaimer {
    text-align: center;
    padding: 1rem;
    background: var(--color-primary-light);
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--color-primary);
}

.bkash-disclaimer p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary-dark);
    line-height: 1.6;
}

/* ===== MOTIVATION SECTION ===== */
.motivation-card {
    text-align: center;
    background: linear-gradient(135deg, #fdf8f0, #fefcf8);
    border: 1px solid var(--color-accent-gold-light);
}

.motivation-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.motivation-text {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--color-text);
}

.motivation-text .arabic-inline {
    font-family: var(--font-arabic);
    font-size: 1.1em;
    color: var(--color-primary);
    font-weight: 700;
}

.motivation-cta {
    margin-top: 1rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    font-style: italic;
}

/* ===== TRUST SECTION ===== */
.trust-content {
    text-align: center;
}

.trust-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-sm);
}

.trust-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.trust-role {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin-bottom: 0.6rem;
}

.trust-website {
    font-size: 0.88rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.trust-website:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.trust-message {
    margin-top: 1.25rem;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    font-style: italic;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 2rem 1.25rem 2.5rem;
}

.footer-dua {
    font-family: var(--font-arabic);
    font-size: 1.05rem;
    color: var(--color-primary);
    line-height: 1.8;
}

.footer-emoji {
    display: block;
    font-size: 1.4rem;
    margin-top: 0.5rem;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 480px) {
    .hero {
        padding: 4rem 2rem 3.5rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .section-card {
        padding: 2.25rem 2rem;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 2rem 4.5rem;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-ayah {
        font-size: 1.7rem;
    }

    .section {
        padding: 3rem 2rem;
    }

    .section-card {
        padding: 2.5rem;
    }
}