/* =====================================================
   CHECKOUT.CSS — ANEP Checkout Flow
   ===================================================== */

/* ---- Reset / Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.checkout-body {
    font-family: 'Inter', sans-serif;
    background: #f4f6fb;
    color: #212529;
    min-height: 100vh;
}

/* ---- TOP BAR ---- */
.co-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: #fff;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07);
}

.co-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.co-logo-img {
    height: 36px;
    object-fit: contain;
}

.co-logo-fallback {
    display: flex;
    align-items: center;
    gap: 6px;
}

.co-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0d6efd, #1971c2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
}

.co-logo-txt {
    font-size: 18px;
    font-weight: 800;
    color: #1971c2;
}

.co-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ebfbee;
    border: 1px solid #12b886;
    border-radius: 20px;
    padding: 6px 12px;
    color: #0ca678;
}

.co-secure i {
    font-size: 16px;
}

.co-secure-lbl {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.co-secure-sub {
    display: block;
    font-size: 10px;
    color: #20c997;
}

/* ---- MAIN ---- */
.co-main {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px 14px 60px;
}

/* ---- STEPS ---- */
.co-step {
    display: block;
}

.co-step.hidden {
    display: none;
}

/* Progress bar */
.co-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.co-prog-item {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #868e96;
    flex-shrink: 0;
    transition: background .3s, color .3s;
}

.co-prog-item.active {
    background: #1971c2;
    color: #fff;
}

.co-prog-item.done {
    background: #12b886;
    color: #fff;
}

.co-prog-line {
    flex: 1;
    height: 3px;
    background: #dee2e6;
    max-width: 40px;
    transition: background .3s;
}

.co-prog-line.active {
    background: #12b886;
}

/* Step title */
.co-step-title {
    font-size: 17px;
    font-weight: 800;
    color: #1971c2;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.co-step-sub {
    font-size: 13px;
    color: #868e96;
    margin-bottom: 18px;
}

/* ---- FORM ---- */
.co-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.co-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.co-field label {
    font-size: 13px;
    font-weight: 600;
    color: #495057;
}

.co-field input {
    border: 1.5px solid #ced4da;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border .2s, box-shadow .2s;
    color: #212529;
}

.co-field input:focus {
    border-color: #1971c2;
    box-shadow: 0 0 0 3px rgba(25, 113, 194, .15);
}

.req {
    color: #e64980;
}

/* Benefits box */
.co-benefit-box {
    background: linear-gradient(135deg, #e6fcf5, #c3fae8);
    border: 1.5px solid #12b886;
    border-radius: 14px;
    padding: 16px;
    margin: 6px 0 10px;
}

.co-benefit-txt {
    font-size: 14px;
    font-weight: 600;
    color: #0ca678;
    margin-bottom: 8px;
}

.co-benefit-txt i {
    margin-right: 6px;
    color: #f59f00;
}

.co-benefit-sub {
    font-size: 13px;
    color: #495057;
    margin-bottom: 14px;
    line-height: 1.5;
}

.btn-co-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #1971c2, #1864ab);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(25, 113, 194, .35);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-co-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(25, 113, 194, .45);
}

.btn-co-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid #ced4da;
    color: #495057;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 12px 0 6px;
    font-family: 'Inter', sans-serif;
    transition: border-color .2s, color .2s;
}

.btn-co-back:hover {
    border-color: #1971c2;
    color: #1971c2;
}

.co-cnpj {
    font-size: 11px;
    color: #adb5bd;
    text-align: center;
    margin: 8px 0 20px;
}

/* ---- VALE A PENA ---- */
.co-vale {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    padding: 16px;
    margin: 16px 0;
}

.co-vale-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #212529;
}

.co-vale-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-vale-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f3f5;
}

.co-vale-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.co-vale-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.co-vale-icon.blue {
    background: #1971c2;
}

.co-vale-icon.purple {
    background: #7048e8;
}

.co-vale-icon.orange {
    background: #f76707;
}

.co-vale-item strong {
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

.co-vale-item p {
    font-size: 12px;
    color: #495057;
    margin-bottom: 2px;
}

.green-txt {
    color: #0ca678 !important;
    font-weight: 600 !important;
}

.muted-txt {
    color: #868e96 !important;
}

.co-mes {
    font-size: 11px;
    color: #adb5bd;
}

/* ---- FAQ ---- */
.co-faq {
    margin: 16px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.co-faq-btn {
    width: 100%;
    background: #fff;
    border: none;
    border-bottom: 1px solid #e9ecef;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-align: left;
    transition: background .15s;
}

.co-faq-btn:last-of-type {
    border-bottom: none;
}

.co-faq-btn:hover {
    background: #f8f9fa;
}

.co-faq-btn.open {
    color: #1971c2;
}

.co-faq-btn.open i {
    transform: rotate(180deg);
}

.co-faq-btn i {
    transition: transform .25s;
    color: #adb5bd;
}

.co-faq-panel {
    max-height: 0;
    overflow: hidden;
    background: #f8f9fa;
    transition: max-height .3s ease, padding .3s;
    padding: 0 16px;
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
}

.co-faq-panel.open {
    max-height: 200px;
    padding: 12px 16px;
}

/* ---- TESTIMONIALS ---- */
.co-depo {
    margin: 16px 0;
}

.co-depo-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 0 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.co-depo-scroll::-webkit-scrollbar {
    display: none;
}

.co-depo-card {
    flex: 0 0 260px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .1);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* Real screenshot image cards */
.depo-img-card {
    flex: 0 0 220px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, .12);
    scroll-snap-align: start;
    background: #fff;
    display: flex;
    align-items: stretch;
}

.depo-img-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.depo-img-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}


/* ================================================
   STEP 2 — CARD PREVIEW (appears after class click)
   ================================================ */
.s2-preview {
    margin-top: 20px;
    animation: fadeSlideIn .35s ease both;
}

.s2-preview.hidden {
    display: none !important;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

/* ---- 3D Flip Card ---- */
.flip-card {
    perspective: 900px;
    cursor: pointer;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 4px;
    aspect-ratio: 85.6 / 54;
    /* standard card ratio */
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}

.flip-card.flipped .flip-inner {
    transform: rotateY(180deg);
}

.flip-front,
.flip-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.flip-front img,
.flip-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flip-back {
    transform: rotateY(180deg);
}

.co-depo-label {
    text-align: center;
    font-size: 13px;
    color: #868e96;
    margin-top: 6px;
}

/* ---- STEP 2: CLASS CARDS — see prod-card section below ---- */


/* ===== PRODUCT CARD (matches original site) ===== */

/* The outer wrapper must allow frete badge to overflow */
.co-class-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* extra gap so frete badge (overflow top) doesn't clip next card */
    margin-bottom: 16px;
    padding-top: 8px;
    /* space for frete badge top overflow */
}

.co-class-card {
    border-radius: 10px;
    overflow: visible;
    /* allows frete sticker to stick out */
    cursor: pointer;
    transition: transform .2s;
    position: relative;
}

.co-class-card:hover {
    transform: scale(1.01);
}

.co-class-card.selected .prod-card {
    outline: 3px solid #12b886;
    box-shadow: 0 0 0 5px rgba(18, 184, 134, .25);
}

.prod-card {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    /* clips ribbon corners nicely */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5px 0 16px;
    min-height: 305px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
}

/* ---- Diagonal price ribbon (top-left corner, -45deg) ---- */
.prod-ribbon-wrap {
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: 10px;
}

.prod-ribbon {
    background: #40c057;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .3px;
    width: 255px;
    height: 50px;
    transform: rotate(-45deg);
    position: absolute;
    top: 30px;
    left: -76px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
}

/* ---- Frete sticker (top-right, overflows card) ---- */
.prod-frete-wrap {
    position: absolute;
    top: -18px;
    right: -8px;
    transform: rotate(15deg);
    z-index: 10;
    pointer-events: none;
}

.prod-frete-img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, .15));
    display: block;
}

/* Fallback when image fails: mimic circular green sticker */
.prod-frete-txt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #40c057;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}

/* ---- Oval photo container ---- */
.prod-photo-wrap {
    width: 220px;
    height: 226px;
    border-radius: 50px;
    overflow: hidden;
    background: #d9d9d9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 5px;
    margin-bottom: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.prod-photo {
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ---- Card title (bottom) ---- */
.prod-name {
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
    letter-spacing: .6px;
    padding: 0 16px;
    margin: 0;
    position: relative;
    z-index: 1;
}


/* ---- STEP 3: CARD PREVIEW ---- */
.co-card-preview {
    margin: 12px 0;
    display: flex;
    justify-content: center;
}

/* Professor card mock */
.card-mock {
    width: 100%;
    max-width: 360px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .2);
    cursor: pointer;
}

.card-mock-bg {
    background: linear-gradient(135deg, #1a5f1a, #2d7a1e);
    padding: 16px;
    display: flex;
    gap: 12px;
    min-height: 180px;
}

.card-mock-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-mock-photo {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, .3);
}

.card-mock-qr {
    width: 80px;
    display: flex;
    justify-content: center;
}

.card-mock-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.card-mock-logo {
    margin-bottom: 4px;
}

.card-mock-type {
    font-size: 9px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.4;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.card-mock-type strong {
    color: #aaff00;
    font-size: 10px;
}

.card-mock-name {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.card-mock-info {
    font-size: 10px;
    color: rgba(255, 255, 255, .75);
}

.card-mock-code {
    margin-top: 4px;
    font-size: 10px;
    color: rgba(255, 255, 255, .9);
}

.card-mock-year {
    font-size: 22px;
    font-weight: 900;
    color: #aaff00;
    text-align: right;
    margin-top: auto;
}

/* Estudante card mock */
.estudante-mock .card-mock-bg-est {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}

.card-mock-bg-est {
    padding: 12px;
}

.card-mock-header-est {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid #1a1a6e;
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.card-mock-body-est {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.card-mock-photo-est {
    width: 70px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid #e9ecef;
}

.card-est-info {
    flex: 1;
}

.card-est-name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a6e;
    margin-bottom: 4px;
}

.card-est-field {
    font-size: 10px;
    color: #495057;
    margin-bottom: 3px;
}

.card-est-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.card-est-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 2px solid #e9ecef;
}

.card-est-decade {
    font-size: 24px;
    font-weight: 900;
    color: #1a1a6e;
}

/* Co type hint */
.co-type-hint {
    font-size: 12px;
    color: #adb5bd;
    text-align: center;
    margin: 4px 0 14px;
}

.co-type-label {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.co-type-note {
    background: #ebfbee;
    border-left: 3px solid #12b886;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: #0ca678;
    line-height: 1.5;
    margin-bottom: 14px;
}

/* Type options */
.co-type-options {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.co-type-opt {
    flex: 1;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    background: #fff;
}

.co-type-opt.selected {
    border-color: #1971c2;
    box-shadow: 0 0 0 3px rgba(25, 113, 194, .15);
}


.co-type-popular {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #1971c2;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.co-type-icon {
    font-size: 22px;
    color: #1971c2;
    margin-top: 8px;
}

.co-type-name {
    font-size: 13px;
    font-weight: 700;
    color: #212529;
    display: block;
}

.co-type-price {
    font-size: 18px;
    font-weight: 800;
    color: #1971c2;
    display: block;
}

.co-type-avail {
    font-size: 11px;
    color: #12b886;
    font-weight: 600;
}

.co-type-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.co-type-btns {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.co-type-btns .btn-co-primary {
    flex: 1;
}

/* ===============================================
   WhatsApp-style chat cards (shared across steps)
   =============================================== */
.wa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #075e54;
    padding: 10px 14px;
    color: #fff;
}

.wa-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.wa-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
}

.wa-icons {
    display: flex;
    gap: 10px;
    font-size: 15px;
    opacity: .85;
}

.wa-body {
    padding: 10px;
    background: #e5ddd5;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.wa-msg {
    max-width: 85%;
    padding: 7px 10px 4px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.45;
}

.wa-msg p {
    margin: 0 0 2px;
}

.wa-msg p:last-of-type {
    margin-bottom: 0;
}

.wa-msg.received {
    background: #fff;
    border-radius: 0 8px 8px 8px;
    align-self: flex-start;
    color: #212529;
}

.wa-msg.sent {
    background: #dcf8c6;
    border-radius: 8px 0 8px 8px;
    align-self: flex-end;
    color: #212529;
}

.wa-time {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.depo-stars-sm {
    padding: 8px 12px;
    background: #fff;
    color: #f59f00;
    font-size: 13px;
    text-align: center;
    border-top: 1px solid #f1f3f5;
}

/* ================================================
   BLACK CNP PROFESSOR CARD MOCK
   ================================================ */
.cnp-mock {
    max-width: 380px;
    width: 100%;
}

.cnp-card-inner {
    background: #111;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 19px, rgba(255, 255, 255, .04) 19px, rgba(255, 255, 255, .04) 20px),
        repeating-linear-gradient(90deg, transparent, transparent 19px, rgba(255, 255, 255, .04) 19px, rgba(255, 255, 255, .04) 20px);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .4);
}

/* Top section */
.cnp-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.cnp-photo-wrap {
    flex-shrink: 0;
    width: 90px;
}

.cnp-photo {
    width: 90px;
    height: 110px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, .2);
    display: block;
}

.cnp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Flag-style logo */
.cnp-flag-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: flex-end;
}

.cnp-flag-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(#009c3b 0deg 120deg, #fedf00 120deg 240deg, #009c3b 240deg 360deg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cnp-flag-leaf {
    color: #002776;
    font-size: 10px;
}

.cnp-flag-txt {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.cnp-flag-line1,
.cnp-flag-line2 {
    font-size: 7px;
    color: rgba(255, 255, 255, .7);
    text-transform: uppercase;
    letter-spacing: .3px;
}

.cnp-flag-line3 {
    font-size: 10px;
    font-weight: 900;
    color: #9eff00;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Fields */
.cnp-fields {
    display: flex;
    flex-direction: column;
}

.cnp-label {
    font-size: 8px;
    color: rgba(255, 255, 255, .5);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 1px;
}

.cnp-value {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1px;
}

.cnp-masked {
    color: rgba(255, 255, 255, .45);
    font-size: 10px;
}

.cnp-row-data {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

/* Bottom section */
.cnp-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding-top: 8px;
}

.cnp-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.cnp-qr-icon {
    font-size: 44px;
    color: #fff;
}

.cnp-code {
    font-size: 9px;
    color: rgba(255, 255, 255, .6);
    letter-spacing: .5px;
}

.cnp-year {
    font-size: 32px;
    font-weight: 900;
    color: #9eff00;
    line-height: 1;
    font-style: italic;
    display: flex;
    align-items: center;
}

.cnp-year-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid #9eff00;
    font-size: 18px;
    font-weight: 900;
    color: #9eff00;
    margin: 0 1px;
}

/* ===== Vale a pena – new card design ===== */
.co-vale-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.co-vale-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
}

.co-vale-icon-circle {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e7f3ff;
    color: #1971c2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.co-vale-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.co-vale-content strong {
    font-size: 14px;
    color: #212529;
    font-weight: 700;
}

.co-vale-price {
    font-size: 12px;
    color: #868e96;
    margin: 0;
}

.co-vale-economy {
    font-size: 12px;
    font-weight: 600;
    color: #2f9e44;
    margin: 0;
}

.co-vale-payback {
    font-size: 12px;
    color: #0ca678;
    font-weight: 600;
    margin: 0;
}

.co-vale-badge {
    display: inline-block;
    margin-top: 4px;
    background: #fff3cd;
    color: #e67700;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
    padding: 2px 9px;
    border-radius: 20px;
    width: fit-content;
}

/* ===== STEP 4: PAYMENT ===== */

.pay-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.pay-opt {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s;
}

.pay-opt.selected {
    border-color: #12b886;
    box-shadow: 0 0 0 3px rgba(18, 184, 134, .12);
}

.pay-opt-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Radio circle */
.pay-radio {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #adb5bd;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
}

.pay-opt.selected .pay-radio {
    border-color: #12b886;
    background: #12b886;
    box-shadow: inset 0 0 0 3px #fff;
}

.pay-logo {
    font-weight: 700;
    font-size: 14px;
    color: #212529;
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.pix-logo {
    color: #0ca678;
    font-size: 15px;
}

.pay-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}

.pay-badge.green {
    background: #ebfbee;
    color: #0ca678;
}

.pay-badge.gray {
    background: #f1f3f5;
    color: #868e96;
    font-size: 9px;
    white-space: normal;
    text-align: right;
}

.pay-sub {
    font-size: 11px;
    color: #868e96;
    margin: 4px 0 0 28px;
}

.pay-brands {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    margin-left: 28px;
}

.pay-brands img {
    height: 20px;
    object-fit: contain;
}

/* Coupon accordion */
.pay-coupon-wrap {
    margin-bottom: 14px;
}

.pay-coupon-toggle {
    width: 100%;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #212529;
}

.pay-coupon-toggle .pay-chevron {
    margin-left: auto;
    transition: transform .25s;
}

.pay-coupon-toggle.open .pay-chevron {
    transform: rotate(180deg);
}

.pay-coupon-panel {
    background: #fff;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 12px 14px;
}

.pay-coupon-panel.hidden {
    display: none;
}

.pay-coupon-sub {
    font-size: 11px;
    color: #868e96;
    margin-bottom: 10px;
    line-height: 1.5;
}

.pay-coupon-link {
    color: #1971c2;
    text-decoration: underline;
}

.pay-coupon-row {
    display: flex;
    gap: 8px;
}

.pay-coupon-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    outline: none;
}

.pay-coupon-input:focus {
    border-color: #1971c2;
}

.pay-coupon-btn {
    background: #1971c2;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.pay-coupon-info {
    font-size: 11px;
    color: #adb5bd;
    margin-top: 8px;
}

/* Order summary */
.pay-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pay-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.pay-summary-label {
    color: #868e96;
}

.pay-summary-val {
    font-weight: 600;
    color: #212529;
    text-align: right;
}

/* Upsell strip */
.pay-upsell {
    background: linear-gradient(135deg, #0b7285, #0ca678);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
    color: #fff;
}

.pay-upsell-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.pay-upsell-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #fff;
    flex-shrink: 0;
    cursor: pointer;
}

.pay-upsell-row label {
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
}

.pay-upsell-off {
    background: #fff;
    color: #0ca678;
    font-weight: 900;
    font-size: 13px;
    padding: 1px 8px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 2px;
}

.pay-upsell-note {
    font-size: 11px;
    opacity: .75;
    margin-left: 30px;
}

/* Total block */
.pay-total-block {
    background: #fff;
    border: 2px solid #dee2e6;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 4px;
}

.pay-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.pay-total-price {
    font-size: 22px;
    color: #0ca678;
    font-weight: 900;
}

.pay-total-note {
    font-size: 11px;
    color: #868e96;
    line-height: 1.5;
}

/* ===== PIX MODAL ===== */
.pix-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    backdrop-filter: blur(4px);
}

.pix-modal-box {
    background: #fff;
    border-radius: 20px;
    width: 100%;
    max-width: 380px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
    animation: modalIn .25s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pix-modal-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pix-modal-title {
    font-weight: 800;
    font-size: 15px;
    color: #0ca678;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pix-modal-close-x {
    background: #f1f3f5;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    color: #868e96;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pix-steps {
    font-size: 11px;
    color: #868e96;
    text-align: center;
    line-height: 1.6;
}

.pix-qr-img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 2px solid #dee2e6;
    object-fit: contain;
}

.pix-qr-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #dee2e6;
}

.pix-amount {
    font-size: 14px;
    color: #212529;
}

.pix-amount strong {
    color: #0ca678;
    font-size: 18px;
}

.pix-copy-wrap {
    display: flex;
    width: 100%;
    gap: 6px;
}

.pix-code-input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    color: #495057;
    outline: none;
    background: #f8f9fa;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pix-copy-btn {
    background: #0ca678;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

.pix-copy-btn.copied {
    background: #2f9e44;
}

.pix-status-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12px;
    color: #495057;
}

/* Pulsing green dot */
.pix-blink {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0ca678;
    flex-shrink: 0;
    animation: blink 1.2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .2;
    }
}

.pix-timer {
    margin-left: auto;
    font-weight: 700;
    font-size: 13px;
    color: #e67700;
    font-variant-numeric: tabular-nums;
}

/* Loading spinner */
.pix-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #e9ecef;
    border-top-color: #0ca678;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pix-loading-txt {
    font-size: 14px;
    color: #868e96;
}

/* Success / Error icon */
.pix-modal-icon {
    font-size: 60px;
    margin: 8px 0;
}

.pix-modal-icon.success {
    color: #0ca678;
}

.pix-modal-icon.error {
    color: #fa5252;
}

.pix-paid-title {
    font-size: 18px;
    font-weight: 800;
    color: #212529;
}

.pix-paid-sub {
    font-size: 13px;
    color: #868e96;
    text-align: center;
}

.pix-error-msg {
    font-size: 13px;
    color: #495057;
    text-align: center;
    line-height: 1.5;
}

.pix-close-btn {
    background: #f1f3f5;
    border: none;
    border-radius: 10px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    color: #495057;
}