:root{
  --bg:#0b1220;
  --card:#111a2e;
  --muted:#95a0b5;
  --text:#e9eefb;
  --accent:#6d5efc;
  --accent2:#2dd4bf;
  --border:rgba(255,255,255,.08);
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius:18px;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Arial, sans-serif;
  background: radial-gradient(1200px 800px at 30% 10%, rgba(109,94,252,.35), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(45,212,191,.18), transparent 55%),
              var(--bg);
  color:var(--text);
}
a{color:inherit}
.container-app{max-width:420px;margin:0 auto;padding:18px}
.brand{display:flex;align-items:center;gap:10px;margin:10px 0 18px}
.brand .logo{
  width:38px;height:38px;border-radius:12px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.brand h1{font-size:18px;line-height:1.1;margin:0;font-weight:800;letter-spacing:-.2px}
.brand .sub{font-size:12px;color:var(--muted);margin-top:2px}
.card{
  background: rgba(17,26,46,.86);
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding:16px;
  backdrop-filter: blur(10px);
}
.card + .card{margin-top:14px}
.input{
  width:100%;padding:13px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color:var(--text);
  outline:none;
}
.input:focus{border-color: rgba(109,94,252,.55); box-shadow: 0 0 0 4px rgba(109,94,252,.12);}
.label{font-size:12px;color:var(--muted);margin:10px 0 6px}
.btn{
  width:100%;
  border:none;border-radius:14px;
  padding:12px 14px;
  font-weight:800;
  color:#0b1220;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  cursor:pointer;
}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-outline{
  width:100%;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 14px;
  font-weight:700;
  color:var(--text);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.row{display:flex;gap:10px}
.row > *{flex:1}
.small{font-size:12px;color:var(--muted)}
.error{font-size:12px;color:#ff6b6b;margin-top:8px}
.success{font-size:12px;color:#34d399;margin-top:8px}

.topbar{display:flex;align-items:center;justify-content:space-between;padding:10px 0 14px}
.iconbtn{
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
}
.iconbtn svg{width:22px;height:22px;opacity:.9}
.modal{
  position:fixed;inset:0;background:rgba(0,0,0,.45);
  display:none;align-items:flex-end;justify-content:center;
  padding:18px;
}
.modal.open{display:flex}
.sheet{
  width:min(420px, 100%);
  background: rgba(17,26,46,.95);
  border:1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding:14px;
}
.menu a, .menu button{
  display:flex;align-items:center;justify-content:space-between;
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid transparent;
  background: transparent;
  color: var(--text);
  text-decoration:none;
  cursor:pointer;
  font-weight:700;
}
.menu a:hover, .menu button:hover{background: rgba(255,255,255,.04); border-color: var(--border);}
.hr{height:1px;background:var(--border);margin:10px 0}

.asset{display:flex;align-items:center;gap:12px}
.asset .coin{
  width:44px;height:44px;border-radius:14px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.asset .coin img{width:28px;height:28px}
.asset .meta{flex:1}
.asset .sym{font-weight:900}
.asset .krw{font-size:12px;color:var(--muted);margin-top:2px}
.pills{display:flex;gap:8px;margin-top:10px}
.pill{
  appearance:none;
  -webkit-appearance:none;
  cursor:pointer;
  font: inherit;
  flex:1;text-align:center;
  padding:10px 0;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  font-weight:800;

  color: var(--text);
  outline:none;
}
.pill.disabled{opacity:.5}


/* tx hash / long strings */
.mono{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
.break{overflow-wrap:anywhere; word-break:break-word;}
.ellipsis{white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}

/* toast */
.toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  background: rgba(17,26,46,.95);
  border:1px solid var(--border);
  border-radius: 14px;
  padding:10px 12px;
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight:800;
  font-size:13px;
  display:none;
  max-width:min(420px, calc(100% - 24px));
}
.toast.show{display:block;}

/* brand logo as image */
.brand .logo img{width:26px; height:26px; display:block;}

/* 로그인 배너 */
.login-hero{width:100%; display:block; border-radius:14px; margin-bottom:12px; opacity:.95;}

.pill:focus{outline:none; box-shadow: 0 0 0 4px rgba(109,94,252,.12);}

/* Brand polish */
:root{
  --brand1:#5b7cfa;
  --brand2:#2dd4bf;
}
.brand .logo{
  position:relative;
  overflow:hidden;
}
.brand .logo img{
  border-radius: 18px;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.35));
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty{
  0%,100%{transform: translateY(0);}
  50%{transform: translateY(-4px);}
}
/* Button readability */
.pill{ color: rgba(255,255,255,.92); }
.pill:hover{ background: rgba(255,255,255,.06); }
.btn-outline{ color: rgba(255,255,255,.88); }


/* Fix: select dropdown options on dark UI (Windows/Chrome) */
select.input, select.form-select, select { color: #eaf0ff; background: rgba(255,255,255,0.06); }
select option { color: #111; background: #fff; }
