.checkout-body {
    background: #0a0a0a;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.checkout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: #111;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: 12px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
}

.step.active {
    color: #00d4aa;
}

.step.done {
    color: #22c55e;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #1e1e1e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.step.active .step-num {
    background: #00d4aa;
    color: #000;
}

.step.done .step-num {
    background: #22c55e;
    color: #fff;
}

.step-line {
    width: 40px;
    height: 2px;
    background: #1e1e1e;
}

.checkout-secure {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
}

.checkout-main {
    flex: 1;
    display: flex;
    padding: 32px;
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.checkout-content {
    flex: 1;
}

.checkout-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-content h2 i {
    color: #00d4aa;
}

.checkout-step {
    display: none;
}

.checkout-step.active {
    display: block;
}

/* SIDEBAR */
.checkout-sidebar {
    width: 340px;
    background: #161616;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.checkout-sidebar h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.sidebar-item-img {
    width: 50px;
    height: 50px;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.sidebar-item-info {
    flex: 1;
}

.sidebar-item-name {
    font-size: 13px;
    font-weight: 600;
}

.sidebar-item-flavor {
    font-size: 11px;
    color: #666;
}

.sidebar-item-price {
    font-size: 14px;
    font-weight: 700;
    color: #00d4aa;
}

.sidebar-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    margin-top: 8px;
    border-top: 2px solid rgba(255,255,255,0.06);
}

.sidebar-total span:first-child {
    font-size: 16px;
    font-weight: 600;
}

.sidebar-total span:last-child {
    font-size: 22px;
    font-weight: 800;
    color: #00d4aa;
}

.sidebar-trust {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.sidebar-trust div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
    padding: 4px 0;
}

.sidebar-trust i {
    color: #00d4aa;
    font-size: 14px;
}

/* FORMS */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #a0a0a0;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: #1e1e1e;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    color: #fff;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
}

.form-group input:focus {
    border-color: #00d4aa;
    outline: none;
}

.form-group input::placeholder {
    color: #444;
}

.form-group input[readonly] {
    background: #151515;
    border-color: rgba(0,212,170,0.2);
    color: #00d4aa;
    cursor: default;
}

.form-group input[readonly]:focus {
    border-color: rgba(0,212,170,0.3);
    outline: none;
}

.flex-2 {
    flex: 2;
}

/* FIELD STATES */
.field-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.field-loading {
    align-items: center;
    gap: 6px;
    color: #00d4aa;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.field-loading i {
    font-size: 12px;
}

/* MIN ORDER ALERT */
.min-order-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid rgba(234, 179, 8, 0.25);
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #eab308;
}

.min-order-alert i {
    font-size: 18px;
    flex-shrink: 0;
}

/* FORM DIVIDER */
.form-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.form-divider span {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* PAYMENT METHODS */
.payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-method {
    background: #161616;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    font-family: 'Inter', sans-serif;
    color: #fff;
}

.payment-method:hover {
    border-color: rgba(255,255,255,0.12);
}

.payment-method.active {
    border-color: #00d4aa;
    background: rgba(0, 212, 170, 0.05);
}

.payment-method i {
    font-size: 28px;
    color: #00d4aa;
    display: block;
    margin-bottom: 8px;
}

.payment-method span {
    display: block;
    font-weight: 700;
    font-size: 15px;
}

.payment-method small {
    color: #666;
    font-size: 12px;
}

.payment-section {
    display: none;
}

.payment-section.active {
    display: block;
}

.pix-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    background: rgba(0, 212, 170, 0.05);
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-radius: 10px;
    margin-bottom: 20px;
}

.pix-info i {
    color: #00d4aa;
}

.pix-info p {
    font-size: 13px;
    color: #a0a0a0;
}

.card-brands {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.card-brands i {
    font-size: 32px;
    color: #444;
}

/* NAV */
.checkout-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

/* ORDER SUMMARY */
.order-summary {
    background: #161616;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.summary-row:last-child {
    border-bottom: none;
    font-weight: 800;
    font-size: 18px;
    padding-top: 16px;
}

.summary-row span:last-child {
    color: #00d4aa;
}

/* SECURITY BADGES */
.security-badges {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #666;
}

.badge-item i {
    color: #00d4aa;
}

/* PIX RESULT */
.pix-result {
    text-align: center;
    padding: 40px 20px;
}

.pix-result h2 {
    justify-content: center;
    font-size: 28px;
}

.pix-result .order-id-display {
    font-size: 14px;
    color: #666;
    margin-bottom: 24px;
}

.qr-container {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: inline-block;
    margin: 24px 0;
}

.qr-container img {
    width: 200px;
    height: 200px;
}

.pix-code-box {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 10px;
    padding: 16px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pix-code-box code {
    flex: 1;
    font-size: 12px;
    word-break: break-all;
    color: #a0a0a0;
}

.copy-btn {
    padding: 10px 16px;
    background: #00d4aa;
    color: #000;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
}

.copy-btn:hover {
    background: #00b894;
}

.pix-timer {
    font-size: 14px;
    color: #666;
    margin-top: 16px;
}

.pix-timer i {
    color: #eab308;
}

.waiting-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #1e1e1e;
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-icon {
    font-size: 64px;
    color: #22c55e;
    margin-bottom: 16px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .checkout-main {
        flex-direction: column;
        padding: 16px;
    }

    .checkout-sidebar {
        width: 100%;
        position: static;
        order: -1;
    }

    .checkout-header {
        padding: 12px 16px;
    }

    .step-label {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .security-badges {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}

/* ========================================
   CARD PREVIEW (LIVE)
   ======================================== */
.card-preview-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
    perspective: 1000px;
}

.card-preview {
    width: 360px;
    height: 220px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 18px;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.08);
    transition: transform 0.4s ease;
    cursor: default;
}

.card-preview:hover {
    transform: rotateY(-5deg) rotateX(3deg) scale(1.02);
}

.card-preview::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.card-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,212,170,0.06), transparent);
    pointer-events: none;
}

.card-preview-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-preview-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #c9a961, #e8d48b, #c9a961);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #8a6914;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.card-preview-brand {
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-preview-number {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.95);
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
    font-family: 'Courier New', monospace;
}

.card-preview-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-preview-bottom span {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.card-preview-bottom strong {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    letter-spacing: 0.5px;
}

/* CARD FORM */
.card-form {
    background: #161616;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 16px;
}

.input-icon-wrap {
    position: relative;
}

.input-icon-wrap input {
    padding-right: 48px;
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 18px;
}

.card-security-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.card-sec-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #666;
    background: rgba(0,212,170,0.05);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(0,212,170,0.1);
}

.card-sec-badge i {
    color: #00d4aa;
    font-size: 12px;
}

/* ========================================
   CARD ANALYSIS SCREEN
   ======================================== */
.card-analysis {
    text-align: center;
    padding: 20px;
}

.card-analysis h2 {
    justify-content: center;
    font-size: 26px;
    margin-top: 20px;
}

.analysis-subtitle {
    color: #888;
    font-size: 14px;
    margin-bottom: 28px;
}

/* Animation circle */
.analysis-animation {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}

.analysis-circle {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analysis-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #00d4aa;
    border-right-color: #00d4aa;
    animation: analysisSpin 1.2s linear infinite;
}

.analysis-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #22c55e;
    border-left-color: #22c55e;
    animation: analysisSpin 2s linear infinite reverse;
}

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

.analysis-icon {
    font-size: 36px;
    color: #00d4aa;
    z-index: 1;
    animation: analysisPulse 2s ease-in-out infinite;
}

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

/* Virtual Card */
.virtual-card {
    width: 380px;
    max-width: 100%;
    height: 230px;
    margin: 0 auto 28px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.08);
    text-align: left;
}

.virtual-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,212,170,0.12) 0%, transparent 60%);
    pointer-events: none;
}

.vcard-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #c9a961, #e8d48b, #c9a961);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #8a6914;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.vcard-number {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.95);
    font-family: 'Courier New', monospace;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.vcard-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.vcard-bottom span {
    display: block;
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.vcard-bottom strong {
    font-size: 13px;
    color: rgba(255,255,255,0.9);
}

.vcard-brand {
    font-size: 22px !important;
    color: rgba(255,255,255,0.9) !important;
}

.vcard-brand i {
    font-size: 22px;
}

/* Status steps */
.analysis-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 28px auto;
    max-width: 400px;
}

.status-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 90px;
}

.status-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e1e1e;
    border: 2px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #666;
    transition: all 0.5s;
}

.status-step.done .status-dot {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.status-step.active .status-dot {
    background: rgba(0,212,170,0.15);
    border-color: #00d4aa;
    color: #00d4aa;
}

.status-step span {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.status-step.done span,
.status-step.active span {
    color: #ccc;
}

.status-line {
    width: 50px;
    height: 2px;
    background: #333;
    margin-bottom: 24px;
    transition: background 0.5s;
}

.status-line.done {
    background: #22c55e;
}

.mini-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid transparent;
    border-top-color: #00d4aa;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Analysis info box */
.analysis-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(0,212,170,0.05);
    border: 1px solid rgba(0,212,170,0.15);
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    margin-bottom: 24px;
}

.analysis-info > i {
    color: #00d4aa;
    font-size: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.analysis-info strong {
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.analysis-info p {
    font-size: 13px;
    color: #888;
    line-height: 1.5;
    margin: 0;
}

/* Features */
.analysis-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.analysis-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #666;
}

.analysis-feature i {
    color: #00d4aa;
    font-size: 16px;
}

/* Responsive card preview */
@media (max-width: 480px) {
    .card-preview,
    .virtual-card {
        width: 100%;
        height: 200px;
        padding: 20px;
        border-radius: 14px;
    }

    .card-preview-number,
    .vcard-number {
        font-size: 18px;
        letter-spacing: 2px;
    }

    .analysis-features {
        flex-direction: column;
        align-items: center;
    }
}