:root{font-family:Inter,system-ui,-apple-system,sans-serif;line-height:1.5;font-weight:400;color:#1a1a2e;background-color:#f5f7fa;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{margin:0;padding:0;box-sizing:border-box}body{min-height:100vh;display:flex;flex-direction:column;align-items:center}#root{width:100%;min-height:100vh;display:flex;flex-direction:column}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{background:#f1f5f9;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;color:#1e293b;-webkit-font-smoothing:antialiased}.app{display:flex;flex-direction:column;min-height:100vh}.header{background:#fff;border-bottom:1px solid #e2e8f0;box-shadow:0 1px 2px #0000000a;position:sticky;top:0;z-index:10}.header-inner{max-width:720px;margin:0 auto;padding:.875rem 1.5rem;display:flex;align-items:center;justify-content:space-between}.header-brand{display:flex;align-items:center;gap:.75rem}.header-logo{width:38px;height:38px;background:linear-gradient(135deg,#4f46e5,#7c3aed);border-radius:10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:1.15rem;letter-spacing:-.5px}.header-title{font-size:1.1rem;font-weight:700;color:#0f172a;line-height:1.2}.header-subtitle{font-size:.75rem;color:#94a3b8;font-weight:500;letter-spacing:.02em}.header-secure{display:flex;align-items:center;gap:.35rem;font-size:.75rem;font-weight:600;color:#16a34a;background:#f0fdf4;border:1px solid #bbf7d0;padding:.3rem .65rem;border-radius:20px}.header-timer{display:flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:700;color:#16a34a;background:#f0fdf4;border:1px solid #bbf7d0;padding:.35rem .75rem;border-radius:20px;font-variant-numeric:tabular-nums;transition:all .3s ease}.header-timer.timer-warn{color:#d97706;background:#fffbeb;border-color:#fde68a}.header-timer.timer-danger{color:#dc2626;background:#fef2f2;border-color:#fecaca;animation:pulse 1s infinite}@keyframes pulse{0%,to{opacity:1}50%{opacity:.6}}.main{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;padding:2.5rem 1rem}.form-card{width:100%;max-width:460px;background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000000f,0 4px 16px #0000000a;border:1px solid #e2e8f0;overflow:hidden}.form-header{padding:1.75rem 1.75rem 0}.form-header h1{font-size:1.5rem;font-weight:700;color:#0f172a;margin-bottom:.25rem}.form-header p{color:#64748b;font-size:.875rem}.form-body{padding:1.5rem 1.75rem;display:flex;flex-direction:column;gap:1.1rem}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem;align-items:end}.form-field-grow{min-width:0}.form-field{display:flex;flex-direction:column;gap:.35rem}.form-field label{font-size:.8rem;font-weight:600;color:#475569;letter-spacing:.01em}.label-optional{font-weight:400;color:#94a3b8}.form-field input,.form-field select{padding:.65rem .85rem;border:1.5px solid #e2e8f0;border-radius:10px;font-size:.9rem;color:#1e293b;background:#f8fafc;outline:none;transition:all .15s ease;width:100%}.form-field input:hover,.form-field select:hover{border-color:#cbd5e1}.form-field input:focus,.form-field select:focus{border-color:#4f46e5;background:#fff;box-shadow:0 0 0 3px #4f46e514}.form-field input::placeholder{color:#94a3b8}.form-field select{cursor:pointer;min-width:90px}.input-with-prefix{position:relative;display:flex;align-items:center}.input-prefix{position:absolute;left:.85rem;color:#94a3b8;font-size:.9rem;font-weight:500;pointer-events:none;z-index:1}.input-with-prefix input{padding-left:1.75rem}.card-summary{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.75rem;background:linear-gradient(135deg,#4f46e5,#6d28d9);color:#fff}.card-summary-label{font-size:.8rem;font-weight:500;opacity:.85}.card-summary-amount{font-size:1.3rem;font-weight:700;letter-spacing:-.02em}.btn{padding:.75rem 1.5rem;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .15s ease;display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.btn-primary{background:linear-gradient(135deg,#4f46e5,#6d28d9);color:#fff;padding:.8rem 2rem}.btn-primary:hover{transform:translateY(-1px);box-shadow:0 4px 12px #4f46e54d}.btn-pay{width:100%;padding:.85rem;background:linear-gradient(135deg,#4f46e5,#6d28d9);color:#fff;font-size:1rem;border-radius:10px;margin-top:.25rem}.btn-pay:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 14px #4f46e559}.btn-pay:disabled{opacity:.65;cursor:not-allowed;transform:none}.btn-loading{display:flex;align-items:center;gap:.5rem}.spinner{width:18px;height:18px;border:2.5px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .6s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.btn-ghost{background:none;border:1px solid #e2e8f0;color:#64748b;padding:.6rem 1.5rem;border-radius:10px;font-size:.85rem;font-weight:600;cursor:pointer;transition:all .15s ease}.btn-ghost:hover{background:#fef2f2;color:#dc2626;border-color:#fecaca}.btn-back{display:flex;align-items:center;gap:.25rem;background:none;border:none;color:#64748b;font-size:.75rem;font-weight:600;cursor:pointer;padding:0}.btn-back:hover{color:#4f46e5}.form-footer{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.75rem;background:#f8fafc;border-top:1px solid #f1f5f9;font-size:.75rem;color:#94a3b8;font-weight:500}.form-footer-secure{display:flex;align-items:center;gap:.35rem}.alert{display:flex;align-items:center;gap:.6rem;padding:.75rem 1rem;border-radius:10px;font-size:.85rem;margin:0 1.75rem;animation:slideDown .25s ease}@keyframes slideDown{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.alert-error{background:#fef2f2;border:1px solid #fecaca;color:#dc2626}.alert span{flex:1}.alert-dismiss{background:none;border:none;font-size:1.2rem;cursor:pointer;color:inherit;opacity:.5;padding:0 .25rem;line-height:1}.alert-dismiss:hover{opacity:1}.result-card{width:100%;max-width:420px;background:#fff;border-radius:16px;box-shadow:0 1px 3px #0000000f,0 4px 16px #0000000a;border:1px solid #e2e8f0;padding:2.5rem 2rem;text-align:center;display:flex;flex-direction:column;align-items:center;gap:1rem;animation:fadeUp .35s ease}@keyframes fadeUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.result-icon{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;margin-bottom:.25rem}.result-icon-success{background:#f0fdf4;color:#16a34a;border:2px solid #bbf7d0}.result-icon-cancel{background:#fffbeb;color:#d97706;border:2px solid #fde68a}.result-icon-expired{background:#fef2f2;color:#dc2626;border:2px solid #fecaca}.result-title{font-size:1.35rem;font-weight:700;color:#0f172a}.result-text{font-size:.9rem;color:#64748b;line-height:1.5;max-width:320px}.result-ref{font-size:.8rem;color:#94a3b8;font-family:monospace;background:#f8fafc;padding:.35rem .75rem;border-radius:6px;border:1px solid #e2e8f0}.waiting-spinner-ring{width:64px;height:64px;display:flex;align-items:center;justify-content:center;margin-bottom:.25rem}.waiting-spinner{width:48px;height:48px;border:4px solid #e2e8f0;border-top-color:#4f46e5;border-radius:50%;animation:spin .8s linear infinite}.threeds-card{width:100%;max-width:520px;background:#fff;border-radius:16px;box-shadow:0 4px 20px #00000014,0 1px 3px #0000000f;border:1px solid #e2e8f0;overflow:hidden;display:flex;flex-direction:column;align-items:center;animation:fadeUp .3s ease}.threeds-header{width:100%;padding:1.25rem 1.5rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;text-align:center}.threeds-header h2{font-size:1.1rem;font-weight:700;color:#0f172a;margin-bottom:.2rem}.threeds-header p{font-size:.8rem;color:#64748b}.threeds-iframe-wrapper{width:100%;background:#fff}.threeds-iframe{width:100%;height:500px;border:none;display:block}.threeds-card .btn-ghost{margin:1rem 0 1.25rem}.footer{border-top:1px solid #e2e8f0;background:#fff}.footer-inner{max-width:720px;margin:0 auto;padding:1.25rem 1.5rem;display:flex;align-items:center;justify-content:center;gap:.5rem;font-size:.8rem;color:#94a3b8}.footer-dot{color:#cbd5e1}@media(max-width:560px){.header-inner{padding:.75rem 1rem}.header-secure{display:none}.main{padding:1.5rem .75rem}.form-header{padding:1.25rem 1.25rem 0}.form-header h1{font-size:1.3rem}.form-body{padding:1.25rem}.form-row{grid-template-columns:1fr 1fr}.alert{margin:0 1.25rem}.form-footer{padding:.85rem 1.25rem}.card-summary{padding:1rem 1.25rem}.result-card{padding:2rem 1.5rem}.threeds-iframe{height:400px}}
