*{box-sizing:border-box;}
body{margin:0;}
body.ui-body{
  font-family:system-ui,-apple-system,"Noto Sans KR",sans-serif;
  background:
          radial-gradient(900px 400px at 80% 0%, rgba(124,92,255,.2), transparent 60%),
          radial-gradient(700px 350px at 10% 10%, rgba(36,211,154,.15), transparent 60%),
          var(--bg);
  color:var(--text);
  min-height:100vh;
}
body.ui-body.bg-fixed{
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

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

.container{
  width:min(1100px,92vw);
  margin:0 auto;
}

.card-surface{
  background:var(--panel);
  border-radius:var(--radius-lg);
  border:1px solid var(--line);
  box-shadow:var(--shadow);
}
.card-surface.secondary{
  background:var(--panel-2);
}
.card-surface.flat{
  box-shadow:none;
}
.card-surface.outline{
  background:transparent;
  border:1px solid var(--line);
  box-shadow:none;
}
.card-surface.glow{
  box-shadow:0 10px 30px rgba(124,92,255,.25);
  border-color:rgba(124,92,255,.35);
}
.card-surface.tight{
  padding:14px 14px 13px;
  box-shadow:0 10px 30px rgba(0,0,0,.65);
}

.section-center{
  width:min(820px, 92vw);
  margin:0 auto;
  text-align:center;
}
.section-center .section-kicker{
  font-size:11px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:10px;
}
.section-center .section-title{
  font-size:34px;
  line-height:1.25;
  font-weight:900;
  margin-bottom:14px;
}
.section-center .section-subtitle{
  font-size:14px;
  color:var(--muted);
  line-height:1.9;
  margin:0 auto 22px;
  max-width:660px;
}
@media (max-width: 900px){
  .section-center .section-title{ font-size:28px; }
}
@media (max-width: 600px){
  .section-center .section-title{ font-size:22px; }
  .section-center .section-subtitle{ font-size:13px; }
}

.section-title{
  font-size:14px;
  font-weight:600;
  margin-bottom:4px;
}
.section-hint{
  font-size:12px;
  color:var(--muted);
}
.section-title.large{
  font-size:18px;
  font-weight:800;
  margin-bottom:12px;
}
@media (max-width: 900px){
  .section-title.large{ font-size:16px; }
}
@media (max-width: 600px){
  .section-title.large{ font-size:15px; }
}
.section-title.xl{
  font-size:22px;
  font-weight:900;
  margin-bottom:12px;
}
@media (max-width: 900px){
  .section-title.xl{ font-size:20px; }
}
@media (max-width: 600px){
  .section-title.xl{ font-size:18px; }
}
.section-title.spaced{
  margin-top:40px;
  margin-bottom:14px;
}

.header-right{
  display:flex;
  align-items:center;
  gap:10px;
}
.header-nav-links{
  display:flex;
  align-items:center;
  gap:8px;
}

.profile-menu{ position:relative; }

.profile-avatar-btn{
  width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid var(--line);
  padding:0;
  background:rgba(255,255,255,0.04);
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease;
}
.profile-avatar-btn:hover{
  transform:translateY(-1px);
  border-color:var(--accent);
  box-shadow:0 6px 18px rgba(0,0,0,.6);
}
.profile-avatar-btn img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.profile-avatar-initial{
  font-size:13px;
  font-weight:700;
  color:var(--text);
}

.profile-dropdown{
  position:absolute;
  top:120%;
  right:0;
  min-width:210px;
  background:var(--profile-dropdown-bg, var(--panel-2));
  border-radius:12px;
  border:1px solid var(--line);
  box-shadow:0 14px 40px rgba(0,0,0,.9);
  padding:6px 0;
  opacity:0;
  pointer-events:none;
  transform:translateY(-6px) translateZ(0);
  transition:opacity .16s ease, transform .16s ease;
  z-index:9999;
}
.profile-dropdown.open{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0) translateZ(0);
}

.profile-group-title{
  padding:8px 12px 6px;
  font-size:11px;
  color:var(--muted);
  letter-spacing:.12em;
  text-transform:uppercase;
}
.profile-divider{
  height:1px;
  margin:6px 0;
  background:rgba(255,255,255,.08);
}

.profile-item{
  width:100%;
  padding:8px 12px;
  text-align:left;
  background:transparent;
  border:none;
  color:var(--text);
  font-size:13px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.profile-item span{
  color:var(--muted);
  font-size:11px;
}
.profile-item:hover{
  background:rgba(255,255,255,.06);
}

.back-link{
  font-size:13px;
  color:var(--muted);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:4px;
}
.back-link:hover{ color:var(--text); }

.primary-btn,
.ghost-btn{
  min-width:90px;
  padding:7px 13px;
  border-radius:999px;
  border:0;
  font-size:13px;
  cursor:pointer;
}
.primary-btn{
  background:var(--accent);
  color:white;
}
.primary-btn:hover{ background:#8a6dff; }
.primary-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  filter:grayscale(0.25);
  box-shadow:none;
}
.ghost-btn{
  background:transparent;
  color:var(--muted);
  border:1px solid var(--line);
}
.ghost-btn:hover{
  border-color:var(--accent);
  color:var(--text);
}

.login-btn{
  padding:6px 14px;
  font-size:13px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.06);
  color:var(--text);
  cursor:pointer;
  font-weight:600;
  transition:background .15s ease, border-color .15s ease, transform .12s ease;
}
.login-btn:hover{
  background:rgba(124,92,255,0.22);
  border-color:var(--accent);
  transform:translateY(-1px);
}

.page-inner{
  width:min(1100px,92vw);
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.page-main{
  flex:1;
  width:min(1100px,92vw);
  margin:0 auto;
  padding:26px 0 40px;
}

.page-shell{
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
.page-shell.centered{
  align-items:center;
}

header.top-header{
  width:100%;
  border-bottom:1px solid var(--line);
  background:rgba(11,12,15,.9);
  backdrop-filter:blur(8px);
  padding:16px 0;
}

.wrap{
  width:min(1180px, 92vw);
  margin:0 auto;
}
.wrap.tight{ margin:24px auto 80px; }
.wrap.medium{ margin:28px auto 60px; }
.wrap.loose{ margin:28px auto 70px; }

.btn{
  border-radius:8px;
  border:1px solid var(--line);
  background:transparent;
  padding:6px 12px;
  font-size:12px;
  cursor:pointer;
  color:var(--text);
}
.btn.pill{
  border-radius:999px;
  background:rgba(255,255,255,.06);
  padding:6px 14px;
}
.btn.primary{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}
.btn.primary:hover{ background:#8a6dff; }
.btn:hover{ border-color:var(--accent); }
.btn.secondary{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);
}
.btn.danger{
  border-color:rgba(255,120,120,.35);
  background:rgba(255,120,120,.12);
  color:#ffd6d6;
}
.btn.shadow{
  box-shadow:0 6px 18px rgba(0,0,0,.28);
}
.btn.lg{
  padding:10px 12px;
  font-size:13px;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.header-inner.wide{
  width:min(1180px, 92vw);
  margin:0 auto;
}
.header-title{
  font-size:16px;
  font-weight:700;
}
.header-title.compact{
  font-size:15px;
  font-weight:600;
  letter-spacing:-.2px;
}
