:root{
  --bg:#0b1220;
  --card:#121b2e;
  --text:#e8eefc;
  --muted:#a9b6d3;
  --accent:#66e3b4;
  --danger:#ff6b6b;
  --line:rgba(255,255,255,.10);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", Segoe UI, Roboto, Arial, "Malgun Gothic", sans-serif;
  background: radial-gradient(900px 600px at 15% 10%, rgba(102,227,180,.15), transparent 60%),
              radial-gradient(900px 600px at 90% 20%, rgba(102,153,227,.14), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}
.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 14px 16px;
  border:1px solid var(--line);
  background: rgba(18,27,46,.75);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 800;
  letter-spacing: .2px;
}
.badge{
  font-size:12px;
  color:var(--bg);
  background: var(--accent);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 800;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav a{
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
}
.nav a.active{
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.04);
}

.hero{
  margin-top: 16px;
  padding: 18px;
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(18,27,46,.55);
  box-shadow: var(--shadow);
}

.grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 860px){
  .grid{grid-template-columns: 1fr;}
  .nav{justify-content:flex-start;}
}

.card{
  border:1px solid var(--line);
  border-radius: 16px;
  background: rgba(18,27,46,.55);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card h2{
  margin: 0 0 10px 0;
  font-size: 18px;
}

.label{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin: 10px 0 6px;
}

.row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 520px){
  .row{grid-template-columns:1fr;}
}

input, select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(11,18,32,.35);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{
  border-color: rgba(102,227,180,.55);
  box-shadow: 0 0 0 3px rgba(102,227,180,.12);
}

.actions{
  display:flex;
  gap:10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
button{
  cursor:pointer;
  border:none;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 800;
}
button.primary{
  background: var(--accent);
  color: var(--bg);
}
button.ghost{
  background: rgba(255,255,255,.08);
  color: var(--text);
  border:1px solid var(--line);
}

.notice{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.error{
  margin-top: 10px;
  font-size: 13px;
  color: var(--danger);
  font-weight: 700;
}

.kpi{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (max-width: 520px){
  .kpi{grid-template-columns:1fr;}
}
.kpi .box{
  border:1px solid var(--line);
  border-radius: 14px;
  background: rgba(11,18,32,.25);
  padding: 12px;
}
.kpi .box .k{
  font-size: 12px;
  color: var(--muted);
}
.kpi .box .v{
  margin-top: 4px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .2px;
}

.footer{
  margin: 18px 0 10px;
  color: var(--muted);
  font-size: 12px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  justify-content:space-between;
  opacity: .95;
}
.footer .links{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}
small{color: var(--muted)}
