.modal-step {
    width: 100%;
}

.valor-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    margin: 5px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    font-size: 14px;
}

.valor-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.valor-btn.loading-active {
    background: #28a745;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.valor-btn.loading-disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-skeleton {
    width: 60px;
    height: 16px;
    background: linear-gradient(90deg, #ffffff40 25%, #ffffff80 50%, #ffffff40 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
    margin: 0 auto;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.pix-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.back-btn {
    background: none;
    border: none;
    color: #007bff;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
}

.back-btn:hover {
    color: #0056b3;
}

.timer {
    background: #ff6b6b;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
}

.pix-content {
    text-align: center;
}

.pix-amount {
    margin-bottom: 25px;
}

.pix-amount h3 {
    font-size: 28px;
    color: #28a745;
    margin: 0;
    font-weight: bold;
}

.pix-amount p {
    color: #666;
    margin: 5px 0 0 0;
    font-size: 16px;
}

.qr-code-container {
    margin: 25px 0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#qr-code {
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.pix-copy {
    margin: 25px 0;
    text-align: left;
}

.pix-copy label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.copy-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#pix-code {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: monospace;
    font-size: 12px;
    background: #f8f9fa;
    word-break: break-all;
}

.copy-button {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    white-space: nowrap;
    transition: background 0.3s ease;
}

.copy-button:hover {
    background: #0056b3;
}

.copy-button.copied {
    background: #28a745;
}

.pix-instructions {
    margin-top: 25px;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.pix-instructions h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.pix-instructions ol {
    margin: 0;
    padding-left: 20px;
}

.pix-instructions li {
    margin-bottom: 8px;
    color: #666;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .valores {
        justify-content: center !important;
    }
    
    .valor-btn {
        min-width: 100px;
        font-size: 12px;
        padding: 10px 15px;
    }
    
    .pix-amount h3 {
        font-size: 24px;
    }
    
    #qr-code {
        max-width: 180px;
        max-height: 180px;
    }
    
    .copy-container {
        flex-direction: column;
        gap: 10px;
    }
    
    #pix-code {
        width: 100%;
    }
    
    .copy-button {
        width: 100%;
    }
    
    .pix-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .back-btn {
        align-self: flex-start;
    }
}

.modal-step {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timer.warning {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.5; }
}

/* Estilos para valor personalizado */
.custom-value-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.custom-value-section h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.custom-value-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

#custom-amount {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

#custom-amount:focus {
    outline: none;
    border-color: #28a745;
    background: white;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

#custom-amount.error {
    border-color: #dc3545;
    background: #fff5f5;
}

#custom-amount.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.btn-custom-amount {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
}

.btn-custom-amount:hover:not(:disabled) {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-custom-amount:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

.custom-value-info {
    display: block;
    text-align: center;
    color: #666;
    font-size: 12px;
    margin-top: 5px;
}

.custom-value-error {
    display: block;
    text-align: center;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    font-weight: bold;
}

@media (max-width: 768px) {
    .custom-value-container {
        flex-direction: column;
        gap: 15px;
    }
    
    #custom-amount {
        width: 100%;
    }
    
    .btn-custom-amount {
        width: 100%;
        min-width: auto;
    }
    
    .custom-value-section h3 {
        font-size: 16px;
    }
}