:root{
  --bg:#0b1020;
  --panel:rgba(255,255,255,.06);
  --stroke:rgba(255,255,255,.12);
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.65);
  --accent:#8cf5ff;
}

*{box-sizing:border-box}
html,body{height:100%}
body.page{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(140,245,255,.18), transparent 60%),
    radial-gradient(1000px 700px at 80% 10%, rgba(166,129,255,.14), transparent 55%),
    radial-gradient(900px 800px at 60% 90%, rgba(120,255,187,.10), transparent 55%),
    var(--bg);
}

.container{
  width:min(980px, 92vw);
  margin:0 auto;
  padding:32px 0 64px;
}

.hero{
  padding:28px 22px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  border-radius:18px;
  backdrop-filter: blur(10px);
}
.hero__title{margin:0 0 10px; font-size:28px; letter-spacing:-.3px}
.hero__desc{margin:0; color:var(--muted)}

.section{margin-top:18px}
.section__head{display:flex; flex-direction:column; gap:6px; margin-bottom:10px}
.section__title{margin:0; font-size:16px; letter-spacing:-.2px}
.section__title--sub{margin-top:14px}
.section__desc{margin:8px 0 0; color:var(--muted); line-height:1.55}
.section__hint{margin:0; color:var(--muted); font-size:12px; line-height:1.4}

.bullets{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
  line-height:1.6;
}
.bullets strong{color:var(--text)}

.grid{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){ .grid{grid-template-columns:1fr;} }
.panel--compact{padding:14px 14px}
.kpi__title{font-weight:800; font-size:14px}
.kpi__desc{margin-top:6px; color:var(--muted); line-height:1.45}

.notice{
  margin-top:12px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border-radius:16px;
  padding:14px 14px;
  display:grid;
  gap:8px;
}
.notice__item{color:var(--muted); line-height:1.5}
.notice__item strong{color:var(--text)}

.tableWrap{
  margin-top:12px;
  overflow:auto;
  border-radius:16px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
}
.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  min-width: 760px;
}
.table th,.table td{
  padding:12px 12px;
  border-bottom:1px solid rgba(255,255,255,.10);
  vertical-align:top;
}
.table th{
  text-align:left;
  font-size:12px;
  letter-spacing:.2px;
  color:rgba(255,255,255,.75);
  background: rgba(255,255,255,.06);
  position:sticky;
  top:0;
}
.table td{color:rgba(255,255,255,.88)}
.td-right{text-align:right}

.cards{
  margin-top:18px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:14px;
}
@media (max-width:720px){ .cards{grid-template-columns:1fr;} }

.card{
  display:block;
  padding:18px 16px;
  border-radius:16px;
  border:1px solid var(--stroke);
  background:var(--panel);
  text-decoration:none;
  color:inherit;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: rgba(140,245,255,.45);
  background: rgba(255,255,255,.08);
}
.card__title{font-weight:700; font-size:16px}
.card__desc{margin-top:6px; color:var(--muted); line-height:1.4}

.footer{margin-top:26px; color:var(--muted)}

.topbar{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:14px;
}
.topbar__back{
  width:34px;height:34px;
  display:grid;place-items:center;
  border:1px solid var(--stroke);
  border-radius:10px;
  color:var(--text);
  text-decoration:none;
  background:var(--panel);
}
.topbar__title{margin:0; font-size:20px}

.panel{
  border:1px solid var(--stroke);
  background:var(--panel);
  border-radius:18px;
  padding:18px 16px;
  backdrop-filter: blur(10px);
}

/* 오류 전용: 제목·안내 문구·버튼 사이 간격을 고정(겹침/밀집 방지) */
.panel--error{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:16px;
}
.panel--error .section__title{margin:0; line-height:1.35}
.panel--error .section__desc{margin:0; max-width:62ch}
.panel--error .button{margin-top:0}
a.button{display:inline-block; text-decoration:none}

.form{display:grid; gap:12px}
.field{display:grid; gap:6px}
.label{font-size:13px; color:var(--muted)}
.input,.textarea,.select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color:var(--text);
  outline:none;
}
.input:focus,.textarea:focus,.select:focus{border-color: rgba(140,245,255,.55)}
.textarea{resize:vertical; min-height:120px}

.button{
  margin-top:4px;
  padding:11px 14px;
  border-radius:12px;
  border:1px solid rgba(140,245,255,.55);
  background: linear-gradient(180deg, rgba(140,245,255,.24), rgba(140,245,255,.12));
  color:var(--text);
  font-weight:700;
  cursor:pointer;
}
.button:hover{filter:brightness(1.06)}

.hint{margin:0; font-size:12px; color:var(--muted); line-height:1.4}

.flash{
  margin-bottom:12px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(0,0,0,.18);
  color: var(--text);
}
.flash--ok{border-color: rgba(120,255,187,.35)}
.flash--err{border-color: rgba(255,120,120,.35)}

.hp{
  position:absolute !important;
  left:-10000px !important;
  top:auto !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.turnstile{
  display:flex;
  align-items:center;
  min-height: 66px;
}

.moduleCatalog{display:grid; gap:12px}
.moduleGroup{
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:12px 12px;
  background: rgba(0,0,0,.10);
}
.moduleGroup__title{
  font-weight:800;
  font-size:13px;
  letter-spacing:.2px;
  color: rgba(255,255,255,.85);
  margin-bottom:10px;
}
.moduleGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
@media (max-width:720px){ .moduleGrid{grid-template-columns:1fr;} }
.moduleItem{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  cursor:pointer;
}
.moduleItem:hover{border-color: rgba(140,245,255,.35)}
.moduleItem--locked{
  opacity:.78;
  cursor:not-allowed;
}
.moduleItem--locked:hover{border-color: rgba(255,255,255,.10)}
.moduleItem input{margin-top:3px}
.moduleItem input:disabled{cursor:not-allowed}
.moduleItem__name{font-weight:800}
.moduleItem__price{margin-left:auto; color:rgba(255,255,255,.70); font-size:12px}

/* 결과 알림 레이어 */
body.help-modal-open{overflow:hidden}

.helpModal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-items:center;
  padding:24px 16px;
}
.helpModal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.58);
  backdrop-filter:blur(5px);
}
.helpModal__panel{
  position:relative;
  width:min(440px, 100%);
  max-height:min(72vh, 520px);
  display:flex;
  flex-direction:column;
  border-radius:18px;
  border:1px solid var(--stroke);
  background:linear-gradient(180deg, rgba(22,28,48,.98), rgba(14,18,32,.96));
  padding:22px 20px 18px;
  box-shadow:0 24px 64px rgba(0,0,0,.5);
}
.helpModal__panel--ok{border-color:rgba(120,255,187,.4)}
.helpModal__panel--err{border-color:rgba(255,140,140,.45)}
.helpModal__title{
  margin:0 0 12px;
  font-weight:800;
  font-size:17px;
  letter-spacing:-.2px;
}
.helpModal__body{
  margin:0 0 20px;
  flex:1;
  min-height:0;
  overflow:auto;
  color:var(--text);
  line-height:1.55;
  font-size:14px;
  white-space:pre-wrap;
  word-break:break-word;
}
.helpModal__actions{
  display:flex;
  justify-content:flex-end;
  flex-shrink:0;
}
.helpModal__btn{
  min-width:100px;
  padding:11px 20px;
  border-radius:12px;
  border:1px solid rgba(140,245,255,.55);
  background:linear-gradient(180deg, rgba(140,245,255,.28), rgba(140,245,255,.12));
  color:var(--text);
  font-weight:700;
  font-size:14px;
  cursor:pointer;
  font-family:inherit;
}
.helpModal__btn:hover{filter:brightness(1.08)}
.helpModal__btn:focus-visible{
  outline:2px solid rgba(140,245,255,.65);
  outline-offset:2px;
}
