/* ===== Checkout — Minimalist Dark Theme ===== */

/* Stars canvas (same as landing) */
#checkout-stars {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Subtle top gradient glow */
.checkout-glow {
    position: fixed; top: 0; left: 0; right: 0;
    height: 40vh;
    background: radial-gradient(ellipse 60% 50% at 50% -10%, rgba(0,102,255,0.10) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Step panels — show/hide */
.step-panel { display: none; }
.step-panel.active { display: block; animation: panelIn 0.35s ease; }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Glass card */
.glass {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
}

/* Input style */
.ck-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    transition: border-color 0.2s;
    outline: none;
}
.ck-input::placeholder { color: rgba(255,255,255,0.2); }
.ck-input:focus { border-color: rgba(0,102,255,0.5); }
.ck-input.border-red-500\/50 { border-color: rgba(239,68,68,0.5); }

/* Primary button */
.ck-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.ck-btn-white { background: #fff; color: #000; }
.ck-btn-white:hover { background: #e5e5e5; }
.ck-btn-white:disabled { opacity: 0.5; cursor: not-allowed; }
.ck-btn-green { background: #22c55e; color: #000; }
.ck-btn-green:hover { background: #16a34a; }

/* Stepper */
.stepper-circle {
    width: 2rem; height: 2rem;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 700;
    transition: all 0.3s;
}
.stepper-circle.pending { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }
.stepper-circle.active { background: #0066FF; color: #fff; }
.stepper-circle.done { background: #22c55e; color: #fff; }

.stepper-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}
.stepper-label.pending { color: rgba(255,255,255,0.25); }
.stepper-label.active { color: #fff; }
.stepper-label.done { color: #4ade80; }

.stepper-line {
    height: 1px;
    position: relative;
    flex: 1;
    margin: 0 0.75rem;
}
.stepper-line-bg {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.06);
}
.stepper-line-fill {
    position: absolute; top: 0; bottom: 0; left: 0;
    background: #0066FF;
    transition: width 0.5s ease;
    width: 0;
}

/* Upsell card */
.upsell-card {
    background: linear-gradient(135deg, rgba(34,197,94,0.06), rgba(34,197,94,0.01));
    border: 1px solid rgba(34,197,94,0.15);
    border-radius: 1rem;
}

/* FAQ */
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-top: 0; padding-bottom: 0;
}
.faq-answer.open { max-height: 200px; padding-top: 0.75rem; padding-bottom: 0.25rem; }

/* Check pop */
.check-pop { animation: checkPop 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes checkPop { 0% { transform:scale(0); opacity:0 } 60% { transform:scale(1.15) } 100% { transform:scale(1); opacity:1 } }

/* Exit modal */
.exit-modal-enter { animation: modalIn 0.3s ease; }
@keyframes modalIn { from { opacity:0; transform:scale(0.95) } to { opacity:1; transform:scale(1) } }

/* Testimonial enter */
.testimonial-enter { animation: testimonialFadeUp 0.5s ease; }
@keyframes testimonialFadeUp { from { opacity:0; transform:translateY(6px) } to { opacity:1; transform:translateY(0) } }

/* CEP button inline fix */
#btn-cep { min-width: 5rem; }

/* CPF result section slide-in */
.cpf-result-enter { animation: cpfResultIn 0.4s ease; }
@keyframes cpfResultIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Phone suggestion chips */
.phone-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 2rem;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: all 0.2s;
}
.phone-chip:hover {
    background: rgba(0,102,255,0.1);
    border-color: rgba(0,102,255,0.3);
    color: #fff;
}
.phone-chip .chip-type {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.3);
}

/* Address suggestion cards */
.address-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}
.address-card:hover {
    background: rgba(0,102,255,0.05);
    border-color: rgba(0,102,255,0.2);
}
.address-card.selected {
    background: rgba(0,102,255,0.08);
    border-color: rgba(0,102,255,0.4);
}
.address-card .addr-type {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.25);
    margin-bottom: 0.25rem;
}
.address-card .addr-line {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.6);
    line-height: 1.4;
}
.address-card.selected .addr-line { color: rgba(255,255,255,0.85); }

/* Mobile summary safe area */
@media (max-width: 1023px) {
    main { padding-bottom: 5rem; }
}
