/**
 * Estilos do Modal de Doação & Assinatura Digital — Elo do Bem
 */
.elo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 9999;
}
.elo-modal-backdrop.open {
    display: flex;
    animation: eloFadeIn 0.25s ease-out forwards;
}
@keyframes eloFadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

.elo-modal-container {
    width: 100%;
    max-width: 500px;
    max-height: 92vh;
    overflow-y: auto;
    background: #1e293b;
    border: 1px solid var(--elo-glass-border);
    border-radius: var(--elo-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 22px;
    color: var(--elo-text-main);
    scrollbar-width: thin;
}

.elo-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}
.elo-modal-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--elo-gold);
    letter-spacing: 0.05em;
}
.elo-modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 2px 0 0 0;
}
.elo-modal-close {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--elo-text-muted);
    cursor: pointer;
    transition: var(--elo-transition);
}
.elo-modal-close svg { width: 18px; height: 18px; }
.elo-modal-close:hover { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

/* Indicador de Passos */
.elo-steps-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;
}
.elo-steps-indicator::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}
.elo-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    gap: 4px;
}
.elo-step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--elo-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--elo-transition);
}
.elo-step-item.active .elo-step-number {
    background: var(--elo-primary);
    border-color: #34d399;
    color: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.elo-step-item.completed .elo-step-number {
    background: var(--elo-gold);
    border-color: #fbbf24;
    color: #ffffff;
}
.elo-step-name { font-size: 0.7rem; color: var(--elo-text-muted); }
.elo-step-item.active .elo-step-name { color: #f8fafc; font-weight: 700; }

.elo-step-content { display: none; }
.elo-step-content.active { display: block; animation: eloSlideIn 0.2s ease-out; }
@keyframes eloSlideIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.elo-field-group { margin-bottom: 14px; }
.elo-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: #cbd5e1;
}
.elo-input, .elo-select, .elo-textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--elo-radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(15, 23, 42, 0.7);
    color: #f8fafc;
    font-size: 0.95rem;
    outline: none;
    transition: var(--elo-transition);
}
.elo-input:focus, .elo-select:focus, .elo-textarea:focus {
    border-color: var(--elo-accent);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}
.elo-amount-input-wrap { position: relative; display: flex; align-items: center; }
.elo-currency-prefix { position: absolute; left: 14px; font-weight: 800; color: #34d399; font-size: 1.1rem; }
.elo-amount-mask { padding-left: 48px; font-size: 1.25rem; font-weight: 800; color: #34d399; }

/* Passo 2: Cartão Pix */
.elo-pix-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--elo-radius-md);
    padding: 16px;
    margin-bottom: 14px;
}
.elo-pix-header { display: flex; justify-content: space-between; margin-bottom: 10px; }
.elo-pix-tag { font-size: 0.75rem; font-weight: 800; color: #34d399; text-transform: uppercase; }
.elo-pix-badge-secure {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}
.elo-pix-key-wrap { display: flex; gap: 8px; margin-top: 6px; }
.elo-pix-key-val {
    flex: 1;
    background: #090e17;
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #38bdf8;
    padding: 12px 14px;
    border-radius: var(--elo-radius-sm);
    font-size: 0.92rem;
    font-family: monospace;
    font-weight: 700;
}
.elo-btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #d97706, #b45309);
    color: #ffffff;
    border: none;
    border-radius: var(--elo-radius-sm);
    padding: 0 16px;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--elo-transition);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}
.elo-btn-copy svg { width: 16px; height: 16px; }
.elo-btn-copy:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(217, 119, 6, 0.5); }

/* Bloco Destacado de Banco e Favorecido */
.elo-pix-destination-box {
    margin-top: 14px;
    background: rgba(9, 14, 23, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--elo-radius-sm);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.elo-pix-dest-row { display: flex; align-items: center; gap: 10px; }
.elo-dest-icon { font-size: 1.2rem; flex-shrink: 0; }
.elo-dest-info { display: flex; flex-direction: column; gap: 2px; }
.elo-dest-label { font-size: 0.72rem; color: #94a3b8; text-transform: uppercase; font-weight: 600; }
.elo-dest-val { font-size: 0.92rem; color: #f8fafc; font-weight: 700; }

/* Card de Alerta e Retorno */
.elo-pix-notice-card {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--elo-radius-md);
    padding: 12px 14px;
    margin-bottom: 18px;
}
.elo-notice-header {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fbbf24;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.elo-notice-steps { margin: 0; padding-left: 18px; font-size: 0.82rem; color: #fef3c7; line-height: 1.45; }
.elo-notice-steps li { margin-bottom: 4px; }
.elo-notice-steps li:last-child { margin-bottom: 0; }

/* Passo 3: Termo & Assinatura */
.elo-terms-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--elo-glass-border);
    border-radius: var(--elo-radius-sm);
    padding: 12px;
    max-height: 110px;
    overflow-y: auto;
    margin-bottom: 14px;
}
.elo-terms-title { font-size: 0.82rem; font-weight: 700; margin: 0 0 6px 0; color: var(--elo-gold); }
.elo-terms-text { font-size: 0.78rem; line-height: 1.4; color: var(--elo-text-muted); }

.elo-canvas-container {
    background: #ffffff;
    border-radius: var(--elo-radius-sm);
    position: relative;
    margin-bottom: 14px;
}
.elo-signature-canvas {
    width: 100%;
    height: 140px;
    display: block;
    touch-action: none;
    cursor: crosshair;
}
.elo-btn-clear-sig {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.7rem;
    cursor: pointer;
}
.elo-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #cbd5e1;
}

/* Passo 4: Upload */
.elo-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--elo-radius-md);
    padding: 24px 16px;
    text-align: center;
    background: rgba(15, 23, 42, 0.4);
    cursor: pointer;
    position: relative;
    transition: var(--elo-transition);
    margin-bottom: 16px;
}
.elo-upload-zone:hover { border-color: var(--elo-accent); background: rgba(16, 185, 129, 0.05); }
.elo-upload-icon svg { width: 36px; height: 36px; color: var(--elo-text-muted); margin-bottom: 6px; }
.elo-upload-title { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.elo-upload-subtitle { font-size: 0.75rem; color: var(--elo-text-muted); }
.elo-file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.elo-proof-preview { margin-top: 12px; font-size: 0.82rem; color: #34d399; font-weight: 700; }

.elo-step-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.elo-btn-secondary { background: rgba(255, 255, 255, 0.1); color: #f8fafc; }
.elo-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
}
