/* assets/css/saque-modal.css */
        
        :root {
            /* ==================== CORES PRIMÁRIAS ==================== */
            --primary-green: #ffc107; /* Amarelo principal */
            --primary-green-light: #ffeb3b; /* Amarelo claro */
            --primary-green-dark: #ff8f00; /* Amarelo escuro */
            --primary-green-darker: #f57c00; /* Amarelo mais escuro */
            --primary-green-darkest: #e65100; /* Amarelo mais profundo */
            
            --primary-yellow: #ffc107;
            --primary-yellow-light: #ffeb3b;
            
            /* ==================== BACKGROUNDS ==================== */
            --bg-primary: linear-gradient(135deg, #1a2332 0%, #2a3441 100%);
            --bg-header: rgba(26, 35, 50, 0.95);
            --bg-footer: rgba(26, 35, 50, 0.95);
            --bg-card: rgba(255, 255, 255, 0.08);
            --bg-card-hover: linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
            --bg-modal: #111;
            --bg-modal-overlay: rgba(0, 0, 0, 0.7);
            --bg-input: #222;
            --bg-instant: linear-gradient(135deg, #1e402f 0%, #2e6b4a 100%); /* Gradiente verde escuro mais claro */
            --bg-feature-card: rgba(255, 255, 255, 0.08);
            
            /* ==================== TEXTOS ==================== */
            --text-primary: #fff;
            --text-secondary: #cccccc;
            --text-muted: #999999;
            --text-dark: #000000;
            --text-accent: #ffc107; /* Amarelo para acentos */
            --text-warning: #FFC107;
            --text-error: #f44336;
            --text-success: #ffc107; /* Amarelo para sucesso */
            
            /* ==================== BOTÕES ==================== */
            /* Botão Principal (Amarelo) */
            --btn-primary-bg: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
            --btn-primary-bg-hover: linear-gradient(90deg, var(--primary-green-darker), var(--primary-green-darkest));
            --btn-primary-text: #1a1a1a; /* Texto escuro para contraste */
            --btn-primary-text-hover: var(--text-primary);
            --btn-primary-border: var(--primary-green);
            --btn-primary-border-hover: var(--primary-green-darker);
            
            /* ==================== BORDAS E DIVISORES ==================== */
            --border-light: rgba(255, 255, 255, 0.1);
            --border-medium: rgba(255, 255, 255, 0.3);
            --border-strong: rgba(255, 255, 255, 0.5);
            --divider: rgba(255, 255, 255, 0.1);
            
            /* ==================== SOMBRAS ==================== */
            --shadow-light: 0 5px 20px rgba(0, 0, 0, 0.2);
            --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.2);
            --shadow-strong: 0 10px 30px rgba(0, 0, 0, 0.3);
            --shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.4);
            --shadow-card-hover: 0 10px 30px rgba(0, 0, 0, 0.3);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
            background: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.4;
        }

        svg.lucide {
            width: 16px;
            height: 16px;
            stroke-width: 2;
            margin-right: 4px;
            vertical-align: middle;
        }

        /* Modal Container - Igual ao anti-fraude */
        .saque-success-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
        }

        .saque-success-modal.show {
            display: flex;
        }

        .saque-success-content {
            background: var(--bg-primary); /* Usando variável do sistema */
            border-radius: 16px;
            max-width: 480px;
            width: 92%;
            color: var(--text-primary);
            position: relative;
            overflow: hidden;
            padding: 0;
            box-shadow: var(--shadow-heavy);
            border: 1px solid var(--border-light);
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.5s ease-out;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px) scale(0.95);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }

        /* Header igual ao modal anti-fraude */
        .saque-success-header {
            width: 100%;
            height: 140px;
            background: var(--bg-instant); /* Usando a variável do sistema */
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            color: white;
            isolation: isolate;
        }

        .saque-success-header::before {
            content: "";
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255, 193, 7, 0.09) 0%, transparent 70%); /* Amarelo sweep */
            transform: rotate(45deg);
            z-index: 0;
            animation: lightSweep 3s linear infinite;
            pointer-events: none;
        }

        @keyframes lightSweep {
            0% { transform: translateX(-100%) rotate(45deg); }
            100% { transform: translateX(100%) rotate(45deg); }
        }



        .saque-success-icon {
            z-index: 2;
            position: relative;
            animation: iconFloat 2.5s ease-in-out infinite;
        }

        .saque-success-icon svg.lucide {
            width: 36px;
            height: 36px;
            stroke-width: 2;
            color: #fff;
        }

        @keyframes iconFloat {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-6px); }
        }

        .saque-success-title {
            font-size: 18px;
            font-weight: 700;
            text-transform: uppercase;
            color: var(--text-primary);
            z-index: 1;
            position: relative;
            text-align: center;
            letter-spacing: 0.5px;
        }

        .saque-success-subtitle {
            z-index: 1;
            position: relative;
            font-size: 16px;
            color: var(--text-secondary);
            text-align: center;
        }

        /* Body */
        .saque-success-body {
            padding: 20px 24px;
            color: var(--text-primary);
        }

        /* Alert Text igual ao modal */
        .alert-text {
            background: rgba(255, 193, 7, 0.15);
            border: 1px solid rgba(255, 193, 7, 0.4);
            border-radius: 10px;
            padding: 14px;
            margin-bottom: 16px;
            text-align: left;
            color: var(--text-warning);
            font-weight: 600;
            font-size: 15px;
            display: flex;
            align-items: flex-start;
            gap: 8px;
        }

        .alert-text svg.lucide {
            width: 18px;
            height: 18px;
            margin-top: 1px;
            flex-shrink: 0;
        }



        /* Processing Text */
        .processing-text {
            text-align: left;
            margin-bottom: 16px;
            color: var(--text-secondary);
            font-size: 15px;
            line-height: 1.5;
        }

        .processing-text .highlight {
            color: var(--text-error);
            font-weight: 700;
        }

        /* Offer Container igual ao modal */
        .offer-container {
            background: var(--bg-card);
            border: 1px solid var(--border-light);
            border-radius: 12px;
            box-shadow: var(--shadow-strong);
            padding: 18px;
            margin: 16px 0;
            text-align: left;
            position: relative;
            overflow: hidden;
        }

        .offer-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: shimmer 6s infinite;
        }

        @keyframes shimmer {
            0% { left: -100%; }
            100% { left: 100%; }
        }

        .offer-title {
            color: var(--primary-green);
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .offer-title svg.lucide {
            width: 18px;
            height: 18px;
        }

        .offer-price {
            color: #ddd;
            font-size: 15px;
            line-height: 1.4;
        }

        .offer-price p {
            margin: 0 0 8px 0;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .offer-price .summary-divider {
            margin: 8px 0 6px 0;
            border-top: 1px solid rgba(255, 255, 255, 0.2);
            padding-top: 8px;
        }

        .price-highlight {
            color: var(--primary-green);
            font-weight: 700;
            font-size: 18px;
        }

        .price-negative {
            color: #ff4757;
            font-weight: 600;
        }

        .price-note {
            font-size: 13px;
            color: #999;
            margin-top: 4px;
            font-style: italic;
        }

        /* Buttons */
        .pagar-taxa-btn {
            width: 100%;
            background: var(--btn-primary-bg);
            border: none;
            padding: 16px 20px;
            color: var(--btn-primary-text);
            font-weight: 700;
            border-radius: 10px;
            cursor: pointer;
            font-size: 16px;
            margin: 16px 0;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .pagar-taxa-btn svg.lucide {
            width: 20px;
            height: 20px;
        }

        .pagar-taxa-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .pagar-taxa-btn:hover::before {
            left: 100%;
        }

        .pagar-taxa-btn:hover {
            background: var(--btn-primary-bg-hover);
            transform: translateY(-2px);
            box-shadow: 0 10px 30px rgba(255, 193, 7, 0.4);
        }



        /* Guarantee Box - Agora em vermelho */
        .guarantee-box {
            border: 1px solid #ef4444;
            background: rgba(239, 68, 68, 0.12);
            border-radius: 12px;
            padding: 16px;
            margin-top: 16px;
        }

        .guarantee-title {
            color: #ef4444;
            font-size: 18px;
            font-weight: 700;
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 8px;
        }

        .guarantee-title svg.lucide {
            width: 24px;
            height: 24px;
        }

        .guarantee-text {
            font-size: 15px;
            color: #ddd;
            line-height: 1.5;
        }

        /* Loading State */
        .loading {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(26, 35, 50, 0.3);
            border-radius: 50%;
            border-top: 2px solid #1a2332;
            animation: loadingSpin 1s linear infinite;
            margin-right: 6px;
        }

        @keyframes loadingSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Responsive */
        @media (max-width: 768px) {
            .saque-success-content {
                max-width: 95%;
                border-radius: 8px;
            }

            .saque-success-body {
                padding: 16px 20px;
            }

            .saque-success-icon svg.lucide {
                width: 28px;
                height: 28px;
            }

            .saque-success-title {
                font-size: 18px;
            }

            .saque-success-header {
                height: 100px;
            }
        }

        @media (max-width: 480px) {
            .saque-success-content {
                max-width: 98%;
            }

            .saque-success-body {
                padding: 12px 16px;
            }

            .saque-success-icon svg.lucide {
                width: 24px;
                height: 24px;
            }

            .saque-success-title {
                font-size: 16px;
            }

            .saque-success-subtitle {
                font-size: 12px;
            }
        }
        
        /* ==================== MODAL QR DA TAXA ==================== */
.taxa-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001; /* Maior que o modal de sucesso */
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

.taxa-qr-modal.show {
    display: flex;
}

.taxa-qr-content {
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 420px;
    width: 92%;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
    border: 1px solid var(--border-light);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.4s ease-out;
}

/* Header do Modal QR */
.taxa-qr-header {
    background: var(--bg-instant);
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: white;
}

.taxa-qr-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    z-index: 0;
    animation: lightSweep 3s linear infinite;
    pointer-events: none;
}

.taxa-qr-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.taxa-qr-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.qr-pix-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: var(--deposit-qr-pix-icon-bg);
    border-radius: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 20px;
}

.taxa-qr-title {
    font-size: 18px;
    font-weight: 700;
    z-index: 1;
    position: relative;
    margin-bottom: 5px;
}

/* Body do Modal QR */
.taxa-qr-body {
    padding: 24px;
}

.taxa-qr-label {
    color: var(--text-secondary);
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.taxa-qr-value {
    color: var(--primary-green);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* Input Group para PIX */
.taxa-qr-input-group {
    position: relative;
    margin-bottom: 12px;
}

.taxa-qr-input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: monospace;
    word-break: break-all;
    resize: none;
    min-height: 50px;
}

.taxa-qr-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.taxa-qr-copy-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.taxa-qr-copy-icon:hover {
    background: rgba(255, 255, 255, 0.1);
}

.taxa-qr-copy-btn {
    width: 100%;
    background: linear-gradient(135deg, #FFC107 0%, #FFB300 100%);
    border: none;
    padding: 12px;
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.taxa-qr-copy-btn:hover {
    background: linear-gradient(135deg, #FFB300 0%, #FF8F00 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

/* Timer */
.taxa-qr-timer {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.taxa-qr-timer-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.taxa-qr-timer-value {
    color: var(--primary-green);
    font-size: 28px;
    font-weight: 700;
    font-family: monospace;
    margin-bottom: 12px;
}

.taxa-qr-progress {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.taxa-qr-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #FFC107, #FF8F00);
    transition: width 1s linear;
    border-radius: 3px;
}

/* Status */
.taxa-qr-status {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.taxa-qr-status-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 25px;
    padding: 8px 16px;
}

.taxa-qr-pulse {
    width: 12px;
    height: 12px;
    background: #FFC107;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(255, 193, 7, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0);
    }
}

.taxa-qr-status-text {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

/* QR Code Display */
 .taxa-qr-code-display {
            text-align: center;
            padding: 20px;
            background: var(--bg-card);
            border-radius: 16px;
            margin-top: 16px;
        }

        .taxa-qr-code-title {
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 16px;
        }

        .taxa-qr-code-image {
            width: 200px;
            height: 200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: center;
            background: white;
            border-radius: 12px;
            padding: 10px;
            overflow: hidden;
        }

        .taxa-qr-code-image canvas {
            max-width: 100%;
            max-height: 100%;
            display: block;
        }

        .taxa-qr-code-image.loading {
            background: var(--bg-card);
            color: var(--text-secondary);
            font-size: 48px;
            border: 2px dashed var(--border-light);
        }
/* Estados de Status */
.taxa-qr-status-badge.success {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.taxa-qr-status-badge.success .taxa-qr-pulse {
    background: #4CAF50;
    animation: none;
}

.taxa-qr-status-badge.expired {
    background: rgba(244, 67, 54, 0.15);
    border-color: rgba(244, 67, 54, 0.3);
}

.taxa-qr-status-badge.expired .taxa-qr-pulse {
    background: #f44336;
    animation: none;
}

/* Responsive */
@media (max-width: 768px) {
    .taxa-qr-content {
        max-width: 95%;
        border-radius: 8px;
    }

    .taxa-qr-body {
        padding: 20px;
    }

    .taxa-qr-timer-value {
        font-size: 24px;
    }

    .taxa-qr-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .taxa-qr-content {
        max-width: 98%;
    }

    .taxa-qr-body {
        padding: 16px;
    }

    .taxa-qr-header {
        padding: 16px;
    }

    .taxa-qr-timer-value {
        font-size: 20px;
    }

    .taxa-qr-value {
        font-size: 18px;
    }

    .taxa-qr-code-image {
        min-height: 200px;
        font-size: 36px;
    }

    .taxa-qr-code-image img {
        width: 80%;
        height: 80%;
    }
}