*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #3182f6;
  --blue-light: #e8f3ff;
  --blue-dark: #1b64da;
  --black: #191f28;
  --gray: #4e5968;
  --gray-2: #8b95a1;
  --border: #e5e8eb;
  --white: #ffffff;
}

body {
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--black);
  background: #fff;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

.fade-on {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1.1s ease, transform 1.1s ease;
  transition-delay: var(--fade-delay, 0s);
}

.fade-on.show {
  opacity: 1;
  transform: translateY(0);
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 48px;
  height: 75px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-left: 40px;
}

.nav-logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 44px;
  list-style: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray);
}

.nav-links a {
  text-decoration: none;
  color: inherit;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--black);
}

.nav-actions {
  display: flex;
  align-items: center;
}

.btn-ghost {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--gray);
}

.btn-ghost:hover {
  color: var(--black);
}

.mobile-login {
  display: none;
}

/* HAMBURGER */
.hamburger {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  z-index: 120;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 999px;
  transition: 0.25s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  nav {
    height: 64px;
    min-height: 64px;
    padding: 0 18px;
  }

  .nav-logo {
    margin-left: 0;
    z-index: 121;
  }

  .nav-logo-img {
    height: 40px;
  }

  .hamburger {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 18px;
    left: auto;
    transform: none;
    width: 220px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
    background: rgba(255,255,255,0.98);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(25,31,40,0.12);
    overflow: hidden;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 18px;
    font-size: 15px;
  }

  .mobile-login {
    display: block;
  }
}

@media (max-width: 430px) {
  nav {
    height: 60px;
    min-height: 60px;
    padding: 0 14px;
  }

  .nav-logo-img {
    height: 35px;
  }

  .nav-links {
    top: 60px;
    right: 14px;
    width: 210px;
  }

  .nav-links a {
    min-height: 46px;
    font-size: 14px;
  }
}

/* 로그인 후 우측 사용자 메뉴 */
.nav-user-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-user-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray);
  line-height: 1;
  white-space: nowrap;
}

.nav-user-link:hover,
.nav-user-link.active {
  color: var(--black);
}

.nav-user-divider {
  width: 1px;
  height: 14px;
  background: var(--border);
  display: inline-block;
}