:root {
    --primary-pink: #ff4d94;
    --dark-bg: #0a0a0a;
    --card-bg: #151515;
    --text-light: #ffffff;
    --text-muted: #888888;
    --input-bg: rgba(255, 255, 255, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background-image: radial-gradient(circle at top right, rgba(255, 77, 148, 0.1), transparent 40%);
}

.checkout-container {
    background-color: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(255, 77, 148, 0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    animation: slideUp 0.5s ease;
}

/* Lado Esquerdo - Resumo do Pedido */
.checkout-header {
    padding: 40px;
    background: linear-gradient(180deg, rgba(255, 77, 148, 0.05) 0%, transparent 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.plan-tag {
    background: rgba(255, 77, 148, 0.15); color: var(--primary-pink);
    font-size: 11px; font-weight: 700; padding: 6px 12px;
    border-radius: 50px; text-transform: uppercase; letter-spacing: 1px;
}

.plan-title {
    font-size: 32px; font-weight: 800; margin-top: 20px; margin-bottom: 10px; line-height: 1.1;
}
.plan-title span { color: var(--primary-pink); }

.plan-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 30px; }

.plan-price {
    font-size: 48px; font-weight: 800; margin-bottom: 5px;
    display: flex; align-items: flex-start; color: white;
}
.plan-price small { font-size: 20px; margin-top: 8px; margin-right: 5px; color: var(--text-muted); }
.payment-type { font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 30px; display: block; }

.benefits-list { list-style: none; margin-top: 20px; }
.benefits-list li {
    margin-bottom: 15px; font-size: 14px; display: flex; align-items: center; color: #ddd;
}
.benefits-list li svg {
    color: var(--primary-pink); margin-right: 12px; flex-shrink: 0;
}

/* Lado Direito - Área de Pagamento */
.payment-section { padding: 40px; background: #121212; display: flex; flex-direction: column; justify-content: center; }

.payment-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; color: white; }

.payment-methods {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.method-item {
    display: flex;
    flex-direction: row; 
    align-items: center;
    justify-content: flex-start;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.method-item:hover, .method-item.active {
    background: rgba(255, 77, 148, 0.1);
    border-color: var(--primary-pink);
}

.method-icon {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-right: 15px;
    color: var(--text-muted);
}

.method-item.active .method-icon {
    background: var(--primary-pink);
    color: white;
}

.method-info { display: flex; flex-direction: column; }
.method-name { font-weight: 600; font-size: 14px; color: white; }
.method-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Formulário de Cartão */
.card-form-container {
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
}

.form-group input {
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-pink);
    background: rgba(255, 77, 148, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Botão de Pagar */
.btn-pay {
    width: 100%; padding: 18px;
    background: linear-gradient(90deg, var(--primary-pink), #ff2d80);
    color: white; border: none; border-radius: 12px;
    font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.3s; margin-top: 10px;
    box-shadow: 0 4px 15px rgba(255, 77, 148, 0.3);
}
.btn-pay:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255, 77, 148, 0.5); }
.btn-pay:disabled { opacity: 0.7; cursor: not-allowed; }

/* Área QR Code */
.qr-container { display: none; margin-top: 20px; background: rgba(255,255,255,0.05); padding: 20px; border-radius: 16px; text-align: center; }
.qr-image { width: 180px; height: 180px; border-radius: 8px; margin-bottom: 15px; border: 4px solid white; }
.copy-group { display: flex; gap: 8px; }
.copy-input { flex: 1; background: #000; border: 1px solid #333; color: #fff; padding: 10px; border-radius: 8px; font-family: monospace; font-size: 12px; }
.btn-copy { background: #333; color: white; border: 1px solid #555; padding: 0 15px; border-radius: 8px; cursor: pointer; }
.btn-copy:hover { background: var(--primary-pink); border-color: var(--primary-pink); }

.secure-badge {
    margin-top: 20px; font-size: 11px; color: #555; text-align: center; 
    display: flex; align-items: center; justify-content: center; gap: 5px;
}

/* Mensagem de erro de pagamento */
.payment-error-message {
    background: rgba(255, 77, 77, 0.1);
    border: 1px solid rgba(255, 77, 77, 0.3);
    color: #ff4d4d;
    padding: 12px 15px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInError 0.3s ease;
}

@keyframes slideInError {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsivo */
@media (max-width: 768px) {
    .checkout-container { grid-template-columns: 1fr; }
    .checkout-header { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 30px; }
    .payment-section { padding: 30px; }
}

@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }