﻿/* Intentional, high-contrast, no-framework UI */
:root{
  --bg0:#0b1020;
  --bg1:#0f1a3a;
  --ink:#eef2ff;
  --muted:rgba(238,242,255,.72);
  --line:rgba(238,242,255,.12);
  --card:rgba(10,14,28,.62);
  --glow:rgba(108, 255, 223, .20);
  --acc:#6cffdf;
  --acc2:#ffd36c;
  --danger:#ff6c8b;
  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --r:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background: radial-gradient(1200px 800px at 18% 18%, rgba(108,255,223,.12), transparent 55%),
              radial-gradient(1000px 700px at 78% 30%, rgba(255,211,108,.10), transparent 55%),
              radial-gradient(900px 900px at 55% 85%, rgba(120,110,255,.10), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
.bg{
  position:fixed; inset:-1px;
  background:
    linear-gradient(120deg, rgba(255,255,255,.06) 0 1px, transparent 1px 64px),
    linear-gradient( 30deg, rgba(255,255,255,.04) 0 1px, transparent 1px 80px);
  opacity:.28;
  pointer-events:none;
  mix-blend-mode:overlay;
}
.top{
  max-width:980px;
  margin:26px auto 14px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{display:flex; align-items:center; gap:12px; min-width:240px;}
.logo{
  width:40px; height:40px; border-radius:12px;
  background: linear-gradient(135deg, rgba(108,255,223,.25), rgba(255,211,108,.16));
  border:1px solid var(--line);
  box-shadow: 0 10px 30px rgba(108,255,223,.12);
  display:grid; place-items:center;
  font-weight:800; letter-spacing:.5px;
}
.name{font-weight:800; letter-spacing:.2px}
.tag{color:var(--muted); font-size:13px; margin-top:2px}
.controls{display:flex; align-items:center; gap:10px}

.card{
  max-width:980px;
  margin:0 auto 26px;
  padding:18px;
  background: var(--card);
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.row{display:flex; gap:12px; align-items:end; flex-wrap:wrap}
.field{flex:1; min-width:220px}
.label{display:block; font-size:12px; color:var(--muted); margin:0 0 6px}
.unit{margin-left:8px; font-size:12px; color:rgba(238,242,255,.52); font-weight:600}
.q{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  margin-left:8px;
  border-radius:999px;
  border:1px solid rgba(238,242,255,.18);
  background: rgba(0,0,0,.22);
  color: rgba(238,242,255,.75);
  font-weight:800;
  font-size:12px;
  line-height:1;
  cursor:help;
  user-select:none;
  vertical-align:middle;
}
.q:hover{border-color: rgba(108,255,223,.42); color: rgba(238,242,255,.92)}
.qSwap{align-self:end}
.rateTextWrap{display:flex; align-items:center; gap:8px}

.combo{display:flex; gap:10px}
.search{
  width:38%; min-width:140px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--ink);
  outline:none;
}
.search::placeholder{color:rgba(238,242,255,.48)}

.select, .input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  color:var(--ink);
  outline:none;
}
.input[readonly]{opacity:.92}

.btn{
  height:42px;
  padding:0 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(135deg, rgba(108,255,223,.16), rgba(255,211,108,.10));
  color:var(--ink);
  cursor:pointer;
  user-select:none;
}
.btn:hover{border-color: rgba(238,242,255,.22)}
.btn.ghost{background: rgba(0,0,0,.18)}
.btn.swap{min-width:54px; font-size:16px; align-self:end}
.field.fav{flex:0; min-width:110px}

.rate{margin:14px 0 12px; padding:12px 12px; border-radius:16px; border:1px solid var(--line); background:rgba(0,0,0,.16)}
.rateLine{display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap}
.rateText{font-weight:800; letter-spacing:.2px}
.status{color:var(--muted); font-size:12px}

.chips{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px}
.chip{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.16);
  cursor:pointer;
  font-size:12px;
  color:rgba(238,242,255,.88);
}
.chip:hover{border-color: rgba(108,255,223,.35)}

.amounts .field{min-width:280px}

.fees{margin-top:12px}
.feesHead{display:flex; align-items:center; gap:10px}
.help{margin-top:8px; color:rgba(238,242,255,.55); font-size:12px}
.feesPanel{margin-top:10px; padding:12px; border:1px solid var(--line); border-radius:16px; background:rgba(0,0,0,.14)}
.hidden{display:none}
.notes{min-height:42px; padding:10px 12px; border:1px dashed rgba(238,242,255,.18); border-radius:14px; color:var(--muted); font-size:12px}

.bottom{margin-top:14px; padding-top:12px; border-top:1px solid rgba(238,242,255,.10)}
.subhead{font-size:12px; color:var(--muted); margin-bottom:8px}
.recent{display:flex; gap:8px; flex-wrap:wrap}
.recent .chip{opacity:.92}

.foot{margin-top:12px; color:var(--muted); font-size:12px}
.link{color:rgba(238,242,255,.78); text-decoration:none}
.link:hover{color:var(--ink)}
.dot{margin:0 8px; color:rgba(238,242,255,.35)}

@media (max-width:740px){
  .search{display:none}
  .field{min-width:180px}
  .amounts .field{min-width:220px}
  .top{margin-top:18px}
}
