:root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.app{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(135deg,#667eea,#764ba2)}.app-header{text-align:center;padding:2rem;color:#fff}.app-header h1{font-size:2.5rem;margin:0;font-weight:700}.app-header p{margin:.5rem 0 0;opacity:.9;font-size:1.1rem}.app-main{flex:1;display:flex;justify-content:center;align-items:flex-start;padding:2rem}.app-footer{text-align:center;padding:1rem;color:#fff;opacity:.7;font-size:.9rem}.app-loading{min-height:100vh;display:flex;flex-direction:column;justify-content:center;align-items:center;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.loading-spinner{width:40px;height:40px;border:4px solid rgba(255,255,255,.3);border-top:4px solid white;border-radius:50%;animation:spin 1s linear infinite;margin-bottom:1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.error-banner{background:#fee;border:1px solid #fcc;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#c33;text-align:center}.wallet-connection{display:flex;justify-content:center;align-items:center;width:100%}.wallet-card{background:#fff;border-radius:16px;padding:2rem;box-shadow:0 10px 30px #0000001a;text-align:center;max-width:400px;width:100%}.wallet-icon{font-size:3rem;margin-bottom:1rem}.wallet-card h2{margin:0 0 .5rem;color:#333}.wallet-card p{color:#666;margin-bottom:2rem}.connect-button{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:12px;padding:1rem 2rem;font-size:1.1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;width:100%;margin-bottom:2rem}.connect-button:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.supported-wallets{border-top:1px solid #eee;padding-top:1rem}.supported-wallets p{margin:0 0 .5rem;font-size:.9rem;color:#888}.wallet-list{display:flex;flex-direction:column;gap:.5rem}.wallet-item{font-size:.9rem;color:#666}.swap-interface{width:100%;max-width:500px}.swap-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem;color:#fff}.swap-header h2{margin:0}.user-info{display:flex;align-items:center;gap:1rem;font-size:.9rem}.disconnect-btn{background:#fff3;color:#fff;border:1px solid rgba(255,255,255,.3);border-radius:6px;padding:.5rem 1rem;cursor:pointer;transition:background .2s}.disconnect-btn:hover{background:#ffffff4d}.swap-card{background:#fff;border-radius:16px;padding:1.5rem;box-shadow:0 10px 30px #0000001a}.token-input{margin-bottom:1rem}.input-header{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.9rem;color:#666}.input-row{display:flex;gap:1rem;align-items:center;background:#f8f9fa;border-radius:12px;padding:1rem}.amount-input{flex:1;border:none;background:none;font-size:1.5rem;outline:none}.amount-input.readonly{color:#666}.swap-arrow{display:flex;justify-content:center;margin:1rem 0}.swap-arrow-btn{background:#f8f9fa;border:2px solid #e9ecef;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s;font-size:1.2rem}.swap-arrow-btn:hover{background:#e9ecef;transform:rotate(180deg)}.token-selector{position:relative}.token-selector-button{display:flex;align-items:center;gap:.5rem;background:#fff;border:1px solid #e9ecef;border-radius:8px;padding:.75rem 1rem;cursor:pointer;transition:border-color .2s;min-width:120px}.token-selector-button:hover{border-color:#667eea}.token-icon{width:24px;height:24px;border-radius:50%}.token-symbol{font-weight:600}.dropdown-arrow{margin-left:auto;font-size:.8rem;color:#666}.token-dropdown{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 5px 15px #0000001a;z-index:1000;max-height:300px;overflow:hidden}.search-container{padding:1rem;border-bottom:1px solid #e9ecef}.token-search{width:100%;border:1px solid #e9ecef;border-radius:6px;padding:.5rem;outline:none}.token-search:focus{border-color:#667eea}.token-list{max-height:200px;overflow-y:auto}.token-item{display:flex;align-items:center;gap:.75rem;padding:.75rem 1rem;border:none;background:none;width:100%;text-align:left;cursor:pointer;transition:background .2s}.token-item:hover{background:#f8f9fa}.token-item.selected{background:#e3f2fd}.token-info{flex:1;display:flex;flex-direction:column}.token-name{font-size:.8rem;color:#666}.token-price{font-size:.9rem;color:#666}.no-tokens{padding:2rem;text-align:center;color:#666}.token-dropdown-overlay{position:fixed;inset:0;z-index:999}.slippage-settings{margin:1rem 0;padding:1rem;background:#f8f9fa;border-radius:8px}.slippage-settings label{display:block;margin-bottom:.5rem;font-size:.9rem;color:#666}.slippage-buttons{display:flex;gap:.5rem}.slippage-btn{background:#fff;border:1px solid #e9ecef;border-radius:6px;padding:.5rem 1rem;cursor:pointer;transition:all .2s;font-size:.9rem}.slippage-btn:hover{border-color:#667eea}.slippage-btn.active{background:#667eea;color:#fff;border-color:#667eea}.slippage-input{padding:8px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;width:80px;text-align:center}.slippage-input:focus{outline:none;border-color:#007bff;box-shadow:0 0 0 2px #007bff40}.slippage-warning{margin-top:8px;padding:8px 12px;background:#fff3cd;border:1px solid #ffeaa7;border-radius:6px;color:#856404;font-size:12px;display:flex;align-items:center;gap:6px}.unwrap-settings{margin-bottom:1rem;padding:1rem;background:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.unwrap-toggle{margin-bottom:.5rem}.unwrap-toggle label{display:flex;align-items:center;gap:.5rem;cursor:pointer;font-size:.9rem}.unwrap-toggle input[type=checkbox]{width:16px;height:16px;cursor:pointer}.wrapped-token-info{padding:.5rem;background:#e3f2fd;border:1px solid #bbdefb;border-radius:4px;color:#1565c0;font-size:.85rem;margin-top:.5rem}.quote-info{margin:1rem 0;padding:1rem;background:#f8f9fa;border-radius:8px}.quote-row{display:flex;justify-content:space-between;margin-bottom:.5rem;font-size:.9rem}.quote-row:last-child{margin-bottom:0}.high-impact{color:#dc3545;font-weight:600}.swap-button{width:100%;padding:1rem;border:none;border-radius:12px;font-size:1.1rem;font-weight:600;cursor:pointer;transition:all .2s}.swap-button.enabled{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.swap-button.enabled:hover{transform:translateY(-2px);box-shadow:0 5px 15px #667eea66}.swap-button.disabled{background:#e9ecef;color:#6c757d;cursor:not-allowed}.error-message{background:#fee;border:1px solid #fcc;border-radius:8px;padding:1rem;margin-bottom:1rem;color:#c33;text-align:center}.status-message{padding:12px;border-radius:8px;margin-bottom:16px;font-weight:500}.status-message.info{background:#e3f2fd;border:1px solid #90caf9;color:#1565c0}.status-message.success{background:#e8f5e8;border:1px solid #81c784;color:#2e7d32}.status-message.error{background:#fee;border:1px solid #fcc;color:#c33}.transaction-result{background:#f5f5f5;border:1px solid #ddd;padding:12px;border-radius:8px;margin-bottom:16px}.transaction-result code{background:#e0e0e0;padding:2px 6px;border-radius:4px;font-family:Monaco,Menlo,monospace;font-size:12px;word-break:break-all}@media (max-width: 768px){.app-main{padding:1rem}.swap-header{flex-direction:column;gap:1rem;text-align:center}.user-info,.input-row{flex-direction:column;gap:.5rem}.amount-input{text-align:center}}
