/* ========== DEVOTLY CHECKOUT MODAL STYLES V2 ========== */
/* Modal de checkout moderno, responsivo e otimizado para mobile */

:root {
    --checkout-primary: #D4AF37;
    --checkout-primary-dark: #B8941F;
    --checkout-secondary: #242424;
    --checkout-dark: #0D0D0D;
    --checkout-light: #F5F5F5;
    --checkout-text: #E0E0E0;
    --checkout-text-muted: #B0B0B0;
    --checkout-success: #00D09E;
    --checkout-pix: linear-gradient(135deg, #00D09E, #0066CC);
    --checkout-border: rgba(212, 175, 55, 0.2);
    --checkout-glass: rgba(36, 36, 36, 0.95);
    --checkout-backdrop: rgba(13, 13, 13, 0.9);
    --checkout-radius: 16px;
    --checkout-radius-sm: 12px;
    --checkout-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    --checkout-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
    --checkout-transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    touch-action: none;
    overflow: hidden;
}

.checkout-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--checkout-backdrop);
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(36, 36, 36, 0.98) 50%,
        rgba(13, 13, 13, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.checkout-modal-content {
    background: var(--checkout-glass);
    background: linear-gradient(135deg, 
        rgba(36, 36, 36, 0.98) 0%, 
        rgba(26, 26, 26, 0.95) 100%);
    border: 1px solid var(--checkout-border);
    border-radius: var(--checkout-radius);
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow: hidden;
    box-shadow: var(--checkout-shadow);
    position: relative;
    animation: modalSlideUp 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.checkout-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--checkout-pix);
    opacity: 0.8;
    z-index: 1;
}

/* Header */
.checkout-modal-header {
    padding: 24px 24px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 24px;
    position: relative;
}

.checkout-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.checkout-icon {
    width: 48px;
    height: 48px;
    background: var(--checkout-pix);
    border-radius: var(--checkout-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    box-shadow: var(--checkout-shadow-sm);
}

.checkout-title-wrapper {
    flex: 1;
}

.checkout-title {
    margin: 0 0 4px 0;
    color: var(--checkout-light);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.checkout-subtitle {
    margin: 0;
    color: var(--checkout-text-muted);
    font-size: 14px;
    line-height: 1.3;
}

.btn-close-checkout {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--checkout-border);
    color: var(--checkout-primary);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: var(--checkout-transition);
    flex-shrink: 0;
}

.btn-close-checkout:hover {
    background: var(--checkout-primary);
    color: var(--checkout-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Body */
.checkout-modal-body {
    padding: 0 24px 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Plan Summary */
.plan-summary {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.08) 0%, 
        rgba(212, 175, 55, 0.04) 100%);
    border: 1px solid var(--checkout-border);
    padding: 24px;
    border-radius: var(--checkout-radius-sm);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.plan-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--checkout-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.plan-name {
    margin: 0 0 16px 0;
    color: var(--checkout-light);
    font-size: 22px;
    font-weight: 700;
    text-align: center;
}

.plan-price {
    text-align: center;
    margin-bottom: 20px;
}

.plan-price .currency {
    font-size: 18px;
    color: var(--checkout-text-muted);
    vertical-align: top;
}

.plan-price .amount {
    font-size: 32px;
    font-weight: 800;
    color: var(--checkout-primary);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    margin: 0 4px;
}

.plan-price .period {
    display: block;
    font-size: 12px;
    color: var(--checkout-text-muted);
    margin-top: 4px;
}

.plan-benefits {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--checkout-success);
    font-size: 12px;
    font-weight: 500;
}

.benefit-item i {
    font-size: 10px;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 24px;
}

.payment-methods-title {
    margin: 0 0 16px 0;
    color: var(--checkout-light);
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.payment-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.payment-tab {
    position: relative;
    border-radius: var(--checkout-radius-sm);
    overflow: hidden;
    transition: var(--checkout-transition);
}

.payment-tab input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.payment-tab-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: rgba(36, 36, 36, 0.6);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--checkout-radius-sm);
    cursor: pointer;
    transition: var(--checkout-transition);
    text-align: center;
    min-height: 120px;
    justify-content: center;
    position: relative;
}

.payment-tab-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--checkout-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--checkout-transition);
    position: relative;
}

.pix-icon {
    background: var(--checkout-pix);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 208, 158, 0.3);
}

.card-icon {
    background: rgba(212, 175, 55, 0.2);
    color: var(--checkout-primary);
}

.payment-tab-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.payment-tab-name {
    color: var(--checkout-light);
    font-weight: 600;
    font-size: 14px;
}

.payment-tab-desc {
    color: var(--checkout-text-muted);
    font-size: 11px;
}

.payment-tab-badge {
    background: var(--checkout-success);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.payment-tab-badges {
    display: flex;
    gap: 4px;
}

.card-brand {
    background: rgba(212, 175, 55, 0.2);
    color: var(--checkout-primary);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 9px;
    font-weight: 600;
}

/* Estado ativo */
.payment-tab input[type="radio"]:checked + .payment-tab-label {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.3);
}

.pix-tab input[type="radio"]:checked + .payment-tab-label {
    background: rgba(0, 208, 158, 0.15);
    border-color: var(--checkout-success);
    box-shadow: 0 0 0 2px rgba(0, 208, 158, 0.3);
}

.payment-tab input[type="radio"]:checked + .payment-tab-label .payment-tab-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.pix-tab input[type="radio"]:checked + .payment-tab-label .pix-icon {
    box-shadow: 0 6px 20px rgba(0, 208, 158, 0.4);
}

/* Payment Content */
.payment-content {
    display: none;
    animation: contentFadeIn 0.3s ease-in-out;
}

.payment-content.active {
    display: block;
}

/* PIX Form */
.pix-form {
    margin-bottom: 24px;
}

.pix-header {
    background: linear-gradient(135deg, 
        rgba(0, 208, 158, 0.1) 0%, 
        rgba(0, 102, 204, 0.05) 100%);
    border: 1px solid rgba(0, 208, 158, 0.2);
    border-radius: var(--checkout-radius-sm);
    padding: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.pix-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--checkout-success);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.pix-advantages {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.advantage-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--checkout-success);
    font-size: 11px;
    font-weight: 500;
}

.advantage-item i {
    font-size: 16px;
    margin-bottom: 2px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--checkout-light);
    font-size: 14px;
    font-weight: 500;
}

.form-label i {
    color: var(--checkout-primary);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(36, 36, 36, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--checkout-radius-sm);
    color: var(--checkout-light);
    font-size: 14px;
    transition: var(--checkout-transition);
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: rgba(36, 36, 36, 0.95);
}

.form-control::placeholder {
    color: var(--checkout-text-muted);
}

/* Fixed Card Type Display */
.fixed-card-type {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: rgba(36, 36, 36, 0.8);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--checkout-radius-sm);
    color: var(--checkout-light);
    font-size: 14px;
    font-weight: 500;
    min-height: 54px;
}

.fixed-card-type i {
    color: var(--checkout-primary);
    font-size: 16px;
}

.fixed-card-type span {
    color: var(--checkout-light);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-help {
    margin-top: 6px;
    font-size: 12px;
    color: var(--checkout-text-muted);
}

/* Card Input */
.card-input-wrapper {
    position: relative;
}

.card-brand-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Buttons */
.btn-pay {
    width: 100%;
    padding: 0;
    background: var(--checkout-pix);
    border: none;
    border-radius: var(--checkout-radius-sm);
    cursor: pointer;
    transition: var(--checkout-transition);
    overflow: hidden;
    position: relative;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-card {
    background: linear-gradient(135deg, var(--checkout-primary), var(--checkout-primary-dark));
}

/* Enhanced Loading State for Payment Button */
.btn-pay:disabled,
.btn-card:disabled {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.8) 0%, 
        rgba(184, 152, 48, 0.8) 100%);
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animated Gradient Background for Loading */
.btn-pay:disabled::before,
.btn-card:disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    animation: shimmerLoading 2s infinite;
    z-index: 1;
}

/* Shimmer animation for loading effect */
@keyframes shimmerLoading {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Enhanced Spinner for Payment Button */
.btn-pay:disabled .fa-spinner,
.btn-card:disabled .fa-spinner {
    color: #ffffff;
    font-size: 18px;
    margin-right: 12px;
    animation: premiumSpin 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 2;
    position: relative;
}

/* Premium spinning animation */
@keyframes premiumSpin {
    0% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
    }
    50% {
        transform: rotate(180deg) scale(1);
    }
    75% {
        transform: rotate(270deg) scale(1.1);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* Enhanced Loading Text */
.btn-pay:disabled,
.btn-card:disabled {
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.5px;
}

/* Pulsing effect for the button border */
.btn-pay:disabled,
.btn-card:disabled {
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulseLoadingBorder 2s ease-in-out infinite;
}

@keyframes pulseLoadingBorder {
    0%, 100% {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    50% {
        border-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
    }
}

/* Loading dots animation after text */
.btn-pay:disabled::after,
.btn-card:disabled::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-left: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: loadingDots 1.5s infinite;
    box-shadow: 
        12px 0 0 #ffffff,
        24px 0 0 #ffffff;
    z-index: 2;
    position: relative;
}

@keyframes loadingDots {
    0%, 20% {
        background: #ffffff;
        box-shadow: 
            12px 0 0 rgba(255, 255, 255, 0.2),
            24px 0 0 rgba(255, 255, 255, 0.2);
    }
    40% {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 
            12px 0 0 #ffffff,
            24px 0 0 rgba(255, 255, 255, 0.2);
    }
    60%, 80% {
        background: rgba(255, 255, 255, 0.2);
        box-shadow: 
            12px 0 0 rgba(255, 255, 255, 0.2),
            24px 0 0 #ffffff;
    }
    100% {
        background: #ffffff;
        box-shadow: 
            12px 0 0 rgba(255, 255, 255, 0.2),
            24px 0 0 rgba(255, 255, 255, 0.2);
    }
}

.btn-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-amount {
    font-size: 18px;
    font-weight: 700;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-weight: 500;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 208, 158, 0.4);
}

.btn-card:hover {
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-pay:active {
    transform: translateY(0);
}

/* PIX Result */
.pix-result {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(0, 208, 158, 0.05) 0%, 
        rgba(0, 102, 204, 0.02) 100%);
    border: 1px solid rgba(0, 208, 158, 0.2);
    border-radius: var(--checkout-radius-sm);
    margin-top: 24px;
}

.pix-success-header {
    margin-bottom: 24px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--checkout-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(0, 208, 158, 0.3);
}

.pix-success-header h4 {
    margin: 0 0 8px 0;
    color: var(--checkout-light);
    font-size: 20px;
    font-weight: 600;
}

.pix-success-header p {
    margin: 0;
    color: var(--checkout-text-muted);
    font-size: 14px;
}

.pix-qr-section {
    margin-bottom: 24px;
}

.pix-qr-code {
    position: relative;
    display: inline-block;
    margin-bottom: 24px;
}

.pix-qr-code img {
    width: 200px;
    height: 200px;
    border-radius: var(--checkout-radius-sm);
    background: white;
    padding: 16px;
    box-shadow: var(--checkout-shadow-sm);
}

.qr-frame {
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid var(--checkout-success);
    border-radius: calc(var(--checkout-radius-sm) + 8px);
    opacity: 0.3;
}

.pix-copy-section {
    margin-bottom: 24px;
}

.copy-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--checkout-light);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
}

.copy-code-container {
    display: flex;
    gap: 12px;
    align-items: center;
}

.copy-code-container input {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(36, 36, 36, 0.8);
    border: 1px solid var(--checkout-border);
    padding: 12px;
    border-radius: var(--checkout-radius-sm);
    color: var(--checkout-text);
}

.btn-copy-pix {
    background: var(--checkout-success);
    border: none;
    color: white;
    padding: 12px 16px;
    border-radius: var(--checkout-radius-sm);
    cursor: pointer;
    transition: var(--checkout-transition);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    font-size: 12px;
    flex-shrink: 0;
}

.btn-copy-pix:hover {
    background: #00B88A;
    transform: scale(1.05);
}

/* Instructions */
.pix-instructions {
    text-align: left;
}

.instruction-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--checkout-light);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
}

.instruction-steps {
    margin-bottom: 20px;
}

.step {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--checkout-text);
    font-size: 13px;
}

.step-number {
    width: 24px;
    height: 24px;
    background: var(--checkout-success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 11px;
    flex-shrink: 0;
}

.pix-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 165, 0, 0.1);
    border: 1px solid rgba(255, 165, 0, 0.3);
    border-radius: var(--checkout-radius-sm);
    color: #FFA500;
    font-size: 12px;
    font-weight: 500;
}

.timer-countdown {
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

/* Card Form */
.card-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Footer */
.checkout-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    text-align: center;
}

.checkout-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--checkout-text-muted);
    font-size: 12px;
    margin-bottom: 16px;
}

.payment-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: rgba(36, 36, 36, 0.6);
    border: 1px solid var(--checkout-border);
    border-radius: 8px;
    color: var(--checkout-text-muted);
    font-size: 11px;
    font-weight: 500;
}

.pix-badge {
    background: var(--checkout-pix);
    color: white;
    border-color: transparent;
}

.ssl-badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(12px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .checkout-modal-overlay {
        padding: 12px;
        align-items: flex-start;
        padding-top: 20px;
    }
    
    .checkout-modal-content {
        max-height: calc(100vh - 40px);
        border-radius: var(--checkout-radius-sm);
    }
    
    .checkout-modal-header {
        padding: 20px 20px 0;
        margin-bottom: 20px;
    }
    
    .checkout-modal-body {
        padding: 0 20px 20px;
    }
    
    .checkout-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .checkout-title {
        font-size: 18px;
    }
    
    .checkout-subtitle {
        font-size: 13px;
    }
    
    .plan-summary {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .plan-name {
        font-size: 20px;
    }
    
    .plan-price .amount {
        font-size: 28px;
    }
    
    .payment-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .payment-tab-label {
        padding: 16px 12px;
        min-height: 100px;
    }
    
    .payment-tab-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .benefit-item {
        font-size: 11px;
    }
    
    .pix-advantages {
        gap: 16px;
    }
    
    .advantage-item {
        font-size: 10px;
    }
    
    .advantage-item i {
        font-size: 14px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .form-control {
        padding: 14px;
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn-content {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .btn-amount {
        font-size: 16px;
    }
    
    .pix-qr-code img {
        width: 180px;
        height: 180px;
    }
    
    .copy-code-container {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-copy-pix {
        width: 100%;
        justify-content: center;
    }
    
    .checkout-footer {
        padding: 16px 20px;
    }
    
    .payment-badges {
        gap: 8px;
    }
    
    .badge-item {
        padding: 4px 8px;
        font-size: 10px;
    }
}

@media (max-height: 700px) {
    .checkout-modal-overlay {
        align-items: flex-start;
        padding-top: 12px;
    }
    
    .checkout-modal-content {
        max-height: calc(100vh - 24px);
    }
    
    .plan-summary {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .pix-header {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
}

/* Touch improvements */
@media (hover: none) and (pointer: coarse) {
    .payment-tab-label {
        min-height: 110px;
        padding: 18px 14px;
    }
    
    .btn-pay {
        min-height: 60px;
    }
    
    .form-control {
        padding: 16px;
        font-size: 16px;
    }
}

/* Estilos para PIX expirado */
.pix-expired {
    text-align: center;
    padding: 40px 20px;
}

.expired-icon {
    width: 64px;
    height: 64px;
    background: #FFA500;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 24px rgba(255, 165, 0, 0.3);
}

.pix-expired h4 {
    margin: 0 0 8px 0;
    color: var(--checkout-light);
    font-size: 20px;
    font-weight: 600;
}

.pix-expired p {
    margin: 0 0 24px 0;
    color: var(--checkout-text-muted);
    font-size: 14px;
}

/* Estilos para detecção de bandeira do cartão */
.card-brand-visa {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iIzAwNTFBNSIvPgo8cGF0aCBkPSJNMTYuNSA5SDE0LjI1TDEyLjc1IDE1SDE1TDE2LjUgOVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yNS41IDlIMjMuMjVMMjEuNzUgMTVIMjRMMjUuNSA5WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+');
}

.card-brand-mastercard {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCA0MCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHJlY3Qgd2lkdGg9IjQwIiBoZWlnaHQ9IjI0IiByeD0iNCIgZmlsbD0iI0ZGNTc0MyIvPgo8Y2lyY2xlIGN4PSIxNiIgY3k9IjEyIiByPSI2IiBmaWxsPSIjRkY1NzQzIi8+CjxjaXJjbGUgY3g9IjI0IiBjeT0iMTIiIHI9IjYiIGZpbGw9IiNGRkY1RjAiLz4KPC9zdmc+');
}

/* Melhorias de acessibilidade */
.payment-tab input[type="radio"]:focus + .payment-tab-label {
    outline: 2px solid var(--checkout-primary);
    outline-offset: 2px;
}

.form-control:focus {
    outline: none;
    border-color: var(--checkout-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* Indicador de carregamento personalizado - removido, usando versão aprimorada nos botões */

/* Scroll suave para o modal */
.checkout-modal-body {
    scroll-behavior: smooth;
}

/* Prevenção de zoom no iOS */
@supports (-webkit-touch-callout: none) {
    .form-control {
        font-size: 16px !important;
    }
}

/* Estados de hover aprimorados para touch devices */
@media (hover: hover) {
    .payment-tab-label:hover {
        background: rgba(36, 36, 36, 0.8);
        border-color: rgba(212, 175, 55, 0.4);
    }
    
    .btn-pay:hover {
        transform: translateY(-2px);
    }
    
    .btn-copy-pix:hover {
        transform: scale(1.05);
    }
}

/* Animações suaves para mudança de conteúdo */
.payment-content {
    transition: all 0.3s ease-in-out;
}

.payment-content:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.payment-content.active {
    opacity: 1;
    pointer-events: all;
}

/* Melhorias para o QR Code */
.pix-qr-code {
    padding: 16px;
    background: white;
    border-radius: var(--checkout-radius-sm);
    margin: 0 auto;
    display: inline-block;
    box-shadow: var(--checkout-shadow-sm);
}

.pix-qr-code img {
    display: block;
    margin: 0;
    padding: 0;
}

/* Responsividade extrema para telas muito pequenas */
@media (max-width: 360px) {
    .checkout-modal-overlay {
        padding: 8px;
    }
    
    .checkout-modal-header {
        padding: 16px 16px 0;
    }
    
    .checkout-modal-body {
        padding: 0 16px 16px;
    }
    
    .checkout-title {
        font-size: 16px;
    }
    
    .payment-tab-label {
        padding: 12px 8px;
        min-height: 90px;
    }
    
    .payment-tab-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .plan-price .amount {
        font-size: 24px;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .checkout-modal-content {
        background: linear-gradient(135deg, 
            rgba(26, 26, 26, 0.98) 0%, 
            rgba(16, 16, 16, 0.95) 100%);
    }
}
.checkout-modal-content::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, 
        var(--color-accent) 0%, 
        transparent 25%, 
        transparent 75%, 
        var(--color-accent) 100%);
    opacity: 0.15;
    z-index: -1;
    animation: borderGlow 4s infinite alternate;
}

/* Header do modal */
.checkout-header {
    padding: 24px 24px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    margin-bottom: 24px;
    position: relative;
}

.checkout-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

.checkout-header h2 {
    margin: 0;
    color: var(--color-light);
    font-size: 24px;
    font-weight: 600;
    font-family: var(--font-decorative, 'Inter');
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkout-header h2::before {
    content: '✨';
    font-size: 20px;
    animation: sparkle 2s infinite alternate;
}

/* Botão de fechar estilizado */
.close-checkout {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-accent);
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.close-checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-accent);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: -1;
}

.close-checkout:hover {
    color: var(--color-dark);
    border-color: var(--color-accent);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.close-checkout:hover::before {
    transform: scale(1);
}

.close-checkout:active {
    transform: rotate(90deg) scale(0.95);
}

/* Corpo do modal */
.checkout-body {
    padding: 0 24px 24px;
    color: var(--color-text);
}

/* Resumo do plano */
.plan-summary {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(212, 175, 55, 0.02) 100%);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 24px;
    border-radius: var(--border-radius);
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.plan-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    animation: shimmer 3s infinite;
}

.plan-summary h3 {
    margin: 0 0 8px 0;
    color: var(--color-light);
    font-size: 18px;
    font-weight: 600;
    font-family: var(--font-decorative, 'Inter');
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-summary h3::before {
    content: '👑';
    font-size: 16px;
}

.plan-summary .price {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-accent);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    margin-bottom: 8px;
    display: block;
}

.plan-summary .period {
    color: var(--color-text);
    font-size: 14px;
    opacity: 0.8;
}

/* Métodos de pagamento - Design Mobile-First */
.payment-methods {
    margin-bottom: 24px;
}

.payment-methods h4 {
    margin: 0 0 12px 0;
    color: var(--color-light);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-main);
    opacity: 0.9;
    text-align: center;
}

.method-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

/* Opções de método otimizadas para mobile */
.payment-method-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border: 2px solid rgba(212, 175, 55, 0.15);
    background: rgba(36, 36, 36, 0.4);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-height: 75px;
    gap: 8px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.payment-method-option:active {
    transform: scale(0.98);
}

.payment-method-option:hover {
    border-color: var(--color-accent);
    background: rgba(36, 36, 36, 0.6);
}

.payment-method-option:has(input[type="radio"]:checked) {
    border-color: var(--color-accent);
    background: rgba(212, 175, 55, 0.12);
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

/* Radio button completamente oculto */
.payment-method-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* Ícone otimizado para touch */
.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.payment-method-option:has(input[type="radio"]:checked) .method-icon {
    background: var(--color-accent);
    color: var(--color-dark);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

/* Ícone PIX mobile */
.pix-icon {
    background: linear-gradient(135deg, #00D09E, #0066CC) !important;
    color: white !important;
}

.pix-icon .pix-logo {
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.payment-method-option:has(input[type="radio"]:checked) .pix-icon {
    background: linear-gradient(135deg, #00F5C4, #0085F6) !important;
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 208, 158, 0.3);
}

/* Nome do método mobile */
.method-name {
    color: var(--color-text);
    font-weight: 500;
    font-size: 12px;
    text-align: center;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.payment-method-option:has(input[type="radio"]:checked) .method-name {
    color: var(--color-accent);
    font-weight: 600;
}

/* Detalhes simplificados */
.method-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

/* Remover elementos desnecessários no mobile */
.method-description,
.method-badge {
    display: none;
}

/* Indicador de seleção mobile */
.payment-method-option::before {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
}

.payment-method-option:has(input[type="radio"]:checked)::before {
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 4px rgba(212, 175, 55, 0.5);
}

.payment-method-option.pix-option:has(input[type="radio"]:checked)::before {
    background: #00D09E;
    border-color: #00D09E;
    box-shadow: 0 0 4px rgba(0, 208, 158, 0.5);
}

/* Efeito de feedback tátil */
.payment-method-option::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.payment-method-option:active::after {
    opacity: 1;
}

/* Grupos de formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-light);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row .form-group {
    flex: 1;
}

/* Inputs estilizados */
input[type="text"], 
input[type="email"], 
select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(36, 36, 36, 0.7);
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--border-radius);
    color: var(--color-light);
    font-size: 14px;
    font-family: var(--font-main);
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    color: var(--color-text);
    opacity: 0.6;
}

input:focus, 
select:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(36, 36, 36, 0.9);
    box-shadow: 
        0 0 0 3px rgba(212, 175, 55, 0.1),
        0 4px 12px rgba(212, 175, 55, 0.15);
    transform: translateY(-1px);
}

select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23d4af37' viewBox='0 0 16 16'%3e%3cpath d='m7.247 4.86-4.796 5.481c-.566.647-.106 1.659.753 1.659h9.592a1 1 0 0 0 .753-1.659l-4.796-5.48a1 1 0 0 0-1.506 0z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

select option {
    background: var(--color-secondary);
    color: var(--color-light);
    padding: 10px;
}

/* Informações do PIX */
.pix-info {
    background: linear-gradient(135deg, 
        rgba(74, 158, 92, 0.1) 0%, 
        rgba(74, 158, 92, 0.05) 100%);
    border: 1px solid rgba(74, 158, 92, 0.2);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    position: relative;
}

.pix-info::before {
    content: '⚡';
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 20px;
    opacity: 0.7;
}

.pix-info p {
    margin: 6px 0;
    color: var(--color-success);
    font-size: 14px;
    font-weight: 500;
}

/* Loading do checkout */
.checkout-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

/* Resultado do PIX */
.pix-result {
    text-align: center;
    padding: 20px 0;
    color: var(--color-text);
}

.qr-code-container {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
    display: inline-block;
}

.qr-code-container img {
    max-width: 200px;
    border-radius: 8px;
}

.pix-code-container {
    margin: 20px 0;
}

.pix-code-container textarea {
    width: 100%;
    height: 80px;
    padding: 12px;
    background: rgba(36, 36, 36, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius);
    color: var(--color-light);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    resize: none;
    box-sizing: border-box;
}

.pix-code-container button {
    margin-top: 12px;
    padding: 10px 20px;
    background: var(--gradient-gold);
    color: var(--color-dark);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pix-code-container button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.pix-instructions {
    color: var(--color-text);
    font-size: 14px;
    margin-top: 16px;
    opacity: 0.8;
    line-height: 1.5;
}

/* Footer do checkout */
.checkout-footer {
    padding: 24px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 24px;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Botão de pagamento principal */
.pay-button {
    width: 100%;
    padding: 18px 24px;
    background: var(--gradient-gold);
    color: var(--color-dark);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pay-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.pay-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.4),
        0 0 20px rgba(212, 175, 55, 0.2);
}

.pay-button:hover::before {
    left: 100%;
}

.pay-button:active {
    transform: translateY(0);
}

.pay-button:disabled {
    background: rgba(179, 179, 179, 0.3);
    color: rgba(179, 179, 179, 0.7);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Toast notifications */
.checkout-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    color: white;
    font-weight: 600;
    font-family: var(--font-main);
    z-index: 10001;
    max-width: 350px;
    animation: slideIn 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.checkout-toast.error {
    background: linear-gradient(135deg, var(--color-error), #8b1e1e);
    border: 1px solid rgba(168, 50, 50, 0.3);
}

.checkout-toast.success {
    background: linear-gradient(135deg, var(--color-success), #2d5a3d);
    border: 1px solid rgba(74, 158, 92, 0.3);
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes overlayFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(10px);
    }
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes borderGlow {
    0% { opacity: 0.1; }
    100% { opacity: 0.25; }
}

@keyframes sparkle {
    0% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Spinner antigo removido - usando premiumSpin nos botões */

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========== RESPONSIVIDADE MOBILE FIRST ========== */

@media (max-width: 768px) {
    .checkout-modal-overlay {
        padding: 0;
    }
    
    .checkout-modal-content {
        margin: 0;
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        box-shadow: none;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(0);
        display: flex;
        flex-direction: column;
    }
    
    .checkout-header {
        padding: 20px 20px 16px;
        background: linear-gradient(180deg, var(--color-dark) 0%, rgba(28, 28, 28, 0.95) 100%);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(212, 175, 55, 0.1);
        position: sticky;
        top: 0;
        z-index: 10;
    }
    
    .checkout-header h2 {
        font-size: 20px;
        font-weight: 600;
        margin: 0;
        line-height: 1.3;
    }
    
    .close-checkout {
        width: 36px;
        height: 36px;
        font-size: 18px;
        background: rgba(212, 175, 55, 0.1);
        border: 1px solid rgba(212, 175, 55, 0.2);
        border-radius: 10px;
        color: var(--color-accent);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .close-checkout:hover,
    .close-checkout:active {
        background: rgba(212, 175, 55, 0.2);
        transform: scale(1.05);
    }
    
    .checkout-body {
        flex: 1;
        padding: 20px;
        background: var(--color-dark);
        min-height: calc(100vh - 140px);
    }
    
    .checkout-footer {
        padding: 20px;
        background: var(--color-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    /* Grid de métodos otimizado para mobile */
    .method-selector {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .payment-method-option {
        min-height: 80px;
        padding: 18px 10px;
        border-radius: 14px;
    }
    
    .method-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
        border-radius: 10px;
        margin-bottom: 6px;
    }
    
    .method-name {
        font-size: 13px;
        font-weight: 500;
    }
    
    /* Indicador de seleção mobile */
    .payment-method-option::before {
        top: 8px;
        right: 8px;
        width: 8px;
        height: 8px;
    }
    
    .form-row {
        gap: 12px;
    }
    
    .plan-summary {
        padding: 20px;
        border-radius: 12px;
    }
    
    .plan-summary .price {
        font-size: 24px;
    }
    
    .pay-button {
        padding: 18px 24px;
        font-size: 16px;
        font-weight: 600;
        border-radius: 14px;
        min-height: 54px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
    
    .pay-button:active {
        transform: scale(0.98);
    }
    
    /* Inputs mobile-friendly */
    input[type="text"], 
    input[type="email"], 
    select {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 12px;
        min-height: 54px;
        touch-action: manipulation;
    }
    
    .checkout-toast {
        top: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .checkout-header {
        padding: 16px 16px 12px;
    }
    
    .checkout-body {
        padding: 16px;
    }
    
    .checkout-footer {
        padding: 16px;
    }
    
    .checkout-header h2 {
        font-size: 18px;
    }
    
    .close-checkout {
        width: 32px;
        height: 32px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    /* Grid single column para telas pequenas */
    .method-selector {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .payment-method-option {
        flex-direction: row;
        padding: 16px;
        min-height: 64px;
        gap: 12px;
        justify-content: flex-start;
    }
    
    .method-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .method-details {
        flex-direction: row;
        align-items: center;
        flex: 1;
    }
    
    .method-name {
        font-size: 14px;
        text-align: left;
        margin-left: 4px;
    }
    
    .pix-icon .pix-logo {
        font-size: 10px;
    }
    
    /* Indicador reposicionado */
    .payment-method-option::before {
        top: 50%;
        right: 16px;
        transform: translateY(-50%);
        width: 8px;
        height: 8px;
    }
    
    .pay-button {
        padding: 16px 20px;
        font-size: 15px;
        min-height: 50px;
    }
    
    input[type="text"], 
    input[type="email"], 
    select {
        padding: 14px 16px;
        font-size: 15px;
        min-height: 50px;
    }
    
    .plan-summary {
        padding: 16px;
    }
    
    .form-row {
        gap: 10px;
    }
    
    .checkout-toast {
        top: 16px;
        right: 16px;
        left: 16px;
    }
}

/* Dispositivos móveis muito pequenos */
@media (max-width: 360px) {
    .checkout-header {
        padding: 12px 12px 8px;
    }
    
    .checkout-body {
        padding: 12px;
    }
    
    .checkout-footer {
        padding: 12px;
    }
    
    .checkout-header h2 {
        font-size: 16px;
    }
    
    .close-checkout {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .payment-method-option {
        padding: 12px;
        min-height: 56px;
        gap: 10px;
    }
    
    .method-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .method-name {
        font-size: 13px;
    }
    
    .payment-method-option::before {
        width: 6px;
        height: 6px;
        right: 12px;
    }
    
    .pay-button {
        padding: 14px 16px;
        font-size: 14px;
        min-height: 46px;
    }
    
    input[type="text"], 
    input[type="email"], 
    select {
        padding: 12px 14px;
        font-size: 14px;
        min-height: 46px;
    }
    
    .plan-summary {
        padding: 12px;
    }
    
    .plan-summary .price {
        font-size: 20px;
    }
    
    .form-row {
        gap: 8px;
    }
    
    .checkout-toast {
        top: 12px;
        right: 12px;
        left: 12px;
    }
    
    .form-group label {
        font-size: 13px;
    }
}

/* Estilos para campos com erro */
.form-control.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
    background-color: rgba(220, 53, 69, 0.05);
}

.field-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
    display: block;
    font-weight: 500;
    animation: errorFadeIn 0.3s ease-in-out;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Para dispositivos em modo paisagem */
@media (max-height: 600px) and (orientation: landscape) {
    .checkout-modal-content {
        max-height: 95vh;
    }
    
    .checkout-header {
        padding: 16px 24px 12px;
    }
    
    .plan-summary {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .payment-methods {
        margin-bottom: 16px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
}
