:root{
  --bg:#050a14;
  --panel:#0f1a2f;
  --panel2:#0c1629;
  --text:#e9eef7;
  --muted:#9fb0c6;
  --line:rgba(255,255,255,.10);
  --brand:#6ee7ff;
  --brand2:#a78bfa;
  --good:#34d399;
  --warn:#fbbf24;
  --bad:#fb7185;
  --shadow:0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --radius2:12px;
  --max:1120px;
  --pad:18px;
  --pad2:14px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
html{background:var(--bg)}
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button, input, select, textarea{font:inherit}
.container{max-width:var(--max); margin:0 auto; padding:0 var(--pad)}
.section{padding:26px 0}
.hidden{display:none !important}

.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--bg);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}
.brand{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px;
  border-radius:12px;
  background:linear-gradient(135deg, rgba(110,231,255,.12), rgba(167,139,250,.12));
  border:1px solid rgba(255,255,255,.10);
}
.brand img{width:28px; height:28px}
.brand .title{font-weight:800; letter-spacing:.2px}
.brand .tag{font-size:12px; color:var(--muted); margin-left:2px}

.nav{
  display:flex; align-items:center; gap:6px;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:650;
  font-size:14px;
  white-space:nowrap;
}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.nav a.active{
  background:linear-gradient(135deg, rgba(110,231,255,.14), rgba(167,139,250,.14));
  color:var(--text);
  border:1px solid rgba(255,255,255,.10);
}

.header-actions{
  display:flex; align-items:center; gap:10px;
}
.pill{
  display:flex; align-items:center; gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
}
.pill .dot{
  width:8px; height:8px; border-radius:99px;
  background:rgba(255,255,255,.30);
}
.pill.good .dot{background:var(--good)}
.pill .addr{color:var(--text); font-weight:700}

.btn{
  appearance:none;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:800;
}
.btn:hover{background:rgba(255,255,255,.08)}
.btn.primary{
  border:1px solid rgba(110,231,255,.25);
  background:linear-gradient(135deg, rgba(110,231,255,.16), rgba(167,139,250,.14));
}
.btn.primary:hover{filter:brightness(1.06)}
.btn.danger{
  border:1px solid rgba(251,113,133,.25);
  background:rgba(251,113,133,.12);
}
.btn.small{padding:8px 10px; border-radius:10px; font-size:13px}
.btn.block{width:100%}

.hero{padding:28px 0 10px}
.hero-grid{
  display:grid;
  grid-template-columns: 1.35fr .65fr;
  gap:16px;
}
@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr}
  .nav{display:none}
  .header-inner{flex-wrap:wrap}
}

.card{
  background:var(--panel);
  border:1px solid rgba(255,255,255,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.card .pad{padding:var(--pad)}
.card .pad2{padding:var(--pad2)}
.card h1, .card h2, .card h3{margin:0 0 10px}
.card h1{font-size:26px}
.card h2{font-size:18px}
.card h3{font-size:16px}

.muted{color:var(--muted)}

.kpi{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}
@media (max-width: 700px){
  .kpi{grid-template-columns:1fr}
}
.kpi .box{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(0,0,0,.18);
}
.kpi .label{font-size:12px; color:var(--muted)}
.kpi .value{font-size:18px; font-weight:900; margin-top:4px}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 1000px){
  .grid{grid-template-columns: repeat(2, 1fr)}
}
@media (max-width: 640px){
  .grid{grid-template-columns: 1fr}
}

.asset-card{overflow:hidden}
.asset-card .thumb{
  height:150px;
  background:rgba(0,0,0,.25);
  border-bottom:1px solid rgba(255,255,255,.10);
  display:flex;
  align-items:center;
  justify-content:center;
}
.asset-card .thumb img{width:100%; height:100%; object-fit:cover}

.badge{
  display:inline-flex; align-items:center; gap:6px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--text);
  white-space:nowrap;
}
.badge.good{border-color:rgba(52,211,153,.30); background:rgba(52,211,153,.10)}
.badge.warn{border-color:rgba(251,191,36,.30); background:rgba(251,191,36,.10)}
.badge.bad{border-color:rgba(251,113,133,.30); background:rgba(251,113,133,.10)}
.badge.neutral{border-color:rgba(159,176,198,.25); background:rgba(159,176,198,.08); color:#d7e3f7}

.row{
  display:flex; gap:12px;
  align-items:center; justify-content:space-between;
}
.progress{
  height:10px; border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.progress > div{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, rgba(110,231,255,.95), rgba(167,139,250,.95));
}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
}
.table th, .table td{
  text-align:left;
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:14px;
  vertical-align:middle;
}
.table th{color:var(--muted); background:rgba(255,255,255,.03); font-weight:900}
.table tr:last-child td{border-bottom:none}
.table td.right{text-align:right}
.table td.center{text-align:center}

.form{display:grid; gap:10px}
.field{display:grid; gap:6px}
.field label{
  font-size:13px;
  color:var(--muted);
  font-weight:800;
}
.input, select, textarea{
  width:100%;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
}
textarea{min-height:96px; resize:vertical}
.help{font-size:12px; color:var(--muted); line-height:1.35}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media (max-width: 820px){
  .split{grid-template-columns:1fr}
}

.hr{height:1px; background:rgba(255,255,255,.10); margin:14px 0}

.tabs{display:flex; gap:8px; flex-wrap:wrap}
.tab-btn{
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:900;
  cursor:pointer;
  font-size:13px;
}
.tab-btn.active{
  color:var(--text);
  background:linear-gradient(135deg, rgba(110,231,255,.14), rgba(167,139,250,.14));
  border-color:rgba(255,255,255,.12);
}

.notice{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.20);
  color:var(--muted);
  font-size:13px;
  line-height:1.4;
}
.notice strong{color:var(--text)}

.footer{
  padding:26px 0 40px;
  color:var(--muted);
  font-size:12px;
}
.footer .links{display:flex; gap:10px; flex-wrap:wrap}
.pill-link{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--muted);
}
.pill-link:hover{color:var(--text); background:rgba(255,255,255,.06)}

.callout{
  display:flex; align-items:flex-start; gap:10px;
  padding:14px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:linear-gradient(135deg, rgba(110,231,255,.08), rgba(167,139,250,.08));
}
.callout .icon{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.20);
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  color:var(--text);
}
.callout .text{flex:1}
.callout .text .t{font-weight:900; margin-bottom:4px}
.callout .text .d{color:var(--muted); font-size:13px; line-height:1.4}

.chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-size:12px;
  font-weight:900;
}
.chip img{width:18px; height:18px; border-radius:6px}

.spark{
  width:100%;
  height:180px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  overflow:hidden;
}

.two-col{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
}
@media (max-width: 980px){
  .two-col{grid-template-columns:1fr}
}

.three-col{
  display:grid;
  grid-template-columns: 1.35fr .75fr .9fr;
  gap:14px;
}
@media (max-width: 1080px){
  .three-col{grid-template-columns: 1fr}
}

.small-note{font-size:12px; color:var(--muted); line-height:1.4}
.tagrow{display:flex; gap:8px; flex-wrap:wrap}

/* segmented */
.segmented{
  display:inline-flex;
  gap:6px;
  padding:6px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.03);
}
.seg-btn{
  padding:8px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
  color:var(--muted);
  font-weight:900;
  cursor:pointer;
}
.seg-btn.active{
  color:var(--text);
  background:linear-gradient(135deg, rgba(110,231,255,.14), rgba(167,139,250,.14));
  border-color:rgba(255,255,255,.12);
}

/* modal */
.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.modal.hidden{display:none}
.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.62);
}
.modal-panel{
  position:relative;
  width:min(1120px, 100%);
  height:min(88vh, 920px);
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:var(--panel);
  box-shadow:0 18px 70px rgba(0,0,0,.60);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.modal-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  background:var(--panel2);
}
.modal-title{font-weight:900}
.modal-sub{font-size:12px; margin-top:2px}
.modal-body{flex:1; background:var(--bg)}
.modal-body iframe{width:100%; height:100%; border:0; background:var(--bg)}

/* map */
.map-embed{
  width:100%;
  height:260px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  overflow:hidden;
  background:rgba(0,0,0,.18);
}
.map-embed iframe{width:100%; height:100%; border:0; display:block}

/* sparkline */
.sparkline{
  width:160px;
  height:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(0,0,0,.18);
  overflow:hidden;
  display:inline-block;
}
.sparkline svg{width:100%; height:100%; display:block}
@media (max-width:640px){
  .sparkline{width:120px}
}

/* table thumbs */
.table-thumb{
  width:56px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  object-fit:cover;
  background:rgba(0,0,0,.18);
}
.token-thumb{
  width:26px;
  height:26px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  object-fit:cover;
  background:rgba(0,0,0,.18);
}

/* sales highlight */
.profit-card{
  position:relative;
  overflow:hidden;
}
.profit-card:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:linear-gradient(135deg, rgba(110,231,255,.18), rgba(167,139,250,.18));
  filter:blur(18px);
  opacity:.55;
}
.profit-card > .pad{position:relative}
.profit-big{
  font-size:28px;
  font-weight:950;
  letter-spacing:-0.2px;
}
.profit-big small{font-size:14px; color:var(--muted); font-weight:800}
.profit-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(52,211,153,.30);
  background:rgba(52,211,153,.10);
  color:var(--text);
  font-weight:950;
}
