/* ==================================================== 
           VARIÁVEIS E BASE (SAAS DARK THEME)
           ==================================================== */
:root {
    --bg: #0b1020;
    --bg-soft: #10162b;
    --text: #e7ecff;
    --muted: #a9b3d0;
    --brand: #4da3ff;
    --brand-2: #8a5cff;
    --radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: radial-gradient(1000px 500px at 10% -10%, rgba(77, 163, 255, .15), transparent 60%),
        radial-gradient(800px 400px at 100% 100%, rgba(138, 92, 255, .12), transparent 55%),
        var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* ==================================================== 
           COMPONENTES REFINADOS (TAMANHOS MENORES)
           ==================================================== */
.container {
    width: min(1000px, 92%);
}

.eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 99px;
    background: rgba(77, 163, 255, 0.1);
    color: var(--brand);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -1px;
}

/* Card do Produto */
.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(77, 163, 255, 0.3);
}

.product-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    opacity: 0.8;
}

/* Checkout Widget (Onde estava o erro) */
.checkout-wrap {
    padding: 30px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    /* Garante que ele nunca suma */
    display: block !important;
    opacity: 1 !important;
}

/* Input Estilizado */
.input-m-pesa {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    color: white;
    text-align: center;
    font-size: 1rem;
    margin-bottom: 15px;
    transition: var(--transition);
}

.input-m-pesa:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(77, 163, 255, 0.15);
}

/* Botão */
.btn-pay {
    width: 100%;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: white;
    border: none;
    padding: 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(77, 163, 255, 0.2);
}

.btn-pay:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
    box-shadow: 0 15px 25px rgba(77, 163, 255, 0.3);
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

/* Animações */
@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: reveal 0.8s ease forwards;
}

#loading {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}