/* 깜빡임 방지 */
.nav-right .login-btn, .nav-right .user-menu { opacity: 0; transition: opacity 0.15s; }
html.is-logged-in .nav-right .login-btn { display: none !important; }
html.is-logged-in .nav-right .user-menu { display: flex !important; opacity: 1 !important; }
html.is-logged-out .nav-right .login-btn { opacity: 1; }
html.is-logged-out .nav-right .user-menu { display: none !important; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
}
header {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo:hover {
  opacity: 0.8;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5B4EFF 0%, #8B5CF6 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg {
  width: 20px;
  height: 20px;
  color: #fff;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-title {
  font-size: 22px;
  font-weight: 800;
  color: #5B4EFF;
}
.logo-tagline {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu > a,
.nav-menu .dropdown-trigger {
  color: #555;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-menu > a:hover,
.nav-menu .dropdown-trigger:hover {
  color: #5B4EFF;
}
.dropdown {
  position: relative;
}
.dropdown-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s;
}
.dropdown:hover .dropdown-trigger svg {
  transform: rotate(180deg);
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 12px;
  min-width: 320px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  margin-top: 12px;
}
.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 8px;
}
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #fff;
}
.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.2s;
}
.dropdown-menu a:hover {
  background: #5B4EFF;
  color: #fff;
}
.dropdown-menu a:hover .menu-icon {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.dropdown-menu a:hover .menu-desc {
  color: rgba(255,255,255,0.8);
}
.dropdown-menu .menu-icon {
  width: 40px;
  height: 40px;
  background: #f3f4f6;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5B4EFF;
  flex-shrink: 0;
  transition: all 0.2s;
}
.dropdown-menu .menu-icon svg {
  width: 20px;
  height: 20px;
}
.dropdown-menu .menu-text {
  display: flex;
  flex-direction: column;
}
.dropdown-menu .menu-title {
  font-weight: 600;
  font-size: 15px;
}
.dropdown-menu .menu-desc {
  font-size: 13px;
  color: #6b7280;
  font-weight: 400;
  margin-top: 2px;
  transition: color 0.2s;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  color: #333;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 200;
  padding: 24px;
  flex-direction: column;
}
.mobile-menu.active {
  display: flex;
}
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-menu-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu-links a {
  padding: 16px;
  color: #333;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
}
.mobile-menu-links a:hover {
  background: #f3f4f6;
}
.mobile-menu-cta {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #eee;
}
.mobile-menu-cta .login-btn {
  width: 100%;
  text-align: center;
  padding: 16px;
  font-size: 16px;
}
.login-btn {
  padding: 10px 24px;
  background: #5B4EFF;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.login-btn:hover {
  background: #4838CC;
}
.user-menu {
  display: none;
  align-items: center;
  gap: 12px;
}
.user-menu.active {
  display: flex;
}
.user-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #5B4EFF 0%, #8B5CF6 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
}
.user-name {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dashboard-btn {
  padding: 8px 16px;
  background: rgba(91, 78, 255, 0.1);
  color: #5B4EFF;
  border: 1px solid rgba(91, 78, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.dashboard-btn:hover {
  background: rgba(91, 78, 255, 0.15);
}
.logout-btn {
  padding: 8px 12px;
  background: transparent;
  color: #666;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.logout-btn:hover {
  background: #f3f4f6;
  color: #333;
}

/* Content */
.page-header {
  background: linear-gradient(180deg, #f8f9ff 0%, #fff 100%);
  padding: 60px 30px 40px;
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.page-header p {
  color: #666;
  font-size: 16px;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 30px 80px;
}
.content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #e5e7eb;
  line-height: 1.8;
}
h2 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 16px;
  color: #1a1a1a;
  padding-bottom: 8px;
  border-bottom: 2px solid #5B4EFF;
  display: inline-block;
}
h2:first-child {
  margin-top: 0;
}
h3 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 20px;
  margin-bottom: 12px;
  color: #333;
}
p {
  margin-bottom: 12px;
  color: #444;
}
ul {
  margin-left: 20px;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
  color: #444;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}
th, td {
  border: 1px solid #e5e7eb;
  padding: 12px;
  text-align: left;
  font-size: 14px;
}
th {
  background: #f9fafb;
  font-weight: 600;
}

/* Footer */
footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 60px 40px 40px;
}

/* Mobile */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }
  .page-header {
    padding: 40px 20px 30px;
  }
  .page-header h1 {
    font-size: 28px;
  }
  .container {
    padding: 24px 16px 60px;
  }
  .content {
    padding: 24px 20px;
  }
  h2 {
    font-size: 16px;
  }
  table {
    font-size: 12px;
  }
  th, td {
    padding: 8px;
  }
  footer {
    padding: 40px 16px 24px !important;
  }
  footer > div > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  footer > div > div:last-child {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
}
