/* Extracted from site/auctions.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; }

        .product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 20px 0; }
        @media (max-width: 400px) { .product-grid { grid-template-columns: 1fr; } }

        .product-card { border: 1.5px solid var(--border); border-radius: 12px; overflow: hidden; background: white; cursor: pointer; transition: border-color 0.15s; }
        .product-card:hover { border-color: var(--accent); }
        .product-img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-muted); }
        .product-placeholder { width: 100%; aspect-ratio: 1; background: var(--bg-muted); display: flex; align-items: center;
            justify-content: center; font-size: 40px; color: var(--text-muted); }
        .product-info { padding: 12px; }
        .product-name { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
        .product-price { font-size: 16px; font-weight: 700; color: var(--accent); }
        .product-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

        .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: 440px; 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: 8px; }
        .reserve-badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }
        .reserve-badge.reserve-not-met { background: #fff7e6; color: #b45309; border: 1px solid #fcd34d; }
        .reserve-badge.reserve-met { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
        .modal-close { float: right; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); padding: 0; line-height: 1; }
        .modal-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

        .bid-history { margin: 16px 0; max-height: 160px; overflow-y: auto; }
        .bid-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
        .bid-row .bid-name { color: var(--text-primary); font-weight: 500; }
        .bid-row .bid-amount { color: var(--accent); font-weight: 700; }
        .bid-row .bid-time { color: var(--text-muted); font-size: 11px; }

        .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; }

        .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; }
        .btn-secondary { background: #f3f4f6; color: var(--text-primary); margin-top: 8px; font-size: 15px; }
        .btn-secondary:hover { background: #e5e7eb; }

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

        .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; }
