/* ═══════════════════════════════════════════════════════════════════════════
   CART STEPPER & CONFIRMATION SCREEN (ESTILO CHECKOUT PREMIUM / CENTAURO)
   Simulador HNT - Hanuthai Fight
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── 1. BARRA SUPERIOR DE ETAPAS (STEPPER CLEAN) ─── */
.hnt-checkout-stepper-bar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.hnt-stepper-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    box-sizing: border-box;
}

.hnt-stepper-step {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    position: relative;
    transition: all 0.25s ease;
    user-select: none;
    text-decoration: none;
    color: #64748b;
}

.hnt-stepper-step:hover {
    color: #0f172a;
}

.hnt-stepper-step .step-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #64748b;
    transition: all 0.25s ease;
}

.hnt-stepper-step .step-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: color 0.25s ease;
}

.hnt-stepper-step .step-active-indicator {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #e11d48;
    border-radius: 3px 3px 0 0;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Etapa Ativa */
.hnt-stepper-step.active {
    color: #0f172a;
}

.hnt-stepper-step.active .step-icon-wrap {
    color: #e11d48;
    transform: translateY(-1px);
}

.hnt-stepper-step.active .step-label {
    color: #0f172a;
    font-weight: 700;
}

.hnt-stepper-step.active .step-active-indicator {
    width: 100%;
}

/* Etapa Concluída */
.hnt-stepper-step.completed {
    color: #10b981;
}

.hnt-stepper-step.completed .step-icon-wrap {
    color: #10b981;
}

.hnt-stepper-step.completed .step-label {
    color: #334155;
}

/* Conector divisório entre etapas */
.hnt-stepper-divider {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 10px;
    position: relative;
    max-width: 90px;
    transition: background 0.3s ease;
}

.hnt-stepper-divider.completed {
    background: #10b981;
}

/* ─── 2. CONTÊINERES DE ETAPAS DO CHECKOUT ─── */
.checkout-step-container {
    animation: hntFadeStep 0.3s ease-out forwards;
}

@keyframes hntFadeStep {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botões de navegação entre passos */
.hnt-step-nav-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hnt-btn-back-step {
    background: transparent;
    border: 1px solid #475569;
    color: #cbd5e1;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.hnt-btn-back-step:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: #94a3b8;
}

.hnt-btn-next-step {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff;
    border: none;
    padding: 13px 26px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
    transition: all 0.2s ease;
    margin-left: auto;
}

.hnt-btn-next-step:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
    transform: translateY(-1px);
}

/* ─── 3. TELA DE FINALIZAÇÃO / CONFIRMAÇÃO ("JÁ É QUASE SEU!") ─── */
.hnt-confirmation-screen {
    max-width: 680px;
    margin: 32px auto 60px auto;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Card Clean Moderno */
.hnt-confirm-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
    overflow: hidden;
    color: #1e293b;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hnt-confirm-card-main {
    padding: 32px 28px 24px 28px;
    text-align: center;
}

/* Ilustração de Celular com Pagamento */
.hnt-confirm-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

.hnt-phone-mockup {
    width: 64px;
    height: 96px;
    border: 3px solid #1e293b;
    border-radius: 14px;
    position: relative;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.hnt-phone-mockup::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 20px;
    height: 3px;
    background: #94a3b8;
    border-radius: 3px;
}

.hnt-phone-badge {
    width: 32px;
    height: 32px;
    background: #e11d48;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
    animation: hntPulseCoin 2s infinite ease-in-out;
}

@keyframes hntPulseCoin {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* Títulos */
.hnt-confirm-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.5px;
}

.hnt-confirm-subtitle {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.hnt-confirm-timer-highlight {
    font-weight: 700;
    color: #e11d48;
}

/* Moldura do QR Code */
.hnt-confirm-qrcode-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 22px;
}

#confirm-qrcode-target {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#confirm-qrcode-target img,
#confirm-qrcode-target canvas {
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* Botão Vermelho "Copiar código pix" (Destaque Principal) */
.hnt-btn-copy-pix {
    background: #e11d48;
    color: #ffffff;
    border: none;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 26px auto;
    padding: 14px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
    transition: all 0.2s ease;
}

.hnt-btn-copy-pix:hover {
    background: #be123c;
    box-shadow: 0 6px 20px rgba(225, 29, 72, 0.45);
    transform: translateY(-1px);
}

.hnt-btn-copy-pix:active {
    transform: translateY(1px);
}

.hnt-btn-copy-pix.copied {
    background: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

/* Bloco "Siga as instruções abaixo:" */
.hnt-confirm-instructions-wrap {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    text-align: left;
}

.hnt-instructions-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 14px;
}

.hnt-instructions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.hnt-instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.hnt-step-num-badge {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e11d48;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.hnt-step-desc {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.35;
}

/* ─── 4. CARD SECUNDÁRIO ("FIQUE POR DENTRO") ─── */
.hnt-confirm-card-summary {
    padding: 24px 28px;
}

.hnt-summary-header-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.hnt-summary-header-sub {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0 0 20px 0;
}

.hnt-summary-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    align-items: start;
}

.hnt-summary-col-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hnt-summary-info-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hnt-summary-info-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hnt-summary-order-num {
    font-family: monospace;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: 0.5px;
}

.hnt-summary-pay-method {
    font-size: 0.92rem;
    font-weight: 700;
    color: #10b981;
}

.hnt-summary-items-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.hnt-item-thumb-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.hnt-item-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hnt-item-thumb-qty {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: rgba(15, 23, 42, 0.8);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    border-radius: 4px;
    padding: 1px 4px;
}

/* Coluna Direita (Tabela de Custos / Resumo) */
.hnt-summary-col-right {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    padding: 14px 16px;
}

.hnt-cost-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hnt-cost-table .cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #475569;
}

.hnt-cost-table .cost-row.green {
    color: #10b981;
}

.hnt-cost-table .cost-row.green strong {
    color: #10b981;
}

.hnt-cost-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 4px 0;
}

.hnt-cost-table .cost-row.total {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

.hnt-cost-table .total-highlight {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
}

/* ─── 5. BOTÃO INFERIOR DE ACOMPANHAMENTO ─── */
.hnt-confirm-footer-action {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.hnt-btn-track-order {
    background: #e11d48;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.3);
    transition: all 0.2s ease;
}

.hnt-btn-track-order:hover {
    background: #be123c;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.45);
    transform: translateY(-1px);
    color: #ffffff;
}

/* ─── 6. RESPONSIVIDADE MOBILE ─── */
@media (max-width: 640px) {
    .hnt-stepper-inner {
        padding: 8px 10px;
    }

    .hnt-stepper-step {
        padding: 4px 6px;
    }

    .hnt-stepper-step .step-label {
        font-size: 0.74rem;
    }

    .hnt-stepper-step .step-icon-wrap {
        width: 26px;
        height: 26px;
    }

    .hnt-stepper-step .step-icon-wrap svg {
        width: 18px;
        height: 18px;
    }

    .hnt-stepper-divider {
        margin: 0 4px;
    }

    .hnt-confirm-card-main {
        padding: 24px 18px 20px 18px;
    }

    .hnt-confirm-title {
        font-size: 1.5rem;
    }

    .hnt-confirm-subtitle {
        font-size: 0.86rem;
    }

    .hnt-instructions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hnt-summary-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .hnt-confirm-card-summary {
        padding: 20px 18px;
    }

    .hnt-btn-track-order {
        width: 100%;
        justify-content: center;
    }
}

/* ─── 7. DESTAQUE & BALÃO FLUTUANTE DO PIX (EXPERIÊNCIA FOCADA) ─── */
@keyframes hntPixPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(226, 192, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 25px 6px rgba(226, 192, 68, 0.65);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(226, 192, 68, 0);
    }
}

.hnt-confirm-card-main.hnt-pulse-focus {
    animation: hntPixPulse 2.2s ease 2;
    border: 2px solid #E2C044 !important;
}

/* Janela Balão Flutuante (Toast Superior) */
.hnt-pix-floating-balloon {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 10000;
    background: #0f172a;
    border: 1.5px solid #E2C044;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(226, 192, 68, 0.35);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 90vw;
    width: 580px;
    box-sizing: border-box;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    pointer-events: auto;
}

.hnt-pix-floating-balloon.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.hnt-balloon-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(226, 192, 68, 0.18);
    border: 1px solid #E2C044;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fde047;
    flex-shrink: 0;
}

.hnt-balloon-text {
    flex: 1;
    min-width: 0;
}

.hnt-balloon-text strong {
    display: block;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.hnt-balloon-text span {
    display: block;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
    margin-top: 2px;
}

.hnt-balloon-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hnt-balloon-btn-copy {
    background: #E2C044;
    color: #0b0f19;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.hnt-balloon-btn-copy:hover {
    background: #fde047;
    transform: scale(1.03);
}

.hnt-balloon-btn-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.hnt-balloon-btn-close:hover {
    color: #ffffff;
}

/* Link secundário para checkout web opcional da InfinitePay */
.hnt-btn-infinitepay-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hnt-btn-infinitepay-link:hover {
    color: #0f172a;
    background: #e2e8f0;
    border-color: #94a3b8;
}

/* Botão para alternar para Cartão de Crédito */
.hnt-btn-switch-to-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 420px;
    padding: 10px 18px;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid #475569;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.hnt-btn-switch-to-card:hover {
    background: #334155;
    border-color: #E2C044;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(226, 192, 68, 0.2);
}
