/* =============================================================
   ww-header.css — W-WEBSOFT Theme
   헤더 + 네비게이션 오버레이 + 푸터 (통합 단일 파일)
   v5.1 디자인 시스템 정렬 2026-03
   클래스 네임스페이스: .ww-hdr__* / .ftg-* (단일 계층, 충돌 없음)
   기반 토큰: ww-tokens.css (--ww-* 변수 참조)
   ============================================================= */

/* ─────────────────────────────────────────────────────────────
   0. 헤더 전용 토큰 (ww-tokens.css에 없는 헤더/푸터 전용 값만)
   ww-tokens.css의 --ww-primary, --ww-text 등은 중복 금지
   ───────────────────────────────────────────────────────────── */
:root {
  /* 헤더 높이 */
  --ww-hdr-h:        72px;
  --ww-hdr-h-mobile: 60px;
  /* 헤더 이징 (ww-tokens.css에 없는 헤더 전용) */
  --ww-easing:       cubic-bezier(0.4, 0, 0.2, 1);
  --ww-spring:       cubic-bezier(0.34, 1.56, 0.64, 1);
  /* 스크롤 진행바 그라디언트 */
  --ww-hdr-gradient: linear-gradient(90deg, #1057f5 0%, #7c3aed 45%, #ec4899 75%, #f59e0b 100%);
}
/* 다크모드 오버라이드는 ww-darkmode.css / ww-tokens.css에서 처리 */

/* ─────────────────────────────────────────────────────────────
   1. body 오프셋 + site.css 변수 동기화
   site.css가 --app-header-height(92px)를 쓰므로 실제 헤더 높이로 덮어씀
   ───────────────────────────────────────────────────────────── */
:root {
  --app-header-height: var(--ww-hdr-h); /* site.css --app-overlay-top 연산에 사용 */
}
@media (max-width: 860px) {
  :root { --app-header-height: var(--ww-hdr-h-mobile); }
}
body { padding-top: var(--ww-hdr-h); }
/* fixed 기준점 안정화: body에 transform이 걸리면 fixed가 따라 스크롤될 수 있음 */
html body {
  transform: none !important;
}
@media (max-width: 860px) {
  body {
    padding-top: var(--ww-hdr-h-mobile);
    /* app-control-dock 높이(60px) + safe-area-inset-bottom 여백 */
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
  }
}

/* ─────────────────────────────────────────────────────────────
   2. 헤더 컨테이너
   ───────────────────────────────────────────────────────────── */
.ww-hdr {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ww-hdr-h);
  z-index: 9999;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition:
    background 0.4s var(--ww-easing),
    border-color 0.4s var(--ww-easing),
    box-shadow  0.4s var(--ww-easing),
    transform   0.4s var(--ww-easing);
  isolation: isolate;
  will-change: background, box-shadow;
}
/* site.css/legacy 충돌 방지: 항상 뷰포트 상단 고정 유지 */
#ww-hdr.ww-hdr {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10000 !important;
}
@media (max-width: 860px) {
  .ww-hdr { height: var(--ww-hdr-h-mobile); }
}

/* 스크롤 후 */
.ww-hdr.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(0, 0, 0, 0.09);
  box-shadow: 0 1px 0 rgba(0,0,0,0.05), 0 4px 40px rgba(0,0,0,0.08);
}

/* 홈: 다크 글래스 (비스크롤) */
.page-home .ww-hdr:not(.is-scrolled) {
  background: rgba(4, 8, 20, 0.5);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

/* 서브: 밝은 반투명 (비스크롤) */
.page-sub .ww-hdr:not(.is-scrolled) {
  background: rgba(255, 255, 255, 0.72);
  border-bottom-color: rgba(0, 0, 0, 0.05);
}

/* 다크모드 */
[data-theme="dark"] .ww-hdr {
  background: rgba(8, 12, 28, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .ww-hdr.is-scrolled {
  background: rgba(8, 12, 28, 0.97);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
[data-theme="dark"] .page-home .ww-hdr:not(.is-scrolled) {
  background: rgba(4, 8, 20, 0.65);
}
[data-theme="dark"] .page-sub .ww-hdr:not(.is-scrolled) {
  background: rgba(8, 12, 28, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.05);
}

/* 숨김 (헤더 자동 숨김) */
.ww-hdr.is-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}
.menu-open .ww-hdr.is-hidden {
  transform: none;
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────────
   3. 내부 레이아웃
   모바일: flex (로고 좌측 | 액션 우측)
   데스크탑: grid 3열 (로고 좌 | nav 중앙 | 액션 우)
   ───────────────────────────────────────────────────────────── */
.ww-hdr__inner {
  display: flex;
  align-items: center;
  height: var(--ww-hdr-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
/* 모바일 */
@media (max-width: 860px) {
  .ww-hdr__inner {
    height: var(--ww-hdr-h-mobile);
    padding: 0 14px;
  }
}
@media (max-width: 360px) {
  .ww-hdr__inner { padding: 0 12px; }
}
/* 데스크탑: grid 3열로 nav 완벽 가운데 정렬 */
@media (min-width: 861px) {
  .ww-hdr__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "brand nav actions";
  }
}

/* ─────────────────────────────────────────────────────────────
   4. 로고 영역
   ───────────────────────────────────────────────────────────── */
.ww-hdr__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto; /* 모바일: 로고 좌측 고정 */
}
/* 데스크탑: grid area 사용, margin-right auto 불필요 */
@media (min-width: 861px) {
  .ww-hdr__brand {
    grid-area: brand;
    justify-self: start;
    align-self: center;
    margin-right: 0;
  }
}
.ww-hdr__brand:hover { opacity: 1; }

.ww-hdr__logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.3s var(--ww-spring);
}
.ww-hdr__brand:hover .ww-hdr__logo {
  transform: rotate(-8deg) scale(1.08);
}

.ww-hdr__brand-name {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ww-text);
  line-height: 1;
  transition: color 0.3s ease;
  white-space: nowrap;
}

/* 홈 비스크롤: 흰 텍스트 */
.page-home .ww-hdr:not(.is-scrolled) .ww-hdr__brand-name { color: #ffffff; }
.page-home .ww-hdr.is-scrolled .ww-hdr__brand-name { color: var(--ww-text); }

/* 초소형 기기 */
@media (max-width: 360px) {
  .ww-hdr__brand-name { display: none; }
}

/* ─────────────────────────────────────────────────────────────
   5. 데스크탑 네비게이션
   renderSiteMenus()가 생성하는 구조:
   nav > ul.menu-level-1 > li.menu-item > a
   직접링크(폴백):
   nav > a
   ───────────────────────────────────────────────────────────── */
.ww-hdr__nav {
  display: none; /* 기본: 모바일 숨김 */
}

@media (min-width: 861px) {
  /* nav: grid area 중앙 */
  .ww-hdr__nav {
    grid-area: nav;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* menu-level-1 ul: 가로 flex */
  .ww-hdr__nav .menu-level-1 {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  /* 1차 메뉴 링크 — renderSiteMenus 출력 + 직접링크 폴백 */
  .ww-hdr__nav .menu-level-1 > .menu-item > a,
  .ww-hdr__nav > a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 15px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ww-text-sub);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease;
    white-space: nowrap;
  }
  .ww-hdr__nav .menu-level-1 > .menu-item > a:hover,
  .ww-hdr__nav > a:hover {
    background: rgba(16, 87, 245, 0.09);
    color: var(--ww-primary);
  }
  .ww-hdr__nav .menu-level-1 > .menu-item.is-active > a,
  .ww-hdr__nav .menu-level-1 > .menu-item.is-current > a,
  .ww-hdr__nav > a.is-active {
    background: rgba(16, 87, 245, 0.1);
    color: var(--ww-primary);
  }

  /* 메뉴 아이콘 숨김 (데스크탑) */
  .ww-hdr__nav .menu-link-icon { display: none; }

  /* 홈 비스크롤: 흰 텍스트 */
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__nav .menu-level-1 > .menu-item > a,
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__nav > a {
    color: rgba(255, 255, 255, 0.82);
  }
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__nav .menu-level-1 > .menu-item > a:hover,
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__nav > a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
  }

  /* 다크모드 */
  [data-theme="dark"] .ww-hdr__nav .menu-level-1 > .menu-item > a,
  [data-theme="dark"] .ww-hdr__nav > a {
    color: rgba(238, 243, 255, 0.75);
  }
  [data-theme="dark"] .ww-hdr__nav .menu-level-1 > .menu-item > a:hover,
  [data-theme="dark"] .ww-hdr__nav > a:hover {
    color: #eef3ff;
    background: rgba(255, 255, 255, 0.08);
  }

  /* 서브메뉴 드롭다운 */
  .ww-hdr__nav .menu-level-1 > .menu-item { position: relative; }
  .ww-hdr__nav .menu-level-2 {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.12);
    padding: 8px;
    list-style: none;
    z-index: 100;
  }
  .ww-hdr__nav .menu-level-1 > .menu-item:hover > .menu-level-2 { display: block; }
  .ww-hdr__nav .menu-level-2 .menu-item a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }
  .ww-hdr__nav .menu-level-2 .menu-item a:hover {
    background: rgba(16, 87, 245, 0.07);
    color: var(--ww-primary);
  }
  [data-theme="dark"] .ww-hdr__nav .menu-level-2 {
    background: rgba(14, 20, 40, 0.98);
    border-color: rgba(255, 255, 255, 0.1);
  }
  [data-theme="dark"] .ww-hdr__nav .menu-level-2 .menu-item a { color: rgba(238, 243, 255, 0.8); }
}

/* ─────────────────────────────────────────────────────────────
   6. 우측 액션 영역 (.ww-hdr__actions)
   ───────────────────────────────────────────────────────────── */
.ww-hdr__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
@media (max-width: 860px) {
  .ww-hdr__actions { gap: 4px; }
}
/* 데스크탑: grid area 우측 */
@media (min-width: 861px) {
  .ww-hdr__actions {
    grid-area: actions;
    justify-self: end;
  }
}

/* 로그인 / 회원가입 버튼 */
.ww-hdr__auth-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1.5px solid rgba(16, 87, 245, 0.2);
  color: var(--ww-primary);
  background: transparent;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.2s var(--ww-spring);
}
.ww-hdr__auth-btn:hover {
  background: rgba(16, 87, 245, 0.06);
  border-color: rgba(16, 87, 245, 0.4);
  transform: translateY(-1px);
}
.ww-hdr__auth-btn--cta {
  background: linear-gradient(135deg, #1057f5 0%, #7c3aed 100%);
  border: none;
  color: #fff;
  box-shadow: 0 2px 16px rgba(16, 87, 245, 0.35);
}
.ww-hdr__auth-btn--cta:hover {
  background: linear-gradient(135deg, #0840c8 0%, #6d28d9 100%);
  box-shadow: 0 4px 24px rgba(16, 87, 245, 0.5);
  transform: translateY(-1px);
}
/* 홈 비스크롤 */
.page-home .ww-hdr:not(.is-scrolled) .ww-hdr__auth-btn {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.88);
}
.page-home .ww-hdr:not(.is-scrolled) .ww-hdr__auth-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.page-home .ww-hdr:not(.is-scrolled) .ww-hdr__auth-btn--cta {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}
/* 모바일: auth 버튼 숨김 */
@media (max-width: 860px) {
  .ww-hdr__auth-btn { display: none; }
}

/* 아이콘 버튼 (관리자, 로그아웃 등) */
.ww-hdr__icon-btn,
.hdr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ww-text-sub);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.ww-hdr__icon-btn:hover,
.hdr-icon-btn:hover {
  background: rgba(16, 87, 245, 0.08);
  color: var(--ww-primary);
  transform: translateY(-1px);
}
[data-theme="dark"] .ww-hdr__icon-btn,
[data-theme="dark"] .hdr-icon-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(238, 243, 255, 0.75);
}
.hdr-btn-label { display: none; }
.hdr-logout-form { margin: 0; }

/* ─────────────────────────────────────────────────────────────
   7. 회원 영역 (알림 + 아바타 프로필 카드)
   ───────────────────────────────────────────────────────────── */
.hdr-user-group {
  display: flex;
  align-items: center;
  gap: 6px; /* 알림 + 아바타 + 로그아웃 간격 */
}

/* 알림 버튼 */
.notify-center { position: relative; }
.gng-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--ww-text-sub);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s ease;
  flex-shrink: 0;
}
.gng-notify-btn:hover { background: rgba(16, 87, 245, 0.08); color: var(--ww-primary); }
[data-theme="dark"] .gng-notify-btn {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(238, 243, 255, 0.75);
}
.notify-count {
  position: absolute;
  top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  border-radius: 99px;
  background: #ef4444;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
}
@media (max-width: 860px) {
  .gng-notify-btn { width: 34px; height: 34px; font-size: 0.9rem; }
}

/* 알림 패널 */
.notify-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-height: 420px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  overflow-y: auto;
  z-index: 500;
}
[data-theme="dark"] .notify-panel {
  background: rgba(14, 20, 40, 0.98);
  border-color: rgba(255,255,255,0.1);
}
.notify-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.notify-clear {
  font-size: 0.78rem;
  color: #6b7280;
  background: none;
  border: none;
  cursor: pointer;
}
.notify-list { list-style: none; margin: 0; padding: 8px; }
.notify-empty { padding: 20px; text-align: center; color: #9ca3af; font-size: 0.88rem; }

/* 아바타 + 프로필 패널 래퍼 */
.profile-center {
  position: relative;
  display: flex;
  align-items: center;
}
.gng-avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ww-primary), var(--ww-secondary));
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  flex-shrink: 0;
}
.gng-avatar-chip:hover {
  border-color: rgba(16, 87, 245, 0.4);
  transform: translateY(-1px);
}
.gng-avatar-chip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .gng-avatar-chip { width: 32px; height: 32px; border-radius: 9px; }
}

/* 프로필 패널 */
.profile-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 300px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(0,0,0,0.09);
  border-radius: 18px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.14);
  overflow: hidden;
  z-index: 500;
}
[data-theme="dark"] .profile-panel {
  background: rgba(14, 20, 40, 0.98);
  border-color: rgba(255,255,255,0.1);
}
.profile-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.profile-panel-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.profile-panel-avatar { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--ww-primary), var(--ww-secondary)); flex-shrink: 0; }
.profile-panel-usertext { flex: 1; min-width: 0; }
.profile-panel-usertext strong { display: block; font-size: 0.9rem; font-weight: 700; color: var(--ww-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-panel-usertext small { font-size: 0.78rem; color: #6b7280; }
.profile-panel-social { display: flex; gap: 8px; margin-top: 4px; font-size: 0.75rem; color: #9ca3af; }
.profile-panel-close { background: none; border: none; cursor: pointer; font-size: 1.1rem; color: #9ca3af; line-height: 1; padding: 4px; border-radius: 6px; }
.profile-panel-close:hover { background: rgba(0,0,0,0.06); color: #374151; }

.profile-tabs { display: flex; border-bottom: 1px solid rgba(0,0,0,0.06); }
.profile-tab { flex: 1; padding: 10px 4px; background: none; border: none; font-size: 0.78rem; font-weight: 600; color: #9ca3af; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 4px; transition: color 0.18s ease; border-bottom: 2px solid transparent; }
.profile-tab.is-active { color: var(--ww-primary); border-bottom-color: var(--ww-primary); }
.profile-tab-badge { background: #ef4444; color: #fff; border-radius: 99px; font-size: 0.65rem; padding: 0 4px; min-width: 14px; height: 14px; display: inline-flex; align-items: center; justify-content: center; }

.profile-panels { max-height: 300px; overflow-y: auto; }
.profile-panel-body { padding: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.profile-stat { text-align: center; padding: 10px 6px; background: rgba(0,0,0,0.03); border-radius: 10px; position: relative; cursor: pointer; }
.profile-stat-icon { font-size: 1rem; }
.profile-stat-value { font-size: 0.8rem; font-weight: 700; color: var(--ww-text); margin-top: 2px; }
.profile-stat-value small { display: block; font-size: 0.65rem; font-weight: 400; color: #9ca3af; }
.profile-stat-title { font-size: 0.7rem; color: #9ca3af; }
.profile-stat-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10,20,40,0.95);
  color: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.75rem;
  width: 140px;
  text-align: left;
  z-index: 100;
}
.profile-stat:hover .profile-stat-tip { display: block; }
.profile-stat-tip-title { font-weight: 700; margin-bottom: 2px; }
.profile-stat-tip-desc { font-size: 0.7rem; color: rgba(255,255,255,0.75); }

.profile-links { display: flex; flex-direction: column; gap: 4px; }
.profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ww-text-sub);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.profile-link:hover { background: rgba(16, 87, 245, 0.07); color: var(--ww-primary); }
.profile-link button { all: unset; display: flex; align-items: center; gap: 8px; cursor: pointer; width: 100%; }

.profile-list { display: flex; flex-direction: column; gap: 6px; }
.profile-empty { text-align: center; padding: 20px; font-size: 0.84rem; color: #9ca3af; }
.profile-more { display: block; text-align: center; padding: 10px; font-size: 0.82rem; color: var(--ww-primary); text-decoration: none; border-top: 1px solid rgba(0,0,0,0.06); }
.profile-action { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 12px; background: rgba(16, 87, 245, 0.07); border: none; border-radius: 8px; font-size: 0.84rem; font-weight: 600; color: var(--ww-primary); cursor: pointer; margin-bottom: 10px; }
.profile-cart-total { text-align: right; font-size: 0.84rem; font-weight: 700; padding: 8px 12px; color: var(--ww-text); }
.profile-pager { display: flex; align-items: center; gap: 8px; justify-content: center; padding: 8px 0; }
.profile-pager-label { font-size: 0.8rem; color: #6b7280; }
.profile-message-modal-backdrop, .mypage-app-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.4); }
.mypage-app-modal { display: none; position: fixed; inset: 0; z-index: 9000; align-items: center; justify-content: center; }
.mypage-app-modal[aria-hidden="false"] { display: flex; }
.mypage-app-modal-dialog { background: #fff; border-radius: 18px; width: min(480px, 94vw); max-height: 90vh; overflow-y: auto; box-shadow: 0 8px 60px rgba(0,0,0,0.2); }
[data-theme="dark"] .mypage-app-modal-dialog { background: #141e2e; }
.mypage-app-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 12px; border-bottom: 1px solid rgba(0,0,0,0.06); }
.mypage-app-modal-title-group h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.mypage-app-modal-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: #9ca3af; padding: 4px 8px; border-radius: 6px; }
.mypage-app-modal-close:hover { background: rgba(0,0,0,0.06); }
.mypage-app-modal-body { padding: 16px 20px 20px; }
.mypage-app-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.profile-message-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ww-text); }
.profile-message-input, .profile-message-textarea { padding: 8px 12px; border: 1.5px solid rgba(0,0,0,0.12); border-radius: 8px; font-size: 0.9rem; background: rgba(0,0,0,0.02); resize: vertical; }
.profile-message-results { border: 1px solid rgba(0,0,0,0.08); border-radius: 8px; max-height: 120px; overflow-y: auto; margin-bottom: 10px; }
.profile-message-selected { font-size: 0.84rem; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.profile-message-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.profile-message-emoji { display: flex; gap: 4px; }
.profile-message-emoji-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; padding: 2px; }
.profile-message-file { display: none; }
.profile-message-attach-btn { cursor: pointer; }
.profile-message-attach-clear { cursor: pointer; }
.profile-message-attach-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 8px; background: rgba(0,0,0,0.03); border-radius: 8px; }
.profile-message-attach-preview { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.profile-message-attach-text strong { display: block; font-size: 0.84rem; font-weight: 600; }
.profile-message-attach-text small { font-size: 0.75rem; color: #9ca3af; }
.sent-success { text-align: center; padding: 24px 0; }
.sent-success-icon { font-size: 3rem; color: #22c55e; }
.sent-success-message { text-align: center; font-size: 0.95rem; color: var(--ww-text); }

/* ─────────────────────────────────────────────────────────────
   8. 다크/라이트 토글
   ───────────────────────────────────────────────────────────── */
.ww-hdr__theme-btn {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 4px;
}

/* 트랙 */
.ww-theme-toggle__track {
  display: flex;
  align-items: center;
  width: 52px;
  height: 28px;
  border-radius: 99px;
  background: #e5e7eb;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  position: relative;
  transition: background 0.3s ease, border-color 0.3s ease;
  padding: 2px;
}
[data-theme="dark"] .ww-theme-toggle__track {
  background: #1e2d45;
  border-color: rgba(255, 255, 255, 0.12);
}

/* 썸 */
.ww-theme-toggle__thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.35s var(--ww-spring);
  flex-shrink: 0;
}
[data-theme="dark"] .ww-theme-toggle__thumb {
  transform: translateX(24px);
  background: #1e3a5f;
}

/* 아이콘 */
.ww-theme-toggle__sun, .ww-theme-toggle__moon {
  position: absolute;
  width: 13px; height: 13px;
  transition: opacity 0.25s ease, transform 0.3s ease;
}
/* 라이트: 달 */
.ww-theme-toggle__sun  { opacity: 0; transform: scale(0.5) rotate(90deg); color: #fbbf24; }
.ww-theme-toggle__moon { opacity: 1; transform: scale(1); color: #6b7280; }
/* 다크: 해 */
[data-theme="dark"] .ww-theme-toggle__sun  { opacity: 1; transform: scale(1) rotate(0deg); color: #fbbf24; }
[data-theme="dark"] .ww-theme-toggle__moon { opacity: 0; transform: scale(0.5) rotate(-90deg); }

/* 홈 비스크롤 트랙 */
.page-home .ww-hdr:not(.is-scrolled) .ww-theme-toggle__track {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}
.page-home .ww-hdr:not(.is-scrolled) .ww-theme-toggle__thumb { background: rgba(255,255,255,0.9); }

/* ── 모바일: 아이콘 버튼으로 전환 ── */
@media (max-width: 860px) {
  .ww-hdr__theme-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    background: rgba(0, 0, 0, 0.04);
    justify-content: center;
    margin-left: 0;
    overflow: hidden;
  }
  .ww-theme-toggle__track { display: none; }
  .ww-theme-toggle__thumb {
    position: static;
    width: 20px; height: 20px;
    background: none;
    box-shadow: none;
    transform: none;
    display: flex; align-items: center; justify-content: center;
  }
  [data-theme="dark"] .ww-theme-toggle__thumb { transform: none; }
  .ww-theme-toggle__sun,
  .ww-theme-toggle__moon { position: static; width: 17px; height: 17px; }
  .ww-theme-toggle__moon { opacity: 1; transform: scale(1); color: #374151; }
  .ww-theme-toggle__sun  { opacity: 0; transform: scale(0); display: none; }
  [data-theme="dark"] .ww-theme-toggle__sun  { opacity: 1; transform: scale(1); display: flex; color: #fbbf24; }
  [data-theme="dark"] .ww-theme-toggle__moon { opacity: 0; display: none; }

  /* 홈 비스크롤 */
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__theme-btn {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.08);
  }
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__theme-btn .ww-theme-toggle__moon,
  .page-home .ww-hdr:not(.is-scrolled) .ww-hdr__theme-btn .ww-theme-toggle__sun { color: rgba(255,255,255,0.88); }
  [data-theme="dark"] .ww-hdr__theme-btn {
    border-color: rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.05);
  }
}

/* ─────────────────────────────────────────────────────────────
   9. 모바일 햄버거
   ───────────────────────────────────────────────────────────── */
.ww-hdr__burger {
  display: none; /* 기본: 숨김 */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ww-hdr__burger:hover {
  background: rgba(16, 87, 245, 0.06);
  border-color: rgba(16, 87, 245, 0.3);
}
.ww-hdr__burger-line {
  display: block;
  width: 18px; height: 1.8px;
  border-radius: 99px;
  background: #374151;
  transition: transform 0.3s ease, opacity 0.2s ease;
}
/* 모바일: 표시 */
@media (max-width: 860px) {
  .ww-hdr__burger { display: flex; width: 36px; height: 36px; }
}

/* 홈 비스크롤 */
.page-home .ww-hdr:not(.is-scrolled) .ww-hdr__burger { border-color: rgba(255,255,255,0.25); }
.page-home .ww-hdr:not(.is-scrolled) .ww-hdr__burger-line { background: rgba(255,255,255,0.9); }
[data-theme="dark"] .ww-hdr__burger { border-color: rgba(255,255,255,0.14); }
[data-theme="dark"] .ww-hdr__burger-line { background: rgba(238,243,255,0.75); }

/* ─────────────────────────────────────────────────────────────
   10. 스크롤 진행바
   ───────────────────────────────────────────────────────────── */
.ww-hdr__progress {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
  pointer-events: none;
}
.ww-hdr__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--ww-hdr-gradient);
  border-radius: 0 2px 2px 0;
}


/* =============================================================
   FULLSCREEN OVERLAY NAV — 모바일 풀스크린 메뉴 패널
   JS: openOverlay/closeOverlay + GSAP 애니메이션
   CSS는 초기 상태만 담당, 애니메이션은 GSAP이 처리
   ============================================================= */

/* ── 전체 래퍼 ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 9100;
  pointer-events: none; /* 닫힌 상태: 클릭 차단 */
  isolation: isolate;
}
/* JS가 aria-hidden="false"로 변경할 때 → 인터랙션 활성화 */
.nav-overlay[aria-hidden="false"] {
  pointer-events: auto;
}

/* ── 배경 딤 (GSAP이 opacity 0↔1 조작) ── */
.nav-overlay-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1; /* 패널 뒤 */
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; /* 초기 투명 - GSAP이 페이드인 */
}

/* ── 패널 (우측 슬라이드 — GSAP이 x 조작) ── */
.nav-overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(400px, 100vw);
  background: #0d1526;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2; /* backdrop 위 */
  /* 초기: 오른쪽 밖으로 - GSAP가 x:'100%' → x:'0%' 처리 */
  transform: translateX(100%);
  will-change: transform;
}

/* ── 배경 장식 ── */
.nop-deco { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.nop-deco-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.18;
}
.nop-deco-orb--1 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #1057f5, transparent);
  top: -80px; right: -80px;
}
.nop-deco-orb--2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, #7c3aed, transparent);
  bottom: 60px; left: -40px;
}
.nop-deco-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── 상단 헤더 ── */
.nav-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  z-index: 1;
}
.nav-overlay-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-overlay-brand img { width: 32px; height: 32px; object-fit: contain; }
.nav-overlay-brand span {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
}
.nav-overlay-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-overlay-close:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

/* ── 상태 바 ── */
.nop-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  position: relative;
  z-index: 1;
}
.nop-status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
  animation: nop-dot-pulse 2s ease-in-out infinite;
}
@keyframes nop-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}
.nop-status-text {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ── 네비게이션 링크 목록 ── */
.nav-overlay-nav {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 16px;
  position: relative;
  z-index: 1;
}
.nav-overlay-nav::-webkit-scrollbar { width: 4px; }
.nav-overlay-nav::-webkit-scrollbar-track { background: transparent; }
.nav-overlay-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

/* JS buildNav()로 생성하는 메뉴 아이템
   HTML: <a class="nov-item"><span class="nov-item-text">
           <span class="nov-item-num">01</span>
           <span class="nov-item-label">메뉴명</span>
           <span class="nov-item-sub">서브타이틀</span>
         </span><span class="nov-item-arrow">↗</span></a> */
.nov-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  cursor: pointer;
  transition: padding-left 0.2s ease;
  color: inherit;
}
.nov-item:last-child { border-bottom: none; }
.nov-item:hover { padding-left: 8px; }

.nov-item-text {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex: 1;
  min-width: 0;
}
.nov-item-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.06em;
  min-width: 20px;
  flex-shrink: 0;
}
.nov-item-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}
.nov-item-sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nov-item:hover .nov-item-label { color: #ffffff; }
.nov-item.is-active .nov-item-label { color: #6090ff; }

.nov-item-arrow {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 8px;
}
.nov-item:hover .nov-item-arrow {
  color: rgba(255, 255, 255, 0.5);
  transform: translateX(4px);
}

/* ── CTA 배너 ── */
.nop-cta-banner {
  margin: 8px 16px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(16,87,245,0.25) 0%, rgba(124,58,237,0.25) 100%);
  border: 1px solid rgba(16, 87, 245, 0.3);
  position: relative;
  z-index: 1;
  overflow: hidden;
}
.nop-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
}
.nop-cta-text { flex: 1; min-width: 0; }
.nop-cta-eyebrow { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; color: rgba(100, 160, 255, 0.9); text-transform: uppercase; margin-bottom: 2px; }
.nop-cta-title { display: block; font-size: 0.9rem; font-weight: 800; color: #ffffff; line-height: 1.3; }
.nop-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, #1057f5 0%, #7c3aed 100%);
  border: none;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.nop-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.nop-cta-btn svg { flex-shrink: 0; }

/* ── 하단 영역 ── */
.nop-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 14px 20px 20px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

/* 인증 영역 */
.nav-overlay-auth { margin-bottom: 14px; }
.noa-user-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.noa-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #1057f5, #7c3aed);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}
.noa-avatar img { width: 100%; height: 100%; object-fit: cover; }
.noa-user-info { flex: 1; min-width: 0; }
.noa-user-info strong { display: block; font-size: 0.9rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.noa-user-info span { font-size: 0.75rem; color: rgba(255,255,255,0.4); }
.noa-btns { display: flex; gap: 8px; }
.noa-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.18s ease, transform 0.2s ease;
}
.noa-btn--login {
  background: rgba(16, 87, 245, 0.18);
  color: #6090ff;
  border: 1px solid rgba(16, 87, 245, 0.25);
}
.noa-btn--login:hover { background: rgba(16, 87, 245, 0.28); transform: translateY(-1px); }
.noa-btn--register {
  background: linear-gradient(135deg, #1057f5, #7c3aed);
  color: #fff;
  box-shadow: 0 2px 16px rgba(16,87,245,0.35);
}
.noa-btn--register:hover { opacity: 0.9; transform: translateY(-1px); }
.noa-btn--mypage {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.1);
}
.noa-btn--mypage:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.noa-btn--logout {
  background: rgba(239, 68, 68, 0.12);
  color: rgba(248, 113, 113, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.noa-btn--logout:hover { background: rgba(239, 68, 68, 0.2); }

/* 소셜 + 카피라이트 */
.nop-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nop-social { display: flex; align-items: center; gap: 8px; }
.nop-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.nop-social-link:hover { background: rgba(255, 255, 255, 0.12); color: rgba(255,255,255,0.8); }
.nav-overlay-copy { font-size: 0.72rem; color: rgba(255, 255, 255, 0.22); }


/* =============================================================
   퀵 상담 MODAL — .qconsult-*
   ============================================================= */
.qconsult-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9200;
  align-items: center;
  justify-content: center;
}
.qconsult-modal[aria-hidden="false"] { display: flex; }
.qconsult-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}
.qconsult-dialog {
  position: relative;
  width: min(540px, 96vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
  animation: qc-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .qconsult-dialog { background: #141e2e; }
@keyframes qc-in {
  from { transform: translateY(30px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.qconsult-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
[data-theme="dark"] .qconsult-head { border-bottom-color: rgba(255,255,255,0.08); }
.qconsult-title { font-size: 1.15rem; font-weight: 800; color: #0a1525; margin: 0 0 4px; }
[data-theme="dark"] .qconsult-title { color: #eef3ff; }
.qconsult-sub { font-size: 0.82rem; color: #6b7280; margin: 0; }
.qconsult-close {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(0,0,0,0.05);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6b7280;
  flex-shrink: 0;
  transition: background 0.18s ease;
}
.qconsult-close:hover { background: rgba(0,0,0,0.1); color: #374151; }
.qconsult-form { padding: 20px 24px 24px; }
.qconsult-row { display: grid; gap: 12px; margin-bottom: 12px; }
.qconsult-row--2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 540px) { .qconsult-row--2 { grid-template-columns: 1fr; } }
.qconsult-field { display: flex; flex-direction: column; gap: 5px; }
.qconsult-field label { font-size: 0.83rem; font-weight: 700; color: #374151; }
[data-theme="dark"] .qconsult-field label { color: rgba(238,243,255,0.8); }
.qconsult-field span[aria-hidden] { color: #ef4444; }
.qconsult-field input,
.qconsult-field select,
.qconsult-field textarea {
  padding: 10px 12px;
  border: 1.5px solid rgba(0,0,0,0.11);
  border-radius: 10px;
  font-size: 0.9rem;
  background: rgba(0,0,0,0.02);
  color: #0a1525;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  resize: vertical;
}
[data-theme="dark"] .qconsult-field input,
[data-theme="dark"] .qconsult-field select,
[data-theme="dark"] .qconsult-field textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #eef3ff;
}
.qconsult-field input:focus,
.qconsult-field select:focus,
.qconsult-field textarea:focus {
  outline: none;
  border-color: #1057f5;
  box-shadow: 0 0 0 3px rgba(16,87,245,0.1);
}
.qconsult-agree { margin-bottom: 16px; }
.qconsult-agree label { display: flex; align-items: flex-start; gap: 8px; font-size: 0.84rem; color: #374151; cursor: pointer; }
[data-theme="dark"] .qconsult-agree label { color: rgba(238,243,255,0.75); }
.qconsult-agree a { color: #1057f5; }
.qconsult-actions { display: flex; gap: 10px; }
.qconsult-submit {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1057f5 0%, #7c3aed 100%);
  border: none;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 4px 24px rgba(16,87,245,0.35);
}
.qconsult-submit:hover { opacity: 0.9; transform: translateY(-1px); }
.qconsult-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.qconsult-error { font-size: 0.84rem; color: #ef4444; margin-top: 8px; }
.qconsult-success { padding: 32px 24px; text-align: center; }
.qconsult-success-icon { font-size: 3rem; color: #22c55e; margin-bottom: 12px; }
.qconsult-success h3 { font-size: 1.2rem; font-weight: 800; color: #0a1525; margin: 0 0 8px; }
[data-theme="dark"] .qconsult-success h3 { color: #eef3ff; }
.qconsult-success p { font-size: 0.9rem; color: #6b7280; }
.qconsult-close-ok {
  margin-top: 20px;
  padding: 10px 28px;
  border-radius: 99px;
  background: linear-gradient(135deg, #1057f5, #7c3aed);
  border: none;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* =============================================================
   사이트 푸터 — .site-footer + .ftg-* (footer gng v5)
   디자인 토큰: ww-tokens.css의 --ww-* 변수 사용
   ============================================================= */
.site-footer {
  background: var(--ww-bg-alt);
  border-top: 1px solid var(--ww-border);
  color: var(--ww-text);
  font-family: var(--ww-font-base);
}
.site-footer > .container,
#ft > .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}

/* ── ftg-wrap: 내부 패딩 ── */
.ftg-wrap {
  padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px);
}

/* ── ftg-grid: 3열 그리드 ── */
.ftg-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px 48px;
  margin-bottom: 48px;
}
@media (max-width: 1024px) {
  .ftg-grid { grid-template-columns: 1fr 1fr; }
  .ftg-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .ftg-grid { grid-template-columns: 1fr; gap: 32px 0; }
  .ftg-brand { grid-column: auto; }
}

/* ── 브랜드 컬럼 ── */
.ftg-brand { display: flex; flex-direction: column; gap: 16px; }

.ftg-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.ftg-logo img {
  width: 34px; height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
.ftg-logo-text {
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--ww-text);
}

.ftg-tagline {
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--ww-text-sub);
  margin: 0;
}

/* 연락처 칩 */
.ftg-chips { display: flex; flex-direction: column; gap: 8px; }
.ftg-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--ww-surface);
  border: 1px solid var(--ww-border-light);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.ftg-chip:hover {
  border-color: var(--ww-primary);
  box-shadow: var(--ww-shadow-sm);
}
.ftg-chip-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--ww-primary-light);
  color: var(--ww-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.ftg-chip-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ftg-chip-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ww-text-mute);
  letter-spacing: 0.02em;
}
.ftg-chip-label > span:last-child {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ww-text);
}

/* CTA 버튼 */
.ftg-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 99px;
  background: var(--ww-grad-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.2s var(--ww-spring);
  align-self: flex-start;
}
.ftg-cta-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* SNS 링크 */
.ftg-sns { display: flex; align-items: center; gap: 8px; }
.ftg-sns-link {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ww-surface);
  border: 1px solid var(--ww-border-light);
  color: var(--ww-text-sub);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.ftg-sns-link:hover {
  background: var(--ww-primary);
  border-color: var(--ww-primary);
  color: #fff;
}

/* ── 일반 컬럼 ── */
.ftg-col { display: flex; flex-direction: column; gap: 14px; }

.ftg-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ww-text);
  margin: 0;
}

.ftg-links {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.ftg-links a {
  font-size: 0.875rem;
  color: var(--ww-text-sub);
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
  display: block;
}
.ftg-links a:hover { color: var(--ww-primary); padding-left: 4px; }

/* 정보 dl */
.ftg-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0; padding: 0;
}
.ftg-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ww-text-mute);
  white-space: nowrap;
  align-self: start;
  padding-top: 1px;
}
.ftg-dl dd {
  font-size: 0.8rem;
  color: var(--ww-text-sub);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ftg-bizno-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ww-primary);
  background: var(--ww-primary-light);
  border: none;
  border-radius: 6px;
  padding: 2px 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
}
.ftg-bizno-link:hover { background: rgba(16, 87, 245, 0.18); }

/* ── ftg-bottom: 하단 바 ── */
.ftg-bottom {
  border-top: 1px solid var(--ww-border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ftg-copy-group { display: flex; flex-direction: column; gap: 2px; }
.ftg-copy {
  font-size: 0.8rem;
  color: var(--ww-text-mute);
  display: block;
}
.ftg-policy {
  display: flex;
  align-items: center;
  gap: 16px;
}
.ftg-policy a {
  font-size: 0.8rem;
  color: var(--ww-text-sub);
  text-decoration: none;
  transition: color 0.15s ease;
}
.ftg-policy a:hover { color: var(--ww-primary); }
.ftg-policy a:first-child { font-weight: 700; }

/* 리빌 애니메이션 */
.ftg-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.ftg-reveal.is-revealed,
.ftg-reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* JS 없는 경우 표시 */
@media (prefers-reduced-motion: reduce) {
  .ftg-reveal { opacity: 1; transform: none; }
}

/* ── 퀵 플로팅 FAB ── */
.quick-fab {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 8000;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-end;
  gap: 10px;
}
.quick-fab__main {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1057f5, #7c3aed);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(16,87,245,0.4);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
}
.quick-fab__main:hover { transform: scale(1.08); box-shadow: 0 8px 32px rgba(16,87,245,0.5); }
.quick-fab__list { display: none; flex-direction: column-reverse; gap: 8px; }
.quick-fab.is-open .quick-fab__list { display: flex; }
.quick-fab__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  font-size: 0.84rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  animation: fab-item-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
[data-theme="dark"] .quick-fab__item {
  background: rgba(20,30,46,0.98);
  border-color: rgba(255,255,255,0.1);
  color: rgba(238,243,255,0.85);
}
@keyframes fab-item-in { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform: none; } }
.quick-fab__icon {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1057f5, #7c3aed);
  color: #fff;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── 앱 설치 프롬프트 ── */
.app-install-prompt {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(400px, 94vw);
}
[data-theme="dark"] .app-install-prompt {
  background: rgba(14,20,40,0.98);
  border-color: rgba(255,255,255,0.1);
}
.app-install-prompt p { margin: 0; font-size: 0.88rem; color: #374151; flex: 1; }
[data-theme="dark"] .app-install-prompt p { color: rgba(238,243,255,0.8); }
.app-install-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ── 토스트 ── */
.toast-root {
  position: fixed;
  top: calc(var(--ww-hdr-h) + 12px);
  right: 16px;
  z-index: 9500;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(0,0,0,0.09);
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  pointer-events: auto;
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 320px;
}
[data-theme="dark"] .toast-item {
  background: rgba(14,20,40,0.98);
  border-color: rgba(255,255,255,0.1);
  color: rgba(238,243,255,0.85);
}
@keyframes toast-in { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
.toast-item--success { border-left: 3px solid #22c55e; }
.toast-item--error   { border-left: 3px solid #ef4444; }
.toast-item--info    { border-left: 3px solid #1057f5; }

/* ── 앱 로딩바 ── */
.app-loading-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 10000;
  background: rgba(16,87,245,0.15);
}
.app-loading-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1057f5, #7c3aed);
  animation: loading-slide 1.2s ease-in-out infinite;
}
@keyframes loading-slide {
  0%   { transform: translateX(-100%); }
  50%  { transform: translateX(0%); width: 70%; }
  100% { transform: translateX(200%); }
}

