:root{
  --bg:#0b0f1a;
  --card:#10182b;
  --card2:#0f1626;
  --line:#1f2a44;
  --txt:#eaf0ff;
  --muted:#aab6d6;
  --acc:#7c5cff;
  --acc2:#31d0aa;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo","Noto Sans KR", Arial;
  background: radial-gradient(1200px 800px at 20% 10%, #1a1f3a, transparent), var(--bg);
  color:var(--txt);
}
a{color:inherit}

.top{
  padding:18px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:sticky; top:0;
  background: rgba(11,15,26,.75);
  backdrop-filter: blur(10px);
  z-index:10;
}

.brand{display:flex; gap:12px; align-items:center}
.logo{
  width:44px; height:44px; border-radius:14px;
  background: linear-gradient(135deg, var(--acc), #3fb9ff);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
}
.title{font-size:16px; font-weight:800}
.sub{font-size:12px; color:var(--muted); margin-top:2px}

.userbox{display:flex; align-items:center; gap:10px}
.userline{display:flex; gap:10px; align-items:center}
.badge{
  font-size:12px;
  padding:4px 10px;
  border-radius:999px;
  background: rgba(124,92,255,.2);
  border:1px solid rgba(124,92,255,.35);
}

.nav{
  display:flex;
  gap:8px;
  padding:12px 20px;
  border-bottom:1px solid var(--line);
}
.tab{
  border:1px solid var(--line);
  background: rgba(16,24,43,.7);
  color:var(--txt);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}
.tab.on{
  border-color: rgba(124,92,255,.6);
  box-shadow: 0 0 0 3px rgba(124,92,255,.15);
}

.wrap{padding:18px 20px; max-width:1180px; margin:0 auto;}
.card{
  background: linear-gradient(180deg, rgba(16,24,43,.9), rgba(15,22,38,.9));
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.narrow{max-width:520px; margin:18px auto;}
.grid2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media (max-width: 900px){
  .grid2{grid-template-columns:1fr}
  .userline{display:none}
}

.panel{
  background: rgba(10,16,30,.35);
  border:1px dashed rgba(255,255,255,.08);
  border-radius:16px;
  padding:14px;
}

h2{margin:0 0 12px 0; font-size:18px}
h3{margin:0 0 10px 0; font-size:15px}
.muted{color:var(--muted)}
.hint{margin-top:10px; font-size:12px; color:var(--muted)}
.divider{height:1px; background:var(--line); margin:14px 0}

.row{display:flex; gap:10px; align-items:center; margin-top:10px}
.row-between{display:flex; align-items:center; justify-content:space-between; gap:10px}

.field{margin:10px 0}
label{display:block; font-size:12px; color:var(--muted); margin-bottom:6px}
input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(7,10,18,.35);
  color:var(--txt);
  outline:none;
}
input:focus{
  border-color: rgba(124,92,255,.55);
  box-shadow: 0 0 0 3px rgba(124,92,255,.15);
}

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid rgba(124,92,255,.55);
  background: rgba(124,92,255,.18);
  color:var(--txt);
  cursor:pointer;
  font-weight:700;
}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}
.btn.sm{padding:8px 10px; border-radius:10px; font-size:12px}

.tbl{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin-top:10px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
}
.tbl th, .tbl td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.06);
  font-size:13px;
}
.tbl th{
  text-align:left;
  color:var(--muted);
  background: rgba(255,255,255,.03);
}
.tbl tr:last-child td{border-bottom:none}
.tbl td.num, .tbl th.num{text-align:right}
.actions{white-space:nowrap}

code{
  background: rgba(49,208,170,.10);
  border:1px solid rgba(49,208,170,.20);
  padding:2px 6px;
  border-radius:10px;
}

.empty{
  padding:14px;
  border:1px dashed rgba(255,255,255,.10);
  border-radius:14px;
  color:var(--muted);
  background: rgba(0,0,0,.10);
}

.kv{
  display:grid;
  gap:8px;
}
.kv > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.10);
}
.k{color:var(--muted); font-size:12px}
.v{font-size:13px}

.list .item{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.10);
  margin-top:10px;
}

.foot{
  max-width:1180px;
  margin: 0 auto;
  padding: 12px 20px 26px;
  color: var(--muted);
  font-size: 12px;
}
.link{
  text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.15);
}
.dot{margin:0 10px}

#toast{
  position:fixed;
  left:50%;
  bottom:18px;
  transform:translateX(-50%);
  background: rgba(0,0,0,.65);
  border:1px solid rgba(255,255,255,.10);
  color:var(--txt);
  padding:10px 14px;
  border-radius:999px;
  opacity:0;
  pointer-events:none;
  transition: all .18s ease;
}
#toast.show{
  opacity:1;
  bottom:22px;
}
