:root{
  --bg:#070b12;
  --card:#101a28;
  --card2:#0b1420;
  --text:#eef4ff;
  --muted:#9fb1c9;
  --line:rgba(255,255,255,.08);
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --r:18px;
  --r2:22px;
  --primary:#4aa8ff;
  --accent:#7b5cff;
  --warn:#ffcc33;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(900px 520px at 25% -20%, rgba(74,168,255,.25), transparent 60%),
    radial-gradient(900px 520px at 100% 10%, rgba(123,92,255,.20), transparent 55%),
    radial-gradient(900px 520px at 60% 120%, rgba(255,204,51,.10), transparent 60%),
    var(--bg);
  color:var(--text);
}
.ic{width:18px;height:18px}
.app{max-width:520px;margin:0 auto;min-height:100vh;padding:14px 14px 96px}

.header{display:flex;justify-content:space-between;align-items:center;padding:6px 2px 12px}
.h-left{display:flex;gap:10px;align-items:center}
.h-right{display:flex;gap:10px;align-items:center}

.avatar{
  width:42px;height:42px;border-radius:16px;
  display:grid;place-items:center;font-weight:950;
  background: linear-gradient(135deg, rgba(74,168,255,.38), rgba(123,92,255,.22));
  border:1px solid var(--line);
}
.h-title{font-weight:950;letter-spacing:.2px}
.h-sub{color:var(--muted);font-size:12px;margin-top:2px}

.icon-btn{
  width:42px;height:42px;border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  display:grid;place-items:center;
}
.icon-btn.sm{width:36px;height:36px;border-radius:14px}

.chip{
  display:inline-flex;gap:6px;align-items:center;
  padding:10px 12px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:900;
}

.banner{
  border-radius:22px;
  padding:16px;
  background:
    linear-gradient(135deg, rgba(74,168,255,.32), rgba(123,92,255,.22)),
    rgba(255,255,255,.02);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  margin-bottom:12px;
}
.banner-title{font-weight:950;font-size:16px}
.banner-sub{color:rgba(238,244,255,.78);font-size:12px;margin-top:4px}
.banner-btn{
  margin-top:10px;
  padding:10px 12px;border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.18);
  color:var(--text);
  font-weight:950;
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 70%), var(--card);
  border:1px solid var(--line);
  border-radius: var(--r2);
  box-shadow: var(--shadow);
}

.balance-card{padding:16px}
.balance-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.muted{color:var(--muted);font-size:12px}
.balance{font-size:40px;font-weight:950;margin-top:6px}
.pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.pill{
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);font-size:12px;font-weight:900;
}
.pill.ghost{opacity:.9}

.actions{display:flex;flex-direction:column;gap:10px}
.btn{
  display:inline-flex;gap:8px;align-items:center;justify-content:center;
  padding:10px 12px;border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);font-weight:950;
}
.btn-primary{
  background:linear-gradient(135deg, rgba(74,168,255,.95), rgba(74,168,255,.72));
  border-color: rgba(74,168,255,.45);
}

.notice{
  margin-top:14px;padding:12px;border-radius:18px;
  border:1px solid rgba(255,204,51,.22);
  background: rgba(255,204,51,.10);
  display:flex;gap:10px;align-items:flex-start;
}
.notice-ic{
  width:28px;height:28px;border-radius:10px;
  display:grid;place-items:center;
  background: rgba(255,204,51,.18);
  font-weight:950;color:var(--warn);
}
.notice-title{font-weight:950;font-size:13px}
.notice-sub{color:rgba(238,244,255,.80);font-size:12px;margin-top:2px;line-height:1.35}

.assets-card{margin-top:14px;padding:12px}
.section-head{display:flex;justify-content:space-between;align-items:center;margin:2px 2px 10px}
.section-title{font-weight:950}
.link-btn{border:none;background:transparent;color:var(--primary);font-weight:950}

.assets-list{display:flex;flex-direction:column}
.asset{
  display:flex;justify-content:space-between;align-items:center;
  padding:12px;border-radius:18px;
}
.asset + .asset{border-top:1px solid var(--line)}
.a-left{display:flex;gap:12px;align-items:center}
.token{
  width:44px;height:44px;border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  display:grid;place-items:center;
  overflow:hidden;
}
.token img{width:28px;height:28px}
.a-name{font-weight:950}
.a-sub{color:var(--muted);font-size:12px;margin-top:2px}
.a-amt{font-weight:950;text-align:right}
.a-rate{color:rgba(238,244,255,.75);font-size:12px;margin-top:3px}

.nav{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:0;width:min(520px, 100%);
  padding:10px 10px calc(10px + env(safe-area-inset-bottom));
  background: rgba(6,8,12,.75);
  backdrop-filter: blur(12px);
  border-top:1px solid var(--line);
  display:flex;gap:10px;
}
.nav-btn{
  flex:1;display:flex;gap:8px;align-items:center;justify-content:center;
  padding:10px;border-radius:18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.02);
  color: var(--muted);
  font-weight:950;
}
.nav-btn.active{color:var(--text);background: rgba(74,168,255,.14);border-color: rgba(74,168,255,.25)}

.modal-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.55);
}
.modal{
  position:fixed;left:50%;transform:translateX(-50%);
  bottom:14px;width:min(520px, calc(100% - 20px));
  border-radius:22px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), transparent 70%), var(--card2);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
  padding:14px;
}
.modal-head{display:flex;justify-content:space-between;align-items:center}
.modal-title{font-weight:950;font-size:16px}
.modal-section{margin-top:12px}
.modal-label{color:rgba(238,244,255,.80);font-weight:900;margin-bottom:10px}

.fiat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.fiat-btn{
  padding:10px;border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--text);
  font-weight:950;
}
.fiat-btn.active{
  background: rgba(74,168,255,.16);
  border-color: rgba(74,168,255,.35);
}
