/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #e6e6fa;
    min-height: 100vh;
    line-height: 1.6;
}

/* Header Elegante */
.checkout-header {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.header-brand h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    color: #ffd700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.header-steps {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.step.active {
    opacity: 1;
    color: #ffd700;
}

.step.completed {
    opacity: 1;
    color: #4caf50;
}

.step i {
    font-size: 1.2rem;
}

.step span {
    font-size: 0.9rem;
    font-weight: 500;
}

.back-link {
    color: #e6e6fa;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #ffd700;
    color: #ffd700;
}

/* Container Principal */
.checkout-main {
    padding: 3rem 0;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

/* Coluna do Resumo */
.order-summary-column {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.summary-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.summary-header h2 {
    font-family: 'Cinzel Decorative', serif;
    color: #ffd700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.order-details {
    margin-bottom: 2rem;
}

.order-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.order-item h4 {
    color: #ffd700;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.order-item p {
    color: #c0c0c0;
    margin-bottom: 0.5rem;
}

.order-item .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4caf50;
    margin-top: 1rem;
}

.price-breakdown {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-item:last-child {
    border-bottom: none;
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1rem;
}

.security-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    color: #4caf50;
}

.security-badge i {
    font-size: 1.2rem;
}

/* Coluna de Pagamento */
.payment-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.payment-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.payment-header h2 {
    font-family: 'Cinzel Decorative', serif;
    color: #ffd700;
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.payment-header p {
    color: #c0c0c0;
    font-size: 1.1rem;
}

/* Métodos de Pagamento */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.payment-method-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method-card input[type="radio"] {
    display: none;
}

.method-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.payment-method-card input[type="radio"]:checked + .method-content {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.2);
}

.method-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1a1a2e;
}

.method-info {
    flex: 1;
}

.method-info h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.method-info p {
    color: #c0c0c0;
    margin-bottom: 0.5rem;
}

.discount-badge {
    background: #4caf50;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.installment-info {
    background: #2196f3;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.method-radio {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.payment-method-card input[type="radio"]:checked + .method-content .method-radio {
    border-color: #ffd700;
    background: #ffd700;
}

.payment-method-card input[type="radio"]:checked + .method-content .method-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 50%;
}

/* Seção PIX */
.pix-section {
    margin-bottom: 2.5rem;
}

.pix-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 10px;
    color: #4caf50;
}

.benefit-item i {
    font-size: 1.2rem;
}

/* Formulário de Cartão */
.credit-form {
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: #ffd700;
    margin-bottom: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e6e6fa;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.card-brands {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.card-brands i {
    font-size: 1.5rem;
    color: #c0c0c0;
}

/* Indicador de Risco */
.risk-indicator {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.risk-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffd700;
    margin-bottom: 1rem;
    font-weight: 600;
}

.risk-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.8rem;
}

.risk-fill {
    height: 100%;
    background: #4caf50;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.risk-text {
    color: #c0c0c0;
    font-size: 0.9rem;
}

/* Resumo do Pagamento */
.payment-summary {
    text-align: center;
}

.total-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.total-amount {
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: bold;
}

.pay-button {
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    border: none;
    border-radius: 15px;
    color: #1a1a2e;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.button-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.payment-note {
    margin-top: 1.5rem;
    color: #c0c0c0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Modal PIX - Estilo Oráculo da Lua */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 215, 0, 0.1);
    width: 100%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    padding: 25px 30px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.modal-header h3 {
    margin: 0;
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.close {
    color: #1a1a2e;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
    color: #e6e6fa;
}

/* Status do PIX */
.pix-status-container {
    text-align: center;
    margin-bottom: 25px;
}

.pix-status {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid;
    transition: all 0.3s ease;
}

.pix-status.pending {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 215, 0, 0.2) 100%);
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.pix-status.success {
    background: linear-gradient(135deg, rgba(81, 207, 102, 0.1) 0%, rgba(81, 207, 102, 0.2) 100%);
    color: #51cf66;
    border-color: rgba(81, 207, 102, 0.5);
    box-shadow: 0 0 20px rgba(81, 207, 102, 0.2);
}

.pix-status.expired {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1) 0%, rgba(255, 107, 107, 0.2) 100%);
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

/* Informações da transação */
.transaction-info {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.1);
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #ffd700;
    font-size: 14px;
}

.info-item .value {
    color: #e6e6fa;
    font-weight: 500;
    font-family: 'Crimson Pro', monospace;
}

/* QR Code */
.qr-section {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.qr-loading {
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top: 4px solid #ffd700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Informações de teste PIX */
.pix-test-info {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.pix-test-info p {
    margin: 0;
    color: #ffc107;
    font-size: 13px;
    line-height: 1.4;
}

.pix-test-info i {
    margin-right: 8px;
}

/* Ajuda do código */
.code-help {
    display: block;
    margin-top: 8px;
    color: #c0c0c0;
    font-size: 12px;
    font-style: italic;
    text-align: center;
}

/* Melhorias no QR Code */
.qr-code {
    max-width: 250px;
    height: auto;
    margin: 20px auto;
    border: 4px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    background: white;
    padding: 10px;
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

/* Instruções melhoradas */
.qr-instructions ol li {
    margin-bottom: 12px;
    line-height: 1.6;
    padding-left: 5px;
}

.qr-instructions ol li i {
    margin-right: 10px;
    color: #ffd700;
    width: 20px;
    text-align: center;
}

/* Código PIX */
.pix-code-section {
    margin-bottom: 25px;
}

.pix-code-section label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #ffd700;
    font-size: 16px;
}

.code-input-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.code-input-container input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    font-family: 'Crimson Pro', monospace;
    font-size: 13px;
    color: #e6e6fa;
    transition: all 0.3s ease;
}

.code-input-container input:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.copy-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.copy-btn:active {
    transform: translateY(0);
}

/* Aviso PushinPay */
.pushinpay-notice {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
}

.pushinpay-notice p {
    margin: 0 0 10px 0;
    color: #ffc107;
    font-size: 14px;
    line-height: 1.5;
}

.pushinpay-notice p:last-child {
    margin-bottom: 0;
}

.pushinpay-notice strong {
    color: #ffc107;
    font-weight: 600;
}

/* Botões de ação */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn {
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-family: 'Crimson Pro', serif;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #e6e6fa;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsividade */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    .modal-header h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .code-input-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .qr-code {
        max-width: 180px;
    }
}

/* Scrollbar personalizada */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
}

/* Mensagem de sucesso */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    z-index: 10000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

/* Botão de teste da API */
.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ffca2c 100%);
    color: #1a1a2e;
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

/* Mostrar botão de teste em desenvolvimento */
@media (max-width: 768px) {
    .btn-warning {
        width: 100%;
        margin-top: 10px;
    }
}

/* Mensagem de sucesso do PIX */
.pix-success-message {
    margin-top: 20px;
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Melhorar visualização do QR Code */
.qr-code {
    max-width: 250px;
    height: auto;
    margin: 20px auto;
    border: 4px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    background: white;
    padding: 15px;
    animation: qrCodeAppear 0.8s ease-out;
}

@keyframes qrCodeAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.qr-code:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.6);
}

/* CORREÇÕES PARA LAYOUT MOBILE */
@media (max-width: 768px) {
    /* Header responsivo */
    .checkout-header {
        padding: 1rem 0;
    }
    
    .header-container {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .header-brand h1 {
        font-size: 1.5rem;
    }
    
    .header-steps {
        gap: 1rem;
    }
    
    .step span {
        font-size: 0.8rem;
    }
    
    .back-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Container principal */
    .checkout-main {
        padding: 2rem 0;
    }
    
    .checkout-container {
        padding: 0 1rem;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    /* Coluna do resumo */
    .order-summary-column {
        position: static;
        order: 2;
    }
    
    .summary-card {
        padding: 1.5rem;
    }
    
    .summary-header h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .order-item {
        padding: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .order-item h4 {
        font-size: 1.1rem;
    }
    
    .price-breakdown {
        padding: 1rem;
    }
    
    .price-item {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .security-badges {
        gap: 0.8rem;
    }
    
    .security-badge {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Coluna de pagamento */
    .payment-column {
        order: 1;
    }
    
    .payment-card {
        padding: 1.5rem;
    }
    
    .payment-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.6rem;
    }
    
    .payment-header p {
        font-size: 1rem;
    }
    
    .payment-methods {
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .method-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .method-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .method-info h3 {
        font-size: 1.1rem;
    }
    
    .method-info p {
        font-size: 0.9rem;
    }
    
    /* Formulário de cartão */
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-group input {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Resumo do pagamento */
    .total-line {
        padding: 1rem;
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .total-amount {
        font-size: 1.5rem;
    }
    
    .pay-button {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    .payment-note {
        font-size: 0.8rem;
        margin-top: 1rem;
    }
    
    /* Modal PIX */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        max-width: 100%;
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 15px 20px;
    }
    
    .pix-status {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .transaction-info {
        padding: 15px;
    }
    
    .info-item {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .qr-section {
        padding: 15px;
    }
    
    .qr-code {
        max-width: 180px;
        padding: 10px;
    }
    
    .qr-instructions ol li {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .pix-code-section {
        margin-bottom: 20px;
    }
    
    .code-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .code-input-container input {
        padding: 12px;
        font-size: 12px;
    }
    
    .copy-btn {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .pushinpay-notice {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .pushinpay-notice p {
        font-size: 12px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    /* Ajustes para telas muito pequenas */
    .checkout-header {
        padding: 0.8rem 0;
    }
    
    .header-container {
        padding: 0 0.8rem;
    }
    
    .header-brand h1 {
        font-size: 1.3rem;
    }
    
    .brand-logo {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .checkout-main {
        padding: 1.5rem 0;
    }
    
    .checkout-container {
        padding: 0 0.8rem;
        gap: 1.5rem;
    }
    
    .summary-card,
    .payment-card {
        padding: 1rem;
    }
    
    .summary-header h2,
    .payment-header h2 {
        font-size: 1.2rem;
    }
    
    .order-item,
    .price-breakdown {
        padding: 0.8rem;
    }
    
    .method-content {
        padding: 0.8rem;
    }
    
    .method-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .total-line {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .total-amount {
        font-size: 1.3rem;
    }
    
    .pay-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Modal ajustado */
    .modal {
        padding: 5px;
    }
    
    .modal-content {
        margin: 5px;
        max-height: 98vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 10px;
    }
}

/* Melhorias de acessibilidade para touch */
@media (hover: none) and (pointer: coarse) {
    .pay-button,
    .btn,
    .copy-btn {
        min-height: 44px; /* Tamanho mínimo recomendado para touch */
    }
    
    .form-group input {
        font-size: 16px; /* Evita zoom no iOS */
    }
    
    .method-content,
    .order-item,
    .security-badge {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 215, 0, 0.3);
    }
}

/* Correções específicas para layout cortado */
@media (max-width: 768px) {
    body {
        overflow-x: hidden; /* Evita scroll horizontal */
    }
    
    .checkout-container {
        min-height: auto; /* Remove altura mínima que pode causar cortes */
    }
    
    .order-summary-column,
    .payment-column {
        width: 100%; /* Garante largura total */
        max-width: 100%; /* Evita overflow */
    }
    
    .summary-card,
    .payment-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Garante que o conteúdo não seja cortado */
    .checkout-main {
        min-height: calc(100vh - 200px); /* Altura mínima considerando header */
    }
    
    /* Ajusta espaçamentos para evitar cortes */
    .payment-methods {
        margin-bottom: 1.5rem;
    }
    
    .pix-section {
        margin-bottom: 1.5rem;
    }
    
    .credit-form {
        margin-bottom: 1.5rem;
    }
    
    /* Garante que botões sejam visíveis */
    .payment-summary {
        margin-top: 1rem;
    }
    
    .pay-button {
        margin-bottom: 1rem;
    }
}

/* Correções para telas muito pequenas */
@media (max-width: 360px) {
    .checkout-container {
        padding: 0 0.5rem;
    }
    
    .summary-card,
    .payment-card {
        padding: 0.8rem;
    }
    
    .header-container {
        padding: 0 0.5rem;
    }
    
    .modal-content {
        margin: 2px;
    }
    
    .modal-header,
    .modal-body {
        padding: 10px;
    }
}