:root{
  --bg:#0b1220;
  --card:#0f1b31;
  --text:#e7eefc;
  --muted:#9fb0d0;
  --line:#213255;
  --brand:#4f8cff;
  --brand2:#7c5cff;
  --danger:#ff5a6a;
  --ok:#3ddc97;
  --warn:#ffcc66;

  --r:14px;
  --shadow: 0 8px 24px rgba(0,0,0,.25);
  --w: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: radial-gradient(1000px 600px at 20% -10%, rgba(79,140,255,.25), transparent 60%),
              radial-gradient(900px 600px at 90% 0%, rgba(124,92,255,.18), transparent 55%),
              var(--bg);
  color:var(--text);
  font: 14.5px/1.6 system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }

.container{
  width: min(var(--w), calc(100% - 32px));
  margin: 0 auto;
}

.stack{ display:flex; flex-direction:column; gap:14px; }
.stack--sm{ gap:10px; }

.page{ padding: 28px 0 48px; }

.h1{ font-size: 28px; line-height:1.2; margin:0; }
.h2{ font-size: 18px; line-height:1.2; margin:0; }
.p-muted{ color: var(--muted); margin:6px 0 0; }

.card{
  background: rgba(15,27,49,.85);
  border: 1px solid rgba(33,50,85,.9);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px;
}

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

.nav{
  position: sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.55);
  border-bottom: 1px solid rgba(33,50,85,.55);
}
.nav__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 12px 0;
  gap: 14px;
}
.nav__brand{
  display: flex;
  align-items: center;
}
.nav__logo {
  height: 28px;          /* 헤더 높이(70px)에 가장 안정적 */
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.15));
}
.nav__links{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}
.nav__pill{
  padding:6px 10px;
  border: 1px solid rgba(33,50,85,.8);
  border-radius: 999px;
  background: rgba(15,27,49,.7);
}

.nav__dropdown{ 
  position:relative; 
}
.nav__dropdown_btn{
  background: transparent;
  border: 1px solid rgba(33,50,85,.8);
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  cursor:pointer;
  transition: all 0.15s ease-out;
}
.nav__dropdown_btn:hover{
  border-color: rgba(33,50,85,1);
  background: rgba(79,140,255,.08);
}
.nav__dropdown_btn[aria-expanded="true"]{
  border-color: rgba(79,140,255,.5);
  background: rgba(79,140,255,.12);
}
.nav__dropdown_menu{
  display:none;
  position:absolute;
  right:0;
  top: 36px;
  min-width: 160px;
  background: rgba(15,27,49,.95);
  border: 1px solid rgba(33,50,85,.9);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-out;
  z-index: 10;
}
.nav__dropdown:hover .nav__dropdown_menu,
.nav__dropdown_btn[aria-expanded="true"] ~ .nav__dropdown_menu{
  display:block;
  opacity: 1;
  pointer-events: auto;
}
.nav__dropdown_menu a{
  display:block;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.1s ease-out;
}
.nav__dropdown_menu a:hover{
  background: rgba(79,140,255,.12);
  text-decoration:none;
}

.nav__logout{ display:inline; margin:0; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(79,140,255,.7);
  background: linear-gradient(135deg, rgba(79,140,255,.9), rgba(124,92,255,.85));
  color: #081022;
  font-weight: 700;
  cursor:pointer;
}
.btn:hover{ filter: brightness(1.03); text-decoration:none; }
.btn--ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover{
  background: color-mix(in srgb, var(--brand), transparent 92%);
}
.btn--danger{
  background: rgba(255,90,106,.12);
  border-color: rgba(255,90,106,.55);
  color: var(--text);
}

.form{ display:flex; flex-direction:column; gap: 12px; }

.field label{
  display:block;
  margin-bottom:6px;
  color: var(--muted);
  font-size: 13px;
}
.field input, .field select, .field textarea{
  width:100%;
  padding: 10px 11px;
  border-radius: 12px;
  border: 1px solid rgba(33,50,85,.9);
  background: rgba(11,18,32,.55);
  color: var(--text);
  outline: none;
}
.help, .error{ font-size: 13px; margin-top:6px; }
.error{ color: #ff9aa4; }

.alert{
  border-radius: 12px;
  border: 1px solid rgba(33,50,85,.9);
  background: rgba(15,27,49,.75);
  padding: 10px 12px;
}
.alert--success{ border-color: rgba(61,220,151,.45); background: rgba(61,220,151,.08); }
.alert--error{ border-color: rgba(255,90,106,.45); background: rgba(255,90,106,.08); }
.alert--warning{ border-color: rgba(255,204,102,.45); background: rgba(255,204,102,.08); }
.alert--info{ border-color: rgba(79,140,255,.45); background: rgba(79,140,255,.08); }

.table-wrap{ overflow-x:auto; border-radius: var(--r); border: 1px solid rgba(33,50,85,.9); }
table{ width:100%; border-collapse: collapse; min-width: 720px; background: rgba(15,27,49,.65); }
th, td{ padding: 10px 12px; border-bottom: 1px solid rgba(33,50,85,.6); text-align:left; }
th{ color: var(--muted); font-weight: 700; font-size: 13px; }
tr:hover td{ background: rgba(79,140,255,.06); }

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(33,50,85,.9);
  background: rgba(11,18,32,.6);
  font-size: 12.5px;
}
.badge--ok{ border-color: rgba(61,220,151,.55); background: rgba(61,220,151,.08); }
.badge--fail{ border-color: rgba(255,90,106,.55); background: rgba(255,90,106,.08); }
.badge--mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.pagination{
  display:flex;
  gap: 8px;
  align-items:center;
  justify-content:flex-end;
}
.page-link{
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(33,50,85,.9);
  background: rgba(15,27,49,.65);
}
.page-link[aria-current="page"]{
  border-color: rgba(79,140,255,.7);
  background: rgba(79,140,255,.12);
}

.footer{
  border-top: 1px solid rgba(33,50,85,.55);
  margin-top: 44px;
  padding: 18px 0 26px;
  background: rgba(11,18,32,.35);
  flex-shrink: 0;
}
.footer__inner{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__row{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer__links{ display:flex; gap: 12px; color: var(--muted); }
.footer__meta{ color: var(--muted); }

.footer__nav{
  display: flex;
  gap: 40px;
}

.footer__groups{
  display: flex;
  gap: 40px;
}

.footer__group{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer__groupTitle{
  font-weight: 700;
  font-size: 13px;
}

.footer__linklist{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.footer__linklist a{
  color: var(--footer-text);
}

.footer__company{
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 520px;
}

.footer__brand{
  font-weight: 800;
  letter-spacing: .2px;
}

.footer__info{
  display: grid;
  gap: 4px;
  color: var(--footer-muted);
  font-size: 13px;
}

.footer__contact{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 13px;
}

.footer__bottom{
  border-top: 1px solid var(--footer-border);
  padding-top: 10px;
  font-size: 12px;
  color: var(--footer-muted);
}

/* Desktop: nav/groups 우측 정렬 */
@media (min-width: 820px){
  .footer__nav{ justify-content: flex-end; }
}

/* Mobile: 컬럼 스택 + 좌측 정렬 */
@media (max-width: 820px){
  .footer__row{
    flex-direction: column;
    gap: 18px;
  }

  .footer__nav{ justify-content: flex-start; }
  .footer__groups{
    gap: 24px;
  }
}

/* ===== Primary CTA (Hero + Nav unified) ===== */
.btn--primary,
.btn{
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand), #ffffff 12%),
    var(--brand)
  );
  color: #ffffff;
  border: 1px solid color-mix(in srgb, var(--brand), #000000 12%);
  box-shadow:
    0 1px 0 rgba(255,255,255,.25) inset,
    0 6px 14px rgba(46,125,98,.25);
}

.btn--primary:hover,
.btn:hover{
  filter: brightness(1.03);
}

.btn--primary:active,
.btn:active{
  transform: translateY(1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 3px 8px rgba(46,125,98,.25);
}