:root{
  --bg:#f7f8fb;
  --surface:#ffffff;
  --surface-soft:#eef1f6;
  --surface-tint:#f5f2ff;
  --line:#dde2ea;
  --line-strong:#ccd3df;
  --text:#111827;
  --muted:#596273;
  --muted-2:#8d95a3;
  --violet:#6c3cff;
  --violet-2:#8f5bff;
  --pink:#ef8fd6;
  --green:#70d49d;
  --red:#ea5b75;
  --yellow:#f0bd4b;
  --shadow:0 28px 80px rgba(91,68,178,.16);
  --wrap:1180px;
  --radius:8px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(115deg,rgba(108,60,255,.10),transparent 34%),
    linear-gradient(245deg,rgba(112,212,157,.14),transparent 42%),
    var(--bg);
  overflow-x:hidden;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.38) 48%,rgba(255,255,255,.82));
  z-index:-1;
}
a{color:inherit;text-decoration:none}
button,input,textarea{font:inherit}
button{cursor:pointer}
.container{width:min(var(--wrap),calc(100% - 36px));margin:0 auto}
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(18px);
  border-top:3px solid #25242c;
  border-bottom:1px solid var(--line);
}
.nav{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:10px;font-weight:850;color:#232735}
.brand-mark{width:34px;height:34px;border-radius:8px;background:linear-gradient(135deg,var(--violet),var(--pink));padding:1px;box-shadow:0 12px 28px rgba(108,60,255,.22)}
.brand-mark span{display:block;width:100%;height:100%;border-radius:7px;background:#fff;position:relative}
.brand-mark span:before{content:"";position:absolute;inset:8px;background:linear-gradient(135deg,var(--violet),var(--pink));clip-path:polygon(22% 0,100% 0,76% 100%,0 100%)}
.brand small{display:block;color:var(--muted-2);font-size:.68rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.nav-links{display:flex;gap:6px;align-items:center}
.nav-links a{display:inline-flex;align-items:center;gap:7px;padding:9px 10px;border-radius:8px;color:#4c5566;font-size:.94rem;font-weight:650}
.nav-links a:hover,.nav-links a.active{background:#f0eefb;color:#2f2d44}
.nav-icon{color:#687182;font-weight:800}
.network-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 13px;
  border:1px solid var(--line-strong);
  border-radius:8px;
  background:#f8fafc;
  color:#2f3440;
  font-weight:750;
  white-space:nowrap;
}
.network-pill:before{content:"";width:8px;height:8px;border-radius:50%;background:#86dfaa}
.btn{
  border:0;
  min-height:46px;
  padding:0 18px;
  border-radius:8px;
  color:var(--text);
  background:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-weight:800;
  box-shadow:inset 0 0 0 1px var(--line),0 10px 22px rgba(31,41,55,.06);
  transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover{transform:translateY(-1px);background:#f9fafc;box-shadow:inset 0 0 0 1px var(--line-strong),0 14px 30px rgba(31,41,55,.09)}
.btn-primary{background:linear-gradient(100deg,#b78bf3,#ed94d7);color:#fff;box-shadow:0 18px 38px rgba(185,109,217,.32)}
.btn-primary:hover{background:linear-gradient(100deg,#a477ec,#e582cd)}
.btn-ghost{background:#f8fafc}
.btn-danger{background:#fff2f5;color:#a13d52;box-shadow:inset 0 0 0 1px rgba(234,91,117,.22)}
.hero{padding:28px 0 36px}
.hero-copy{text-align:center;max-width:760px;margin:0 auto 34px}
.eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;margin-bottom:16px}
.eyebrow:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--green)}
h1,h2,h3,p{margin-top:0}
h1{font-size:clamp(2.2rem,5.2vw,4.2rem);line-height:1;letter-spacing:0;margin-bottom:16px}
.hero h1{color:var(--violet);font-weight:900}
h2{font-size:clamp(1.45rem,2.4vw,2.2rem);line-height:1.08;letter-spacing:0;margin-bottom:10px}
h3{font-size:1.04rem;margin-bottom:8px}
.lead{font-size:1.15rem;line-height:1.55;color:#4e5668;max-width:720px;margin:0 auto}
.swap-shell{
  position:relative;
  width:min(100%,448px);
  margin:0 auto;
}
.swap-shell:before{
  content:"";
  position:absolute;
  inset:18px -54px -44px;
  background:linear-gradient(100deg,rgba(108,60,255,.22),rgba(239,143,214,.20),rgba(112,212,157,.15));
  filter:blur(34px);
  border-radius:8px;
  z-index:-1;
}
.swap-card{
  border:1px solid rgba(255,255,255,.92);
  border-radius:8px;
  padding:20px;
  background:rgba(255,255,255,.94);
  box-shadow:var(--shadow);
}
.swap-inner{border-radius:8px;background:transparent}
.swap-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:20px}
.swap-head h2{margin:0;font-size:1.08rem;font-weight:850;color:#151922}
.mode-switch{display:flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:8px;background:#f6f7fb}
.mode-btn{border:0;border-radius:8px;background:transparent;color:var(--muted);padding:7px 10px;font-weight:800;font-size:.78rem}
.mode-btn.active{background:#fff;color:var(--violet);box-shadow:0 6px 14px rgba(60,52,95,.08)}
.settings-btn{width:34px;height:34px;border:0;border-radius:8px;background:#fff;color:#667085;box-shadow:inset 0 0 0 1px var(--line);display:grid;place-items:center}
.settings-btn span,.settings-btn span:before,.settings-btn span:after{content:"";display:block;width:15px;height:2px;border-radius:2px;background:#667085}
.settings-btn span{position:relative}
.settings-btn span:before{position:absolute;top:-6px;left:4px;width:11px}
.settings-btn span:after{position:absolute;top:6px;left:0;width:11px}
.token-box{border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);padding:18px 16px;margin-bottom:8px}
.token-label{display:flex;justify-content:space-between;gap:10px;color:#596273;font-size:.88rem;margin-bottom:8px}
.token-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.amount-wrap input{width:100%;border:0;outline:0;background:transparent;color:#9aa1ad;font-size:2rem;font-weight:760;letter-spacing:0;padding:0}
.amount-wrap input[readonly]{color:#a7adba}
.usd-line{height:19px;color:var(--muted-2);font-size:.82rem;margin-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.asset-btn{border:0;border-radius:8px;background:#e5d8fb;color:#7338f5;min-height:40px;padding:7px 12px;display:flex;align-items:center;gap:8px;font-weight:850;box-shadow:none;max-width:190px}
.asset-btn:hover{background:#dbc9fa}
.asset-btn:empty:before{content:"Select token";white-space:nowrap}
.asset-btn img,.coin-img{width:28px;height:28px;border-radius:50%;object-fit:cover;background:#fff}
.asset-btn .ticker{max-width:88px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chev{width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-left:1px;margin-bottom:3px}
.flip{width:46px;height:46px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:#697386;display:grid;place-items:center;margin:-15px auto -11px;position:relative;z-index:3;font-size:1.25rem;box-shadow:0 8px 18px rgba(31,41,55,.08)}
.flip:hover{background:#f8fafc}
.quote-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0}
.quote-pill{border:1px solid var(--line);border-radius:8px;background:#fafbfe;padding:9px}
.quote-pill span{display:block;color:var(--muted-2);font-size:.7rem;margin-bottom:2px}
.quote-pill b{font-size:.78rem;word-break:break-word}
.form-fields{display:grid;gap:10px;margin-top:12px}
.field,.support-field,textarea.support-field{
  width:100%;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  outline:0;
  color:var(--text);
  padding:13px 14px;
}
textarea.support-field{min-height:88px;resize:vertical}
.field:focus,.support-field:focus,.search:focus{border-color:#bda8ff;box-shadow:0 0 0 4px rgba(108,60,255,.10)}
.warn{display:none;border:1px solid rgba(240,189,75,.35);background:#fff8e8;color:#7f5d13;border-radius:8px;padding:10px 12px;font-size:.86rem}
.warn.show{display:block}
.swap-actions{display:grid;gap:10px;margin-top:16px}
.swap-actions .btn{width:100%;min-height:56px;font-size:1rem}
.powered{display:flex;align-items:center;justify-content:center;gap:8px;margin:14px 0 0;color:#667085;font-size:.82rem}
.section{padding:38px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:18px;margin-bottom:18px}
.section-head p{color:var(--muted);max-width:640px;margin:0}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.card{border:1px solid var(--line);background:rgba(255,255,255,.88);border-radius:8px;padding:22px;box-shadow:0 14px 34px rgba(31,41,55,.05)}
.card h3{margin-bottom:8px}
.card p,.card li{color:var(--muted);margin-bottom:0}
.proof-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:22px}
.proof-item{border:1px solid var(--line);background:#fff;border-radius:8px;padding:16px}
.proof-item b{display:block;font-size:1.25rem}
.proof-item span{color:var(--muted);font-size:.82rem}
.market-list{display:grid;gap:10px}
.market-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);background:#fff;border-radius:8px}
.market-row b{font-size:.94rem}
.market-row small{display:block;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.feature-list{display:grid;gap:10px}
.feature-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff}
.icon{width:42px;height:42px;border-radius:8px;background:#f1ecff;color:var(--violet);display:grid;place-items:center;font-weight:900}
.invoice-layout{display:grid;grid-template-columns:.86fr 1.14fr;gap:16px;align-items:start}
.qr-card{border:1px solid var(--line);border-radius:8px;background:#fff;padding:16px;color:#101521;box-shadow:0 18px 44px rgba(31,41,55,.08)}
.qr-code{width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:8px;background:#fff}
.qr-card img{width:100%;border-radius:8px}
.caption{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:10px;font-weight:850;font-size:.82rem}
.details{display:grid;gap:9px}
.detail{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;border:1px solid var(--line);background:#fbfcff;border-radius:8px;padding:12px}
.detail span{color:var(--muted);font-size:.76rem;text-transform:uppercase;letter-spacing:.08em}
.detail b{max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:right;font-size:.88rem}
.status{display:inline-flex;border-radius:8px;padding:7px 10px;background:#ecfff4;color:#177143;font-weight:850;font-size:.78rem}
.timeline{display:grid;gap:8px;margin-top:14px}
.tline{display:grid;grid-template-columns:20px 1fr;gap:10px;color:var(--muted);font-size:.9rem}
.dot{width:14px;height:14px;border-radius:50%;background:#e7ebf2;border:1px solid var(--line-strong);margin-top:2px}
.tline.done .dot,.tline.active .dot{background:var(--green);border:0;box-shadow:0 0 0 5px rgba(112,212,157,.16)}
.tline.active{color:var(--text)}
.modal{position:fixed;inset:0;z-index:100;display:none;align-items:center;justify-content:center;padding:18px;background:rgba(17,24,39,.30);backdrop-filter:blur(10px)}
.modal.open{display:flex}
.token-modal{width:min(520px,100%);max-height:min(760px,calc(100vh - 36px));display:flex;flex-direction:column;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow);overflow:hidden}
.modal-head{padding:18px;border-bottom:1px solid var(--line)}
.modal-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.modal-title h3{margin:0}
.close{border:0;background:#f1f3f8;color:var(--text);width:36px;height:36px;border-radius:8px;font-size:1.1rem}
.search{width:100%;border:1px solid var(--line);border-radius:8px;background:#fff;outline:0;color:var(--text);padding:14px 15px}
.token-results{overflow:auto;padding:10px;display:grid;gap:6px}
.token-option{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;border:0;border-radius:8px;background:transparent;color:var(--text);padding:11px 12px;text-align:left}
.token-option:hover{background:#f6f3ff}
.token-name b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.token-name span{display:block;color:var(--muted);font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rank{color:var(--muted-2);font-size:.78rem}
.loader{padding:22px;text-align:center;color:var(--muted)}
.footer{padding:38px 0 46px;border-top:1px solid var(--line);margin-top:18px;background:rgba(255,255,255,.56)}
.footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:16px}
.footer p,.footer a,.footer li{color:var(--muted)}
.footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.toast-wrap{position:fixed;right:18px;bottom:18px;z-index:140;display:grid;gap:9px}
.toast{padding:13px 15px;border-radius:8px;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.support-widget{position:fixed;right:18px;bottom:18px;z-index:130}
.support-toggle{width:56px;height:56px;border:0;border-radius:8px;background:#171827;color:#fff;display:grid;place-items:center;box-shadow:0 18px 42px rgba(31,41,55,.22);font-weight:900}
.support-panel{position:absolute;right:0;bottom:70px;width:min(360px,calc(100vw - 36px));border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow);overflow:hidden;display:none}
.support-widget.open .support-panel{display:block}
.support-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px;border-bottom:1px solid var(--line);background:#fbfcff}
.support-head strong{display:block}
.support-head span{display:block;color:var(--muted);font-size:.82rem}
.support-close{width:32px;height:32px;border:0;border-radius:8px;background:#f1f3f8;color:var(--text);font-size:1rem}
.support-body{padding:14px;display:grid;gap:12px}
.support-message{border-radius:8px;background:#f5f2ff;color:#43385f;padding:11px 12px;font-size:.9rem;line-height:1.45}
.support-form{display:grid;gap:9px}
.support-created{display:none;border:1px solid rgba(112,212,157,.45);background:#edfff5;border-radius:8px;padding:12px;color:#176b40}
.support-created.show{display:block}
.hidden{display:none!important}
@media(max-width:980px){
  .grid-3,.grid-2,.invoice-layout,.footer-grid{grid-template-columns:1fr}
  .proof-strip{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:720px){
  .container{width:min(var(--wrap),calc(100% - 24px))}
  .nav{flex-wrap:wrap;padding:10px 0}
  .nav-links{order:3;width:100%;overflow:auto;padding-bottom:2px}
  .network-pill{margin-left:auto}
  .hero{padding-top:22px}
  .lead{font-size:1rem}
  .swap-card{padding:14px}
  .swap-shell:before{inset:30px -14px -24px;filter:blur(26px)}
  .token-main{grid-template-columns:1fr;align-items:start}
  .asset-btn{max-width:100%;justify-content:space-between}
  .quote-bar{grid-template-columns:1fr}
  .detail{grid-template-columns:1fr}
  .detail b{text-align:left;max-width:100%}
  .proof-strip{grid-template-columns:1fr}
}
