
:root{
  --bg:#f7f9fb;
  --panel:#ffffff;
  --text:#0f1a2b;
  --muted:#5d6b82;
  --border:#e6edf5;
  --accent:#0d6efd;
  --accent-2:#33c3ff;
  --success:#10b981;
  --warning:#f59e0b;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0; background: var(--bg); color:var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
.container{max-width:1080px; margin:0 auto; padding:0 20px}

.nav{position:sticky; top:0; z-index:20; background:#fffcc;
  backdrop-filter:saturate(120%) blur(8px);
  background: rgba(255,255,255,.8);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:700}
.brand img{width:30px; height:30px; border-radius:10px}
.nav-actions{display:flex; align-items:center; gap:6px; flex-wrap:wrap}
.nav a{
  text-decoration:none; color:var(--text); opacity:.8; padding:8px 10px; border-radius:10px;
  transition: .2s ease all;
}
.nav a:hover{background:rgba(15,26,43,.06); opacity:1}

.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 14px; border-radius:10px; border:1px solid var(--border);
  background:var(--panel); color:var(--text); text-decoration:none;
  transition:.2s ease all; cursor:pointer; font-weight:600;
}
.btn:hover{transform:translateY(-1px); box-shadow:0 8px 24px rgba(15,26,43,.06)}
.btn.primary{background: linear-gradient(90deg, #e6f2ff, #f1fbff); border-color:#d9ecff; color:#0b265a}
.btn.accent{background: var(--accent); border-color:var(--accent); color:white}
.btn.small{padding:8px 10px; font-size:13px}

.page{padding:28px 0 44px}

.tabs{display:flex; gap:8px; margin-bottom:14px}
.tab{
  padding:10px 14px; border-radius:10px; border:1px solid var(--border);
  background:var(--panel); cursor:pointer; font-weight:600; color:var(--muted);
  transition:.2s ease all;
}
.tab.active{color:var(--text); box-shadow:0 8px 24px rgba(15,26,43,.06)}

.panel{
  background:var(--panel); border:1px solid var(--border); border-radius:14px;
  padding:14px; box-shadow: 0 10px 30px rgba(15,26,43,.05);
}

.row{display:flex; justify-content:space-between; align-items:center; gap:10px}
.stack{display:flex; flex-direction:column; gap:10px}

.input-row{
  display:flex; align-items:center; gap:10px; background:#f6f9ff; border:1px solid #e8efff;
  border-radius:12px; padding:10px 12px;
}
.token-btn{
  display:flex; align-items:center; gap:10px; padding:8px 10px; background:#fff; border:1px solid var(--border); border-radius:10px; cursor:pointer; transition:.2s;
}
.token-btn:hover{box-shadow:0 8px 20px rgba(13,110,253,.12)}
.token-icon{width:22px; height:22px; border-radius:50%}
.amount{flex:1}
.amount input{
  width:100%; border:none; outline:none; background:transparent; font-size:18px; color:var(--text);
}

.swap{
  width:36px; height:36px; border-radius:10px; border:1px solid var(--border); background:var(--panel);
  display:inline-flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s;
}
.swap:hover{box-shadow:0 8px 24px rgba(15,26,43,.08)}

.kv{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px}
.kv .badge{background:#eef6ff; border:1px solid #dcecff; color:#0b265a; border-radius:8px; padding:6px 8px; font-weight:700}

.checkbox{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border:1px dashed var(--border); border-radius:12px; background:#fcfdff;
}

.cta{margin-top:12px}

.footer-row{display:flex; gap:10px; align-items:center; justify-content:flex-end; flex-wrap:wrap}
.support{display:flex; gap:10px}

.support .btn{background:#fff; border:1px solid var(--border)}

.separator{height:1px; background:var(--border); margin:18px 0}

/* Token selector modal */
.modal{
  position:fixed; inset:0; display:none; place-items:center; background:rgba(15,26,43,.18);
  z-index:50; padding:20px;
}
.modal.show{display:grid}
.sheet{
  width:min(820px, 100%); background:var(--panel); border:1px solid var(--border); border-radius:16px;
  box-shadow: 0 20px 80px rgba(15,26,43,.2); padding:16px;
}
.sheet h3{margin:4px 0 12px}
.chips{display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; margin-bottom:10px}
.chip{display:flex; align-items:center; gap:8px; padding:10px; border:1px solid var(--border); border-radius:12px; cursor:pointer; background:#fff; transition:.15s}
.chip:hover{box-shadow:0 8px 20px rgba(15,26,43,.08)}
.search{display:flex; align-items:center; gap:8px; border:1px solid var(--border); background:#fff; border-radius:12px; padding:10px 12px; margin:10px 0}
.search input{flex:1; border:none; outline:none; font-size:14px}
.tokens{max-height:320px; overflow:auto; border:1px solid var(--border); border-radius:12px}
.token-row{display:flex; align-items:center; gap:10px; padding:10px 12px; border-bottom:1px solid var(--border); background:#fff; cursor:pointer; transition:.12s}
.token-row:last-child{border-bottom:none}
.token-row:hover{background:#f7fbff}
.token-row .sym{margin-left:auto; color:var(--muted)}

@media (max-width: 680px){
  .nav-inner{align-items:flex-start}
}
