
        :root {
            --primary-color: #6366f1;
            --success-color: #10b981;
            --danger-color: #ef4444;
            --dark-color: #1f2937;
            --light-bg: #f8fafc;
            --border-color: #e2e8f0;
            --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 2rem 1rem;
            display: flex;
            flex-direction: column;
            align-items: center;
            position: relative;
        }

        body::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: 
                radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
            pointer-events: none;
            z-index: -1;
        }

        .checkout-container {
            max-width: 1100px;
            width: 100%;
            background: var(--gradient-card);
            border-radius: 24px;
            box-shadow: var(--shadow-lg);
            overflow: hidden;
            position: relative;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .checkout-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #667eea);
            background-size: 200% 100%;
            animation: shimmer 3s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { background-position: 200% 0; }
            50% { background-position: -200% 0; }
        }

        .header-section {
            background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 50%, #a855f7 100%);
            color: white;
            padding: 3rem 2rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .header-section::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            animation: rotate 20s linear infinite;
        }

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

        .header-section h1 {
            font-size: 2rem;
            font-weight: 800;
            margin: 0;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
            letter-spacing: -0.025em;
        }

        .header-section::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 20px;
            background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.1) 100%);
        }

.main-content {
    display: grid;
    /* Aumentamos a largura da sidebar para 450px */
    grid-template-columns: 1fr 450px;
    gap: 0;
    min-height: 600px;
}

        .form-section {
            padding: 2.5rem;
            position: relative;
        }

        .form-section::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
            background: linear-gradient(180deg, transparent 0%, var(--border-color) 20%, var(--border-color) 80%, transparent 100%);
        }

        .sidebar-section {
            background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
            padding: 2.5rem;
            position: relative;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-label {
            font-weight: 600;
            color: var(--dark-color);
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            display: block;
            letter-spacing: -0.01em;
        }

        .form-control {
            width: 100%;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 1rem 1.25rem;
            font-size: 1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            background: white;
            position: relative;
        }

        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
            transform: translateY(-1px);
            outline: none;
        }

        .form-control:hover {
            border-color: #cbd5e1;
        }

        .btn-primary-modern {
            width: 100%;
            background: linear-gradient(135deg, var(--primary-color) 0%, #8b5cf6 100%);
            border: none;
            border-radius: 16px;
            padding: 1.2rem 2rem;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
            color: white;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .btn-primary-modern::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.5s;
        }

        .btn-primary-modern:hover::before {
            left: 100%;
        }

        .btn-primary-modern:hover {
            transform: translateY(-3px);
            box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
        }

        .btn-primary-modern:active {
            transform: translateY(-1px);
        }

        .btn-primary-modern:disabled {
            transform: none;
            opacity: 0.6;
            cursor: not-allowed;
        }

        .product-card {
            background: white;
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            margin-bottom: 2rem;
            border: 1px solid rgba(255,255,255,0.5);
            transition: all 0.3s ease;
            position: relative;
        }

        .product-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, transparent 100%);
            pointer-events: none;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0,0,0,0.12);
        }

        .product-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            position: relative;
        }

        .product-image::after {
            content: '🎁';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3rem;
            opacity: 0.3;
        }

        .product-info {
            padding: 1.75rem;
            position: relative;
        }

        .product-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--dark-color);
            margin-bottom: 0.75rem;
            letter-spacing: -0.025em;
        }

        .product-description {
            color: #64748b;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1.25rem;
        }

        .price-section {
            background: white;
            border-radius: 20px;
            padding: 2rem;
            box-shadow: 0 8px 25px rgba(0,0,0,0.08);
            border: 1px solid rgba(255,255,255,0.5);
            position: relative;
            overflow: hidden;
        }

        .price-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
            pointer-events: none;
        }

        .price-label {
            font-size: 1rem;
            color: #64748b;
            margin-bottom: 0.5rem;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .price-value {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--success-color);
            margin: 0;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
        }

        .security-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
            color: var(--success-color);
            padding: 1rem 1.5rem;
            border-radius: 16px;
            font-size: 0.95rem;
            font-weight: 600;
            margin-top: 1.5rem;
            border: 1px solid rgba(16, 185, 129, 0.2);
            position: relative;
            overflow: hidden;
        }

        .security-badge::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
            animation: securityShimmer 3s infinite;
        }

        @keyframes securityShimmer {
            0% { left: -100%; }
            50% { left: 100%; }
            100% { left: 100%; }
        }

        .security-badge i {
            font-size: 1.1rem;
        }

        .checkout-footer {
            max-width: 1100px;
            width: 100%;
            margin: 2rem auto 0 auto;
            background: white;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            padding: 2rem;
            text-align: center;
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .checkout-footer .secure-info {
            font-size: 0.95rem;
            color: #475569;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            font-weight: 500;
        }

        .checkout-footer .lock-icon {
            color: var(--success-color);
            font-size: 1.25rem;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        /* Responsive */
        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }
            
            .checkout-container,
            .checkout-footer {
                border-radius: 16px;
            }
            
            .main-content {
                grid-template-columns: 1fr;
            }
            
            .form-section::before {
                display: none;
            }
            
            .sidebar-section {
                border-top: 1px solid var(--border-color);
            }
            
            .form-section,
            .sidebar-section {
                padding: 2rem;
            }
            
            .header-section {
                padding: 2rem;
            }
            
            .header-section h1 {
                font-size: 1.75rem;
            }
            
            .product-image {
                height: 160px;
            }
            
            .price-value {
                font-size: 2rem;
            }
        }

        @media (max-width: 480px) {
            .form-section,
            .sidebar-section {
                padding: 1.5rem;
            }
            
            .checkout-footer {
                padding: 1.5rem;
                margin: 1rem auto 0 auto;
            }
        }

        /* ===== MODAL PIX - CSS INTEGRADO ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            animation: fadeIn 0.3s ease-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-container {
            background: white;
            border-radius: 24px;
            width: 90%;
            max-width: 500px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
            position: relative;
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: slideIn 0.3s ease-out;
        }

        @keyframes slideIn {
            from { 
                opacity: 0; 
                transform: translateY(-20px) scale(0.95); 
            }
            to { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
        }

        .modal-header {
            background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            color: white;
            padding: 1.5rem 2rem;
            border-radius: 24px 24px 0 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            position: relative;
            overflow: hidden;
        }

        .modal-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%);
            pointer-events: none;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            position: relative;
            z-index: 1;
        }

        .modal-title::before {
            content: '💳';
            font-size: 1.5rem;
        }

        .modal-close {
            background: none;
            border: none;
            color: white;
            font-size: 1.5rem;
            cursor: pointer;
            padding: 0.5rem;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            position: relative;
            z-index: 1;
        }

        .modal-close:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
        }

        .modal-body {
            padding: 2rem;
        }

        .timer-section {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #f59e0b;
            border-radius: 16px;
            padding: 1rem 1.5rem;
            margin-bottom: 1.5rem;
            display: flex;
            align-items: center;
            gap: 0.75rem;
            position: relative;
            overflow: hidden;
        }

        .timer-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, rgba(245, 158, 11, 0.1) 0%, transparent 50%, rgba(245, 158, 11, 0.1) 100%);
            animation: shimmer 2s ease-in-out infinite;
        }

        @keyframes shimmer {
            0%, 100% { transform: translateX(-100%); }
            50% { transform: translateX(100%); }
        }

        .timer-icon {
            font-size: 1.5rem;
            color: #f59e0b;
            position: relative;
            z-index: 1;
        }

        .timer-text {
            font-weight: 600;
            color: #92400e;
            margin: 0;
            position: relative;
            z-index: 1;
        }

        .timer-countdown {
            font-size: 1.25rem;
            font-weight: 800;
            color: #dc2626;
            margin-left: auto;
            position: relative;
            z-index: 1;
            animation: pulse 1s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.7; }
        }

        .timer-progress {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 4px;
            background: #10b981;
            border-radius: 0 0 14px 14px;
            transition: width 1s linear;
        }

        .qr-section {
            text-align: center;
            margin-bottom: 2rem;
        }

        .qr-code {
            background: white;
            border: 3px solid #e5e7eb;
            border-radius: 20px;
            padding: 1.5rem;
            display: inline-block;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .qr-code::before {
            content: '';
            position: absolute;
            top: -2px;
            left: -2px;
            right: -2px;
            bottom: -2px;
            background: linear-gradient(45deg, #6366f1, #8b5cf6, #a855f7, #6366f1);
            background-size: 300% 300%;
            border-radius: 22px;
            z-index: -1;
            animation: gradientShift 3s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
        }

        .qr-code:hover {
            transform: scale(1.05);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
        }

        .qr-code img {
            width: 200px;
            height: 200px;
            border-radius: 12px;
        }

        .scan-instruction {
            margin-top: 1rem;
            color: #64748b;
            font-size: 0.95rem;
            font-weight: 500;
        }

        .payment-value-section {
            text-align: center;
            margin-bottom: 2rem;
            padding: 1.5rem;
            background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
            border: 2px solid #10b981;
            border-radius: 20px;
            position: relative;
            overflow: hidden;
        }

        .payment-value-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(45deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
            pointer-events: none;
        }

        .payment-label {
            font-size: 0.9rem;
            color: #047857;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .payment-amount {
            font-size: 2.5rem;
            font-weight: 900;
            color: #10b981;
            margin: 0;
            text-shadow: 0 2px 4px rgba(16, 185, 129, 0.1);
            position: relative;
            z-index: 1;
        }

        .pix-code-section {
            margin-bottom: 2rem;
        }

        .pix-code-label {
            font-weight: 600;
            color: #374151;
            margin-bottom: 0.75rem;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .pix-code-label::before {
            content: '📋';
            font-size: 1.1rem;
        }

        .pix-code-container {
            position: relative;
            border: 2px solid #e5e7eb;
            border-radius: 16px;
            background: #f9fafb;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .pix-code-container:hover {
            border-color: #6366f1;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
        }

        .pix-code-container:focus-within {
            border-color: #6366f1;
            box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
        }

        .pix-code-textarea {
            width: 100%;
            padding: 1rem 1.25rem;
            border: none;
            background: transparent;
            font-size: 0.85rem;
            font-family: 'Courier New', monospace;
            color: #374151;
            resize: none;
            height: 120px;
            outline: none;
            word-wrap: break-word;
            word-break: break-all;
            white-space: pre-wrap;
            overflow-wrap: break-word;
            line-height: 1.4;
        }

        .pix-code-textarea::placeholder {
            color: #9ca3af;
            font-style: italic;
        }

        .copy-button {
            position: absolute;
            top: 0.75rem;
            right: 0.75rem;
            background: #6366f1;
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.5rem 0.75rem;
            font-size: 0.8rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 0.25rem;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
        }

        .copy-button:hover {
            background: #4f46e5;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
        }

        .copy-button:active {
            transform: translateY(0);
        }

        .copy-button.copied {
            background: #10b981;
        }

        .copy-button.copied::before {
            content: '✓ ';
        }

        .instructions-section {
            background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
            border: 2px solid #0ea5e9;
            border-radius: 16px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .instructions-title {
            font-weight: 700;
            color: #0c4a6e;
            margin-bottom: 1rem;
            font-size: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .instructions-title::before {
            content: 'ℹ️';
            font-size: 1.2rem;
        }

        .instructions-list {
            list-style: none;
            padding: 0;
            margin: 0;
            counter-reset: step-counter;
        }

        .instructions-list li {
            padding: 0.5rem 0;
            color: #0f172a;
            font-weight: 500;
            display: flex;
            align-items: flex-start;
            gap: 0.75rem;
            border-bottom: 1px solid rgba(14, 165, 233, 0.1);
        }

        .instructions-list li:last-child {
            border-bottom: none;
        }

        .instructions-list li::before {
            content: counter(step-counter);
            counter-increment: step-counter;
            background: #0ea5e9;
            color: white;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.8rem;
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 0.1rem;
        }

        .confirmation-note {
            background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
            border: 2px solid #f59e0b;
            border-radius: 16px;
            padding: 1rem 1.5rem;
            text-align: center;
            font-weight: 600;
            color: #92400e;
            position: relative;
            overflow: hidden;
        }

        .confirmation-note::before {
            content: '⚡';
            font-size: 1.5rem;
            margin-right: 0.5rem;
        }

        /* Modal Responsividade */
        @media (max-width: 640px) {
            .modal-container {
                width: 95%;
                max-height: 95vh;
                border-radius: 20px;
            }
            
            .modal-header {
                padding: 1.25rem 1.5rem;
                border-radius: 20px 20px 0 0;
            }
            
            .modal-body {
                padding: 1.5rem;
            }
            
            .modal-title {
                font-size: 1.1rem;
            }
            
            .qr-code img {
                width: 160px;
                height: 160px;
            }
            
            .payment-amount {
                font-size: 2rem;
            }
            
            .pix-code-textarea {
                height: 100px;
                font-size: 0.8rem;
            }
        }

        /* Animações de entrada e saída do modal */
        .modal-overlay.entering {
            animation: fadeIn 0.3s ease-out forwards;
        }

        .modal-container.entering {
            animation: slideIn 0.3s ease-out forwards;
        }

        .modal-overlay.exiting {
            animation: fadeOut 0.2s ease-in forwards;
        }

        .modal-container.exiting {
            animation: slideOut 0.2s ease-in forwards;
        }

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; }
        }

        @keyframes slideOut {
            from { 
                opacity: 1; 
                transform: translateY(0) scale(1); 
            }
            to { 
                opacity: 0; 
                transform: translateY(-20px) scale(0.95); 
            }
        }
