/* Extracted from site/raffles.html on 2026-04-14 */

.donate-page { max-width: 540px; margin: 0 auto; padding: 16px; min-height: 100vh; }
        .org-header { text-align: center; padding: 24px 0 16px; }
        .org-logo { width: 80px; height: 80px; border-radius: 16px; object-fit: cover; margin-bottom: 12px; }
        .org-name { font-size: 24px; font-weight: 800; color: var(--text-primary); margin: 4px 0; }
        .org-tagline { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }

        .raffle-list { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }

        .raffle-card { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: white; transition: border-color 0.15s; }
        .raffle-card:hover { border-color: var(--accent); }
        .raffle-top { display: flex; gap: 14px; padding: 16px; }
        .raffle-img { width: 80px; height: 80px; border-radius: 10px; object-fit: cover; background: var(--bg-muted); flex-shrink: 0; }
        .raffle-placeholder { width: 80px; height: 80px; border-radius: 10px; background: var(--bg-muted); display: flex; align-items: center;
            justify-content: center; font-size: 28px; color: var(--text-muted); flex-shrink: 0; }
        .raffle-info { flex: 1; min-width: 0; }
        .raffle-name { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
        .raffle-price { font-size: 15px; font-weight: 700; color: var(--accent); }
        .raffle-meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
        .raffle-winner { font-size: 13px; color: #16a34a; font-weight: 600; margin-top: 6px; }
        .raffle-desc { font-size: 13px; color: var(--text-secondary); padding: 0 16px 12px; line-height: 1.5; }
        .raffle-enter-btn { display: block; width: calc(100% - 32px); margin: 0 16px 16px; padding: 12px; background: var(--accent); color: white;
            border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; text-align: center; }
        .raffle-enter-btn:hover { opacity: 0.9; }
        .raffle-enter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .countdown { font-size: 12px; color: var(--text-muted); font-weight: 600; }
        .countdown.urgent { color: #ef4444; }

        .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center;
            justify-content: center; z-index: 100; padding: 16px; }
        .modal-content { background: white; border-radius: 16px; padding: 24px; max-width: 400px; width: 100%; max-height: 90vh; overflow-y: auto; }
        .modal-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
        .modal-price { font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
        .modal-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); padding: 0; line-height: 1; }

        .donor-fields { margin: 0 0 16px; }
        .donor-fields label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
        .donor-fields input { width: 100%; padding: 12px; border: 1.5px solid var(--border);
            border-radius: 10px; font-size: 15px; margin-bottom: 10px; outline: none; box-sizing: border-box; background: white; }
        .donor-fields input:focus { border-color: var(--accent); }
        .donor-fields .field-error { color: #dc3545; font-size: 13px; margin: -6px 0 10px; }
        .donor-fields .field-error:empty { display: none; }

        .qty-selector { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
        .qty-btn { width: 36px; height: 36px; border: 2px solid var(--border); border-radius: 8px; background: white;
            font-size: 18px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; }
        .qty-btn:hover { border-color: var(--accent); }
        .qty-value { font-size: 20px; font-weight: 700; min-width: 30px; text-align: center; }

        .donate-btn { width: 100%; padding: 16px; background: var(--accent); color: white; border: none;
            border-radius: 12px; font-size: 18px; font-weight: 700; cursor: pointer; transition: opacity 0.15s; }
        .donate-btn:hover { opacity: 0.9; }
        .donate-btn:disabled { opacity: 0.5; cursor: not-allowed; }

        .secure-note { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 12px; }
        .branding { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 24px; padding-bottom: 24px; }

        .loading { display: flex; align-items: center; justify-content: center; min-height: 60vh; }
        .loading-spinner { width: 32px; height: 32px; border: 3px solid var(--border);
            border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
        @keyframes spin { to { transform: rotate(360deg); } }

        .error-state { text-align: center; padding: 48px 16px; }
        .error-state h2 { font-size: 20px; margin-bottom: 8px; }
        .error-state p { color: var(--text-muted); }

        .thanks-state { text-align: center; padding: 48px 16px; }
        .thanks-state h2 { font-size: 28px; margin-bottom: 8px; }
        .thanks-state p { color: var(--text-secondary); font-size: 15px; line-height: 1.6; }
        .thanks-check { font-size: 64px; margin-bottom: 12px; }

        .empty-state { text-align: center; padding: 48px 16px; color: var(--text-muted); font-size: 15px; }
