.modal-checkout {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 2rem;
    animation: fadeIn 0.3s ease-out;
}

.modal-checkout.active {
    display: flex;
}

.modal-container {
    background: #0a0a0a;
    width: 100%;
    max-width: 900px;
    height: auto;
    min-height: 550px;
    border-radius: 2rem;
    display: flex;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-checkout.active .modal-container {
    transform: scale(1);
}

/* Coluna Esquerda: Resumo do Pedido */
.checkout-sidebar {
    flex: 0.8;
    background: #0f0f0f;
    padding: 4rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sidebar-header {
    margin-bottom: 4rem;
}

.sidebar-header img {
    width: 60px;
    margin-bottom: 1.5rem;
}

.product-info h3 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-benefits {
    list-style: none;
    margin-top: 2rem;
}

.product-benefits li {
    color: #888;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.product-benefits li ion-icon {
    color: #ff0000;
    font-size: 1.8rem;
}

.price-summary {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.price-summary p {
    color: #666;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.price-summary h2 {
    color: #ff0000;
    font-size: 3.5rem;
    font-weight: 800;
    margin-top: 0.5rem;
}

/* Coluna Direita: Fluxo de Pagamento */
.checkout-form {
    flex: 1.2;
    padding: 4rem;
    position: relative;
    background: #0a0a0a;
}

.close-modal-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #444;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-modal-btn:hover {
    color: #ff0000;
}

.form-header {
    margin-bottom: 3rem;
}

.form-header h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
}

.form-header p {
    color: #555;
    font-size: 1.3rem;
    margin-top: 0.5rem;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
    animation: slideIn 0.4s ease-out;
}

.input-field {
    margin-bottom: 2.5rem;
}

.input-field label {
    display: block;
    color: #aaa;
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.input-field input {
    width: 100%;
    background: #141414;
    border: 1px solid #222;
    padding: 1.4rem;
    border-radius: 1rem;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.2s;
}

.input-field input:focus {
    outline: none;
    border-color: #ff0000;
    box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.1);
}

.btn-checkout {
    width: 100%;
    padding: 1.6rem;
    background: #ff0000;
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 1rem;
}

.btn-checkout:hover {
    background: #cc0000;
    transform: translateY(-2px);
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.payment-card {
    background: #141414;
    border: 1px solid #222;
    padding: 2rem;
    border-radius: 1.2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.payment-card.active {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.05);
}

.payment-card ion-icon {
    font-size: 2.5rem;
    color: #ff0000;
    margin-bottom: 1rem;
}

.payment-card span {
    display: block;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .modal-container {
        flex-direction: column;
        max-width: 450px;
        min-height: auto;
    }

    .checkout-sidebar {
        padding: 3rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .checkout-form {
        padding: 3rem;
    }
}

/* Discord Button Style */
.btn-discord {
    width: 100%;
    padding: 1.6rem;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

/* Payment Brick Container */
#paymentBrick_container {
    min-height: 500px;
    width: 100%;
    display: block;
    border-radius: 8px;
    margin-top: 1rem;
}