:root {
  --purple-bg: #ffffff;
  --purple-dk: #ffffff;
  --btn-bg: #FDC512;
  --btn-bg-hov: #D9A90F;
  --border-light: #e9e9e9;
  --text-main: #111;
  --text-sub: #5f5f5f;
  --sb-open: 210px; 
  --sb-collapsed: 78px;
}

* {
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  margin: 0;
  display: flex;
  height: 100vh;
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.6s ease forwards;
}

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── 고급 유광 블랙: 과한 대비/노이즈 제거, 깊은 바디톤 ── */
.sidebar {
  width: var(--sb-open);
  /* 깊고 깨끗한 바디: 미세한 수직 그라데이션만 */
  background: linear-gradient(180deg, #0A0B0E 0%, #050608 58%, #0A0B0E 100%);
  overflow: hidden;

  /* 외곽 그림자 과하지 않게, 내부 음영은 은은하게 */
  box-shadow:
    0 20px 40px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04),
    inset 10px 10px 24px rgba(0,0,0,0.60),
    inset -10px -10px 22px rgba(255,255,255,0.03);

  color: #EAEAEA;
  transition: width .3s ease, border-radius .3s ease, background .2s ease;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  align-items: stretch;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1000;
  border-right: none;
  isolation: isolate; /* 하이라이트 블렌딩 안정화 */
}


/* ── 사진 같은 고정 하이라이트: 과장 제거, 라인 1~2개만 아주 얕게 ── */
.sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    /* 좌상단에서 감기는 넓고 매우 부드러운 하이라이트(타원형) */
    radial-gradient(180% 80% at -20% 0%,
      rgba(255,255,255,0.20) 2%,
      rgba(255,255,255,0.10) 8%,
      rgba(255,255,255,0.00) 22%),

    /* 하단 좌측에서 대각선으로 스치는 얇은 반사 띠(과하지 않게) */
    linear-gradient(14deg,
      transparent 70%,
      rgba(255,255,255,0.12) 76%,
      transparent 82%);

  mix-blend-mode: screen;  /* 밝은 부분만 합성 */
  opacity: .85;            /* 번들감 강도 */
}


/* ── 양쪽 에지에 가는 림광: 두께/투명도 최소화로 고급스러움 유지 ── */
.sidebar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* 오른쪽 에지 */
    linear-gradient(to bottom,
      rgba(255,255,255,0.20),
      rgba(255,255,255,0.04) 65%,
      rgba(255,255,255,0)) right / 1px 100% no-repeat,
    /* 왼쪽 에지 */
    linear-gradient(to bottom,
      rgba(255,255,255,0.12),
      rgba(255,255,255,0) 70%) left / 1px 100% no-repeat;
  opacity: .45;
}



.sidebar.collapsed {
  width: var(--sb-collapsed);
  border-radius: 30px;
}

.menu-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.logo {
  height: 36px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #FFD400;
  text-shadow: 1px 1px 0px #A08000, 
               2px 2px 3px rgba(0, 0, 0, 0.5);
  opacity: 1;
  transition: opacity 0.3s;
}

.logo-img {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0;
  transition: opacity 0.3s;
  border-radius: 50%;
  border: 2px solid #2a2a35;
  box-shadow: inset 2px 2px 4px #1e1e26, 
              inset -2px -2px 4px #363644;
}

.sidebar.collapsed .logo-text {
  opacity: 0;
}

.sidebar.collapsed .logo-img {
  opacity: 1;
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 17px;
  cursor: pointer;
  width: 100%;
  opacity: 0;
  transform: translateX(-30px);
  margin-bottom: 12px;
  border-radius: 10px;
  transition: background-color 0.2s ease;
}

.menu-item .active-bg {
  position: absolute;
  left: 12px; right: 12px; top: 3px; bottom: 3px;
  background: linear-gradient(180deg,
              rgba(255,255,255,0.22) 0%,
              rgba(255,255,255,0.08) 100%);
  border-radius: 12px;
  box-shadow:
    inset 2px 2px 6px rgba(0,0,0,0.60),
    inset -2px -2px 7px rgba(255,255,255,0.14),
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 18px rgba(0,0,0,0.35);
  z-index: 0;
  opacity: 0;               /* 기존 동작 유지 */
  transition: opacity .18s;
}
.menu-item.active .active-bg::after {
  content:"";
  position: absolute;
  left: 10%; right: -10%;
  top: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent,
             rgba(255,255,255,0.55), transparent);
  opacity: .7;
  pointer-events: none;
}

.menu-item.active .active-bg {
  opacity: 1;
}

.menu-item img.menu-icon,
.menu-item span {
  position: relative;
  z-index: 2;
}

.menu-item.show {
  animation: fadeInLeft 0.5s ease forwards;
}

.menu-item:hover {
  background: linear-gradient(180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02));
}
.menu-item.active span:not(.active-bg) { color:#fff; font-weight:600; }
.menu-item.active .menu-icon { filter: brightness(1.10) saturate(1.08); }
.menu-item:hover {
  background: linear-gradient(180deg,
              rgba(255,255,255,0.08),
              rgba(255,255,255,0.03));
}

.menu-item span:not(.active-bg) {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.8rem !important;
  opacity: 1;
  color: #d1d1d1;
  transition: max-width .25s ease .30s, opacity .25s ease .30s;
}

.sidebar.collapsed .menu-item span:not(.active-bg) {
  max-width: 0;
  opacity: 0;
  transition: max-width .20s ease 0s, opacity .05s ease 0s;
}

.menu-item.active span:not(.active-bg) {
    color: #ffffff;
    font-weight: 600;
}

.menu-button {
  width: 20px;
  height: 20px;
  cursor: pointer;
  position: relative;
  background: none;
  border: none;
  outline: none;
  margin: 20px auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-button span {
  display: block;
  position: absolute;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(.7, .2, .17, 1.3);
}

.menu-button span:nth-child(1),
.menu-button span:nth-child(2),
.menu-button span:nth-child(3) {
  width: 100%;
  height: 2px;
  left: 0;
}

.menu-button span:nth-child(1) { top: 2px; }
.menu-button span:nth-child(2) { top: 6.5px; }
.menu-button span:nth-child(3) { top: 11px; }

.menu-button.active span {
  width: 2px;
  height: 100%;
  top: 0;
}

.menu-button.active span:nth-child(1) { left: 0px; }
.menu-button.active span:nth-child(2) { left: 6.5px; }
.menu-button.active span:nth-child(3) { left: 13px; }

/* ===== 메인 콘텐츠 ===== */
.main-content {
  flex-grow: 1;
  opacity: 0;
  transform: translateX(-30px);
  animation: fadeInLeft 0.8s ease forwards;
  animation-delay: 0.3s;
  margin-left: var(--sb-open);
  transition: margin-left .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.sidebar.collapsed ~ .main-content {
  margin-left: var(--sb-collapsed);
}

.menu-icon {
  width: 25px;
  height: 25px;
  margin-right: 15px;
  object-fit: contain;
  margin-left: 11px;
  opacity: 0.6; 
  transition: opacity 0.2s ease; 
}

.menu-item.active .menu-icon,
.menu-item:hover .menu-icon {
  opacity: 1;
}

.spacer { flex-grow: 1; }
.menu-item.logout { margin-bottom: 30px; }
#contentFrame { flex: 1; border: none; width: 100%; height: 100%; overflow-y: auto; }

/* 헤더 */
.page-header{ min-width:980px; padding:8px 40px 10px; display:flex; align-items:center; justify-content:space-between; position:relative; background: #fff; }
.header-titles h1 {
  font-size: 1.3rem;
  font-weight: 900;
  color: #333;
  text-shadow: 1px 1px 1px #d4d5d9, 
               -1px -1px 1px #ffffff;
}

.sub-date{margin-top:2px;font-size:.7rem;font-weight:700;color:var(--text-sub);}
.header-actions{display:flex;align-items:center;gap:16px;}
.action-btn {
  padding: 8px 22px;
  border-radius: 9999px;
  border: none;
  background: linear-gradient(145deg, #FFDE6B, #FDC512);
  color: #4D3800;
  font-weight: 700;
  font-size: .75rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 5px 5px 10px #d4d5d9, 
              -5px -5px 10px #ffffff;
  transition: all 0.15s ease-in-out;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 7px 7px 15px #d4d5d9, 
              -7px -7px 15px #ffffff;
}

.action-btn:active {
  transform: translateY(1px);
  background: #FDC512;
  box-shadow: inset 4px 4px 8px #d6a80e, 
              inset -4px -4px 8px #ffe278;
}
.user-wrapper{position:relative;}
.user-box{ display:flex;align-items:center;gap:14px;cursor:pointer; }

.index-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #f5f6fa;
  box-shadow: inset 3px 3px 7px #d4d5d9, 
              inset -3px -3px 7px #ffffff;
}
#index-headerProfileName { font-size:0.7rem; font-weight:600; color:#444; margin:0; }

.user-box i{font-size:.8rem;color:#888;transition:.2s;}
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  padding: 8px 0;
  z-index: 20;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transform: translateY(-10px);
  transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.4s ease, visibility 0.4s;
}

.dropdown.show {
  max-height: 200px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a{ display:block;padding:10px 18px;font-size:.92rem;color:#333; text-decoration:none;white-space:nowrap;transition:.13s; }
.dropdown a:hover{background:#f8f8f8;}
.page-header::after{ content:''; position:absolute; left:50%; bottom:0; transform:translateX(-50%); width:97%; height:1px; background:var(--border-light); }
.highlight { position: relative; display: inline-block; }
.highlight::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #007BFF; 
  /* 선명한 색상에 어울리게 그림자도 살짝 변경하면 좋습니다 */
  box-shadow: 0 2px 6px rgba(0, 123, 255, 0.25);
}
.user-box.loading * { visibility: hidden; }

/* 모달 스타일 */
body.swal2-shown { height: 100% !important; overflow: hidden !important; }
.modal-overlay { display: none; position: fixed; z-index: 9999; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.38); justify-content: center; align-items: center; }
.modal-overlay.show { display: flex; }
.modal-content { position: relative; width: 1150px; max-width: 95vw; background: #fff; border-radius: 10px; box-shadow: 0 8px 40px rgba(30,30,30,0.18); padding: 0; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; min-height: 700px; }
.close-modal { position: absolute; right: 16px; top: 10px; background: none; border: none; font-size: 2rem; color: #bbb; z-index: 2; cursor: pointer; transition: color .2s; }
.close-modal:hover { color: #111; }
#paymentIframe { width: 100%; height: 800px; border: none; background: #fafbfc; border-radius: 0 0 18px 18px; }
.intro-overlay{position:fixed;inset:0;background:rgba(0,0,0,.38);display:none;align-items:center;justify-content:center;z-index:10000}
.intro-overlay.show{display:flex}
.intro-modal{width:min(920px,95vw);background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.22);overflow:hidden;transform:translateY(8px);opacity:0;animation:introPop .28s ease-out .02s forwards}
@keyframes introPop{to{opacity:1;transform:translateY(0)}}
.intro-head{display:flex;gap:14px;align-items:center;padding:22px 24px;border-bottom:1px solid var(--border-light)}
.intro-badge{width:34px;height:34px;border-radius:10px;background:#007BFF;display:flex;align-items:center;justify-content:center;font-weight:900;color:#FFFFFF}
.intro-title{font-size:1.22rem;font-weight:900;color:#111;letter-spacing:-.2px}
.intro-sub{font-size:.92rem;color:#5f5f5f;margin-top:2px}
.intro-body{padding:18px 22px 8px}
.intro-callout{ background:#fff8d8;border:1px dashed #f0cc4b;color:#6a5512; padding:10px 12px;border-radius:10px;font-size:.92rem;line-height:1.5;margin-bottom:12px }
.intro-grid{display:grid;grid-template-columns:1fr;gap:12px}
@media (min-width:820px){.intro-grid{grid-template-columns:1fr 1fr}}
.intro-card{ border:1px solid var(--border-light);border-radius:14px;background:#fff;padding:16px 16px 14px }
.intro-card h4{margin:0 0 8px;font-size:1rem;color:#111}
.intro-card p{margin:0;font-size:.93rem;color:#555;line-height:1.55}
.intro-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#FDC512;margin-right:8px;vertical-align:middle}
.intro-list{margin:8px 0 0;padding-left:0;list-style:none}
.intro-list li{margin:6px 0;color:#444;font-size:.93rem}
.intro-strong{font-weight:800;color:#111}
.intro-footer{display:flex;gap:10px;justify-content:flex-end;padding:14px 16px;border-top:1px solid var(--border-light);background:#fafafa}
.btn-ghost{background:#fff;border:1px solid #e8e8e8;border-radius:9999px;padding:9px 16px;font-weight:700;color:#333;cursor:pointer}
.btn-ghost:hover{background:#f7f7f7}
.btn-primary{background:var(--btn-bg);border:none;border-radius:9999px;padding:9px 18px;font-weight:800;color:#111;cursor:pointer}
.btn-primary:hover{background:var(--btn-bg-hov)}
.intro-close{position:absolute;top:10px;right:12px;border:none;background:none;font-size:1.6rem;color:#bbb;cursor:pointer}
.intro-close:hover{color:#111}
.intro-list-dot li{margin:10px 0 12px}
.intro-list-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.intro-list-desc{color:#555;font-size:.93rem;line-height:1.55;margin-left:16px}
.intro-list-dot .intro-dot{width:9px;height:9px}
.intro-note { font-size: 0.6rem; color: #666; line-height: 1.5; margin-top: 6px; }

.intro-overlay {
  background: rgba(0, 0, 0, 0.4);
}
.intro-modal {
  background: rgba(245, 245, 245, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.intro-head, .intro-footer {
  background: transparent;
  border-color: rgba(0, 0, 0, 0.1);
}
.intro-head {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.intro-footer {
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}
.intro-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.intro-callout {
  background: rgba(255, 249, 230, 0.8);
  border: 1px solid rgba(255, 236, 179, 0.9);
  color: #6a5512;
  border-radius: 12px;
}
.intro-footer .btn-ghost, .intro-footer .btn-primary {
  border-radius: 12px;
  padding: 10px 20px;
  transition: background .2s ease, border-color .2s ease;
}
.intro-footer .btn-ghost {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #343a40;
    font-weight: 600;
}
.intro-footer .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}
.intro-footer .btn-primary {
    background: #007BFF; /* 파란색으로 변경 */
    border: none; /* 테두리 제거 */
    color: #FFFFFF; /* 흰색 글씨 */
    font-weight: 700;
}
.intro-footer .btn-primary:hover {
    background: #0056b3; /* 더 진한 파란색 */
    border-color: transparent; /* 호버 시 테두리 색상 제거 */
}

/* ===== 페이지 로딩 스피너 스타일 ===== */
#contentFrame.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f0f0f0;
  border-top: 5px solid var(--btn-bg, #FDC512);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==============================================
PC / 모바일 분기점
==============================================
*/

/* ▼▼▼ PC에서 기본적으로 적용될 스타일 ▼▼▼ */

/* PC에서는 하단 메뉴를 항상 숨깁니다. */
.mobile-nav {
  display: none;
}

/* PC에서는 모바일 전용 드롭다운 메뉴를 항상 숨깁니다. */
.mobile-only-dropdown-item {
  display: none !important;
}

/* PC에서는 모바일 로고를 항상 숨깁니다. */
.mobile-header-logo {
  display: none;
}

.suggest-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px; /* 아래쪽으로 여백 늘림 */
}

/* 입력창: 자동 높이 + 3줄까지 확장, 이후 스크롤 */
#chatInput {
  resize: none;          
  /* ▼ 핵심: 3줄까지는 자연 확장, 그 이후는 스크롤 */
  overflow-y: auto;      
  max-width: 100%;
  width: 100%;
  line-height: 1.4;

  /* 자연스러운 시작 높이(1~2줄) + 자동 확장 */
  height: auto !important;
  min-height: calc(1.4em * 1.9);          /* 시작 높이(약 2줄 기준) */
  max-height: calc(1.4em * 3 + 24px);     /* 패딩 포함 3줄까지만 보이기 */

  /* 입력창이 행을 넘길 때 너비/레이아웃 안정화 */
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 14px;
  outline: none;
}

/* === 봇 타이핑 대기 말풍선 === */
.bot-message.typing .bubble {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;        /* 너무 눌리지 않게 최소 높이 */
  padding: 10px 12px;
}

/* 점 3개: 작게 + 간격 좁게 */
.bubble.typing .dots {
  display: inline-flex;
  align-items: flex-end;
  gap: 6px;
  height: 10px;            /* 파도 높이 기준 */
}

.bubble.typing .dots i {
  width: 6px;              /* 🔹작게 */
  height: 6px;             /* 🔹작게 */
  border-radius: 50%;
  background: currentColor; /* 말풍선 글자색과 통일 */
  opacity: .65;
  animation: dotWave 900ms ease-in-out infinite;
}

/* 위아래로 파도처럼 */
@keyframes dotWave {
  0%   { transform: translateY(0);       opacity: .35; }
  25%  { transform: translateY(-3px);    opacity: .8;  }
  50%  { transform: translateY(0);       opacity: .6;  }
  75%  { transform: translateY(3px);     opacity: .5;  }
  100% { transform: translateY(0);       opacity: .65; }
}

/* 점 간 파동 시차 */
.bubble.typing .dots i:nth-child(2) { animation-delay: .12s; }
.bubble.typing .dots i:nth-child(3) { animation-delay: .24s; }

/* 모션 최소화 환경 */
@media (prefers-reduced-motion: reduce) {
  .bubble.typing .dots i { animation: none; }
}


/* ▼▼▼ 화면 너비가 768px 이하일 때 적용될 모바일 전용 스타일 ▼▼▼ */
@media (max-width: 768px) {
  /* 3. 모바일용 로고는 보이도록 설정하고 스타일을 지정합니다. */
  .mobile-header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
  }
.mobile-header-logo img { height: 28px; }
.mobile-header-logo span { font-size: 1.2rem; font-weight: 700; color: #111; }

  /* 2. 기존 PC용 헤더 제목 숨기기 */
  .header-titles {
    display: none;
  }
    #goAdminPage {
    display: none !important;
  }
  
  /* 3. 상단바에 글래스모피즘 효과 적용 */
.page-header {
  display: flex;
  justify-content: space-between; /* 로고는 왼쪽, 프로필은 오른쪽으로! */
  align-items: center;

  /* 기존 글래스모피즘 스타일은 유지합니다. */
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 8px 20px 10px;
  min-width: unset;
}
.page-header::after {
  display: none; /* 기존 밑줄선 제거 */
}
  
  /* 1. 기존 PC용 사이드바 숨기기 */
  .sidebar {
    display: none;
  }

  /* 2. 메인 콘텐츠가 화면 전체를 사용하도록 조정 */
  .main-content {
    margin-left: 0;
  }
  
  /* 헤더 패딩 조정 */
  .page-header {
    padding: 8px 20px 10px;
    min-width: unset;
  }
  
    /* 4. 프로필을 담고 있는 오른쪽 컨테이너입니다. */
    .header-actions {
        display: flex;
        align-items: center;
    }

    /* 5. PC용 버튼들('결제하기' 등)은 확실히 숨깁니다. */
    .header-actions .action-btn {
      display: none;
    }

  /* 3. 모바일 하단 메뉴 스타일 */
  .mobile-nav {
    display: flex;
    position: fixed;
    /* 화면 하단에 약간의 여유 공간을 줍니다. */
    bottom: 16px;
    left: 16px;
    right: 16px;
    height: 60px;
    /* 흰색 배경과 그림자, 둥근 테두리를 추가해 사진처럼 만듭니다. */
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    border-radius: 30px; /* 아주 둥글게 처리 */
    justify-content: space-around;
    align-items: center;
    transform: translateY(0);
    transition: transform 0.4s ease-in-out;
  }

    /* ▼▼▼ 메뉴를 숨기기 위한 새 클래스를 추가해주세요 ▼▼▼ */
  .mobile-nav--hidden {
    transform: translateY(150%);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* 기본 아이콘과 텍스트 색상을 어두운 회색으로 변경합니다. */
    color: #868e96;
    text-decoration: none;
    flex: 1;
    /* 투명도 대신 색상으로 상태를 구분하므로 opacity 제거 */
    transition: color 0.2s ease-in-out;
  }

  /* Font Awesome 아이콘의 스타일을 지정합니다. */
  .mobile-nav-item i {
    font-size: 20px;
    margin-bottom: 3px;
    transition: all 0.2s ease-in-out;
  }

  .mobile-nav-item span {
    font-size: 0.7rem;
    font-weight: 500;
  }

  /* 활성화된 메뉴 아이템의 스타일입니다. */
  .mobile-nav-item.active {
    /* 활성화 시 아이콘과 텍스트를 파란색으로 변경합니다. */
    color: #007BFF;
  }

  /* 하단 메뉴가 화면 일부를 차지하므로, 콘텐츠가 가려지지 않도록 여백을 추가합니다. */
  #contentFrame {
    padding-bottom: 90px;
  }

  /* 모바일 모달창 스타일 */
  .intro-modal {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }

  .intro-body {
    overflow-y: auto;
    flex: 1;
  }

  /* 모바일에서만 드롭다운 '공지사항' 버튼 표시 */
  .mobile-only-dropdown-item {
    display: block !important;
  }

   .pc-only-item {
    display: none !important; /* [수정] !important 추가 */
  }
}

/* 🧮 매쓰비 에디터 - 아이콘 + 글씨만 볼록 효과 */
.editor-link {
  display: inline-flex;
  align-items: center;
  gap: -2px; /* 아이콘과 글씨 사이 간격 */
  font-weight: 600;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  margin-right: 24px; /* ✅ 결제하기 버튼과의 간격 추가 */
  transition: transform 0.2s ease-in-out;
}

.editor-link img {
  width: 25px; /* ✅ 아이콘 크기 조금 키움 (기존 18 → 22) */
  height: 25px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.editor-link span {
  display: inline-block;
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* hover 시 아이콘 + 글씨만 위로 살짝 떠오르는 효과 */
.editor-link:hover img,
.editor-link:hover span {
  transform: translateY(-2px);
}

/* 색상 강조 효과 */
.editor-link:hover span {
  color: #007BFF;
}

/* 🔍 출처 찾기 버튼 (매쓰비 에디터와 동일 스타일) */
.find-link {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* 아이콘과 글씨 간격 */
  font-weight: 600;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: transform 0.2s ease-in-out;
}

.find-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}

.find-link span {
  display: inline-block;
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}

/* hover 시 아이콘 + 글씨만 위로 살짝 떠오르는 효과 */
.find-link:hover img,
.find-link:hover span {
  transform: translateY(-2px);
}

/* 색상 강조 효과 */
.find-link:hover span {
  color: #007BFF;
}

/* 🤖 매쓰비 챗봇 버튼 (헤더용) */
.chatbot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;                /* 아이콘-텍스트 간격 */
  font-weight: 600;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  cursor: pointer;
  padding: 6px 10px;
  transition: transform 0.2s ease-in-out;
  /* 필요시 출처찾기와 간격 조절하려면 margin-right 사용 */
  /* margin-right: 8px; */
}
.chatbot-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease-in-out;
}
.chatbot-link span {
  display: inline-block;
  transition: transform 0.2s ease-in-out, color 0.2s ease-in-out;
}
.chatbot-link:hover img,
.chatbot-link:hover span {
  transform: translateY(-2px);
}
.chatbot-link:hover span {
  color: #007BFF;
}

@media (max-width: 768px) {
  .header-actions .chatbot-link,
  .header-actions .find-link,
  .header-actions .editor-link {
    display: none;
  }
}