/* ========================================================
   중앙성모난치성통증클리닉 - 최첨단 AI 디자인 시스템 (style.css)
   컨셉: Deep Navy & Medical Mint Neon Glassmorphism
   ======================================================== */

:root {
  --bg-dark: #060b14;
  --bg-surface: #0b1325;
  --bg-card: rgba(14, 24, 46, 0.72);
  --bg-card-hover: rgba(20, 36, 68, 0.85);
  --bg-glass: rgba(11, 20, 38, 0.65);
  
  --primary-mint: #00f5d4;
  --primary-cyan: #00d4b2;
  --primary-teal: #059669;
  
  --accent-blue: #38bdf8;
  --accent-purple: #818cf8;
  --accent-orange: #fb923c;
  --accent-red: #f43f5e;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 245, 212, 0.25);
  --border-cyan-glow: rgba(0, 245, 212, 0.5);
  
  --font-base: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 25px rgba(0, 245, 212, 0.2);
  --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
}

/* 기본 리셋 및 글로벌 스타일 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-base);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* 고정 헤더에 섹션 상단 및 제목이 가려지는 현상 방지 (모바일 및 PC 앵커 이동 최적화) */
section,
.section,
[id$="Section"],
#novacellSection,
#doctorSection,
#clinicsSection,
#franchiseSection,
#branchesSection,
#customerCenterSection,
.novacell-clinical-showcase {
  scroll-margin-top: 85px;
}

@media (max-width: 768px) {
  section,
  .section,
  [id$="Section"],
  #novacellSection,
  #doctorSection,
  #clinicsSection,
  #franchiseSection,
  #branchesSection,
  #customerCenterSection,
  .novacell-clinical-showcase {
    scroll-margin-top: 72px;
  }
}

/* 앰비언트 글로우 배경 이펙트 */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d4b2 0%, transparent 70%);
  top: -100px;
  right: -100px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  bottom: 10%;
  left: -150px;
}

/* 타이포그래피 공통 */
h1, h2, h3, h4 {
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, var(--primary-mint) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-cyan {
  color: var(--primary-mint);
  text-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
}

/* ========================================================
   상단 네비게이션 헤더
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* 브랜드 로고 */
.logo-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-symbol {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0f274a, #00d4b2);
  border: 1px solid var(--primary-mint);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.35);
  flex-shrink: 0;
}

.cross-icon {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.ai-pulse {
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--primary-mint);
  border-radius: 50%;
  top: -3px;
  right: -3px;
  box-shadow: 0 0 8px var(--primary-mint);
  animation: pulse-ring 2s infinite ease-out;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 1. 중앙성모(1줄)와 난치성통증클리닉(2줄) 2줄 고정 */
.brand-hospital {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
}

.brand-clinic {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-mint);
  letter-spacing: -0.3px;
  display: block;
}

/* 지점 선택기 (세로 찌그러짐 및 글자 줄바꿈 완벽 차단) */
.branch-selector-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.branch-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  user-select: none;
}

.branch-name {
  white-space: nowrap;
  font-weight: 500;
}

.branch-pill:hover {
  background: rgba(0, 245, 212, 0.16);
  border-color: var(--primary-mint);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
}

.arrow-icon {
  font-size: 10px;
  color: var(--primary-mint);
  flex-shrink: 0;
}

/* 네비게이션 링크 */
.main-nav {
  display: flex;
  align-items: center;
  flex-shrink: 1;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 14px;
  align-items: center;
  white-space: nowrap;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--primary-mint);
}

.nav-badge {
  background: var(--primary-mint);
  color: var(--bg-dark);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

/* 헤더 빠른 버튼 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 회원가입 / 로그인 헤더 위젯 스타일 */
.auth-header-wrapper {
  display: flex;
  align-items: center;
}

.btn-auth-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s;
}

.btn-auth-nav:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.user-logged-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

.user-status-dot {
  width: 7px;
  height: 7px;
  background: var(--primary-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-mint);
  animation: pulse-ring 1.8s infinite;
}

.user-name-display {
  font-size: 12.5px;
  color: #ffffff;
}

.user-name-display strong {
  color: var(--primary-mint);
}

.btn-user-logout {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
  transition: color 0.2s;
}

.btn-user-logout:hover {
  color: #ff6b6b;
}

.btn-triage-fast {
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  color: #060b14;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-triage-fast:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0, 245, 212, 0.55);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-cyan);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  z-index: 102;
}

.mobile-menu-toggle:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
}

.mobile-menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--primary-mint);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--primary-mint);
}

/* ========================================================
   메인 히어로 섹션
   ======================================================== */
.hero-section {
  position: relative;
  padding: 80px 24px 70px;
  max-width: 1320px;
  margin: 0 auto;
  z-index: 1;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-mint);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary-mint);
}

.badge-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-mint);
}

.hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 22px;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 34px;
  max-width: 620px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-mint), #00b49c);
  color: #060b14;
  font-size: 16px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
  transition: all 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 35px rgba(0, 245, 212, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-cyan);
}

/* 히어로 통계 그리드 */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-card {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
}

.stat-num small {
  font-size: 14px;
  color: var(--primary-mint);
  margin-left: 2px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* 히어로 비주얼 */
.hero-visual-card {
  position: relative;
}

.visual-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-img {
  transform: scale(1.02);
}

.visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(6, 11, 20, 0.85) 100%);
  pointer-events: none;
}

.floating-tag {
  position: absolute;
  background: rgba(11, 20, 38, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.tag-top {
  top: 18px;
  right: 18px;
}

.tag-bottom {
  bottom: 18px;
  left: 18px;
}

.pulse-green {
  width: 8px;
  height: 8px;
  background-color: var(--primary-mint);
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite;
}

/* ========================================================
   킬러 기능: AI 인터랙티브 스마트 바디 매퍼 섹션
   ======================================================== */
.body-mapper-section {
  padding: 90px 24px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-tag {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary-mint);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 10px;
}

.section-title {
  font-size: 34px;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.mapper-container {
  display: grid;
  grid-template-columns: 1.32fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* 좌측 인체 캔버스 카드: 이미지 뷰 최대화 */
.body-canvas-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  position: relative;
}

.canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

/* 3D X-Ray 나란히 배치 캔버스 스타일 */
.scan-mode-indicators {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.scan-live-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid var(--border-cyan);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* 3D 환부 잠금 / 해제 컨트롤러 바 */
.canvas-lock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-lock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
}

.btn-lock-toggle.unlocked {
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid var(--border-cyan);
  color: var(--primary-mint);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

.btn-lock-toggle.unlocked:hover {
  background: rgba(0, 245, 212, 0.22);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

.btn-lock-toggle.locked {
  background: rgba(255, 82, 82, 0.18);
  border: 1px solid #ff5252;
  color: #ff8585;
  box-shadow: 0 0 18px rgba(255, 82, 82, 0.35);
}

.btn-lock-toggle.locked:hover {
  background: rgba(255, 82, 82, 0.28);
}

.lock-status-chip {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding: 3px 9px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.lock-status-chip.locked {
  color: #ffaa6b;
  border-color: rgba(255, 170, 107, 0.4);
  background: rgba(255, 170, 107, 0.12);
}

/* 3D 인체 해부도: 시점 모드(전체/전면/후면) 인터랙티브 컨트롤러 */
.view-mode-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.view-mode-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.view-mode-btn:hover {
  border-color: var(--primary-mint);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 245, 212, 0.2);
}

.view-mode-btn.active {
  color: #0b1329;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
}

.view-mode-btn#viewBtnAll.active {
  background: linear-gradient(135deg, #00f5d4, #00bbf9);
  border-color: #00f5d4;
  color: #04101e;
}

.view-mode-btn#viewBtnFront.active {
  background: linear-gradient(135deg, #00f5d4, #10b981);
  border-color: #00f5d4;
  color: #04101e;
}

.view-mode-btn#viewBtnBack.active {
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  border-color: #38bdf8;
  color: #ffffff;
}

.dot-front, .dot-back {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-front { background: var(--primary-mint); }
.dot-back { background: var(--accent-blue); }

.view-mode-btn.active .dot-front,
.view-mode-btn.active .dot-back {
  background: currentColor;
}

/* ================= 3D 인체 해부도: 다중 환부 및 방사통(Radiating Pain) 연계 시스템 ================= */

/* 상단 컨트롤 및 잠금 바 */
.canvas-lock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.lock-btn-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-clear-points {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-clear-points:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
  transform: translateY(-1px);
}

.pain-count-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 11, 20, 0.9);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-mint);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-mint);
  box-shadow: 0 0 8px var(--primary-mint);
  animation: pulse-mint-dot 1.5s infinite;
}

@keyframes pulse-mint-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
}

.side-by-side-stage {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #020710;
  min-height: 460px;
}

.xray-backdrop-wrapper {
  position: relative;
  width: 100%;
  line-height: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 45px rgba(0, 245, 212, 0.2), inset 0 0 30px rgba(0, 245, 212, 0.08);
  background: radial-gradient(circle at 50% 50%, #031024 0%, #010611 100%);
  cursor: crosshair;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: max-width 0.35s ease;
  margin: 0 auto;
}

.xray-backdrop-wrapper.view-front-active,
.xray-backdrop-wrapper.view-back-active {
  max-width: 560px; /* 단독 전신 모드 시 스크린 중앙에 최적의 전신 비례로 자리잡음 */
  transform: none;
}

.xray-image {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

@media (max-width: 768px) {
  .side-by-side-stage {
    min-height: 380px;
  }
  .xray-backdrop-wrapper.view-front-active,
  .xray-backdrop-wrapper.view-back-active {
    max-width: 100%;
  }
  .xray-image {
    max-height: 480px;
  }
}

.xray-backdrop-wrapper.is-locked {
  cursor: default;
}

/* 3D 맵 클릭 즉각 반응 펄스 파동 */
.click-ripple-pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid var(--primary-mint);
  background: rgba(0, 245, 212, 0.4);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.8);
  pointer-events: none;
  z-index: 30;
  animation: rippleExpand 0.65s cubic-bezier(0.1, 0.8, 0.3, 1) forwards;
}

@keyframes rippleExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.6);
  }
  100% {
    width: 70px;
    height: 70px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(2.2);
  }
}

.xray-image {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.18) brightness(1.1) drop-shadow(0 0 16px rgba(0, 245, 212, 0.35));
  pointer-events: none;
}

/* 방사통(Radiating Pain) SVG 연결선 레이어 */
.radiating-svg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
  overflow: visible;
}

.radiating-laser-path {
  fill: none;
  stroke: #ff2a55;
  stroke-width: 2.8;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(255, 42, 85, 0.9)) drop-shadow(0 0 16px rgba(255, 42, 85, 0.5));
  animation: radiatingLaserFlow 1s linear infinite;
}

@keyframes radiatingLaserFlow {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* 동적 다중 환부 마커 컨테이너 */
.pain-markers-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

/* 개별 환부 마커 공통 */
.pain-marker {
  position: absolute;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  z-index: 25;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pain-marker:hover {
  transform: translate(-50%, -50%) scale(1.18);
}

/* 마커 레이더 파동 */
.marker-radar {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid #ff2a55;
  animation: markerRadarPulse 2s infinite ease-out;
  pointer-events: none;
}

@keyframes markerRadarPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* 마커 외곽 회전 링 */
.marker-outer-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed #ff2a55;
  animation: rotateTarget 10s linear infinite;
  box-shadow: 0 0 14px rgba(255, 42, 85, 0.6);
}

/* 마커 내부 코어 (번호 표시) */
.marker-core {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #ff2a55;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 0 12px #ff2a55, 0 0 20px #ff2a55;
  border: 2px solid #ffffff;
  z-index: 2;
}

/* 마커 상단/하단 HUD 라벨 */
.marker-hud-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: rgba(6, 11, 20, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 42, 85, 0.6);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  z-index: 5;
}

.marker-hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff2a55;
  box-shadow: 0 0 6px #ff2a55;
}

/* 마커 호버 시 나타나는 원클릭 삭제 버튼 */
.marker-del-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 20px;
  height: 20px;
  background: #ef4444;
  color: #ffffff;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  z-index: 10;
}

.pain-marker:hover .marker-del-btn {
  opacity: 1;
  transform: scale(1);
}

/* 1) 주통증 (원점) 마커 특화 스타일 - 네온 크림슨 레드 */
.pain-marker.is-primary .marker-radar {
  border-color: #ff2a55;
}
.pain-marker.is-primary .marker-outer-ring {
  border-color: #ff2a55;
  box-shadow: 0 0 16px rgba(255, 42, 85, 0.8);
}
.pain-marker.is-primary .marker-core {
  background: transparent !important;
  border-color: #ff2a55;
  box-shadow: 0 0 14px #ff2a55, 0 0 0 1px rgba(0, 0, 0, 0.7);
}
.pain-marker.is-primary .marker-hud-label {
  border-color: #ff2a55;
  color: #ffb3c0;
}
.pain-marker.is-primary .marker-hud-dot {
  background: #ff2a55;
}

/* 2) 방사통·연관통 마커 특화 스타일 - 네온 앰버 오렌지 / 골드 */
.pain-marker.is-radiating .marker-radar {
  border-color: #ff9f43;
}
.pain-marker.is-radiating .marker-outer-ring {
  border-color: #ff9f43;
  box-shadow: 0 0 16px rgba(255, 159, 67, 0.8);
}
.pain-marker.is-radiating .marker-core {
  background: transparent !important;
  border-color: #ff9f43;
  box-shadow: 0 0 14px #ff9f43, 0 0 0 1px rgba(0, 0, 0, 0.7);
}
.pain-marker.is-radiating .marker-hud-label {
  border-color: #ff9f43;
  color: #ffe0b2;
}
.pain-marker.is-radiating .marker-hud-dot {
  background: #ff9f43;
  box-shadow: 0 0 6px #ff9f43;
}

/* 3) 잠금 모드일 때 스타일 */
.pain-marker.is-locked {
  cursor: default;
}
.pain-marker.is-locked:hover {
  transform: translate(-50%, -50%);
}
.pain-marker.is-locked .marker-del-btn {
  display: none !important;
}
.pain-marker.is-locked .marker-outer-ring {
  animation: none;
  border-style: solid;
  border-color: #f59e0b;
}

/* ================= 하단: 실시간 선택된 환부 & 방사통 트레이 ================= */
.selected-pains-tray {
  margin-top: 14px;
  background: rgba(4, 9, 18, 0.88);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tray-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-mint);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tray-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.tray-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.empty-tray-msg {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  padding: 6px 0;
  font-style: italic;
}

/* 개별 환부 칩 */
.pain-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.pain-chip:hover {
  transform: translateY(-2px);
}

.pain-chip.primary {
  background: rgba(255, 42, 85, 0.16);
  border: 1px solid #ff2a55;
  color: #ff859b;
  box-shadow: 0 0 10px rgba(255, 42, 85, 0.2);
}

.pain-chip.primary:hover {
  background: rgba(255, 42, 85, 0.3);
  box-shadow: 0 0 16px rgba(255, 42, 85, 0.4);
}

.pain-chip.radiating {
  background: rgba(255, 159, 67, 0.16);
  border: 1px solid #ff9f43;
  color: #ffd8a8;
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.2);
}

.pain-chip.radiating:hover {
  background: rgba(255, 159, 67, 0.3);
  box-shadow: 0 0 16px rgba(255, 159, 67, 0.4);
}

.chip-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
}

.pain-chip.primary .chip-num {
  background: #ff2a55;
}

.pain-chip.radiating .chip-num {
  background: #ff9f43;
}

.chip-close {
  margin-left: 4px;
  font-size: 11px;
  opacity: 0.7;
}

.pain-chip:hover .chip-close {
  opacity: 1;
  color: #ffffff;
}

/* 우측 문진 다중 선택 뱃지 카운터 */
.step-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step-badge-counter {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid var(--border-cyan);
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

/* 리포트 모달 내 방사통 연계 분석 배너 */
.report-radiation-summary {
  background: linear-gradient(135deg, rgba(255, 42, 85, 0.08), rgba(255, 159, 67, 0.08));
  border: 1px solid rgba(255, 159, 67, 0.4);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 20px;
}

.radiation-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #ff9f43;
  margin-bottom: 8px;
}

.rad-icon {
  font-size: 15px;
}

.radiation-path-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.flow-step-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
}

.flow-step-tag.primary {
  background: rgba(255, 42, 85, 0.2);
  border: 1px solid #ff2a55;
  color: #ff859b;
}

.flow-step-tag.radiating {
  background: rgba(255, 159, 67, 0.2);
  border: 1px solid #ff9f43;
  color: #ffd8a8;
}

.flow-arrow {
  color: #ff9f43;
  font-size: 12px;
  font-weight: 900;
}

/* 4. 인천 부평점 하이라이트 스타일 */
.highlight-branch {
  border-color: var(--primary-mint) !important;
  background: rgba(0, 245, 212, 0.06) !important;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.15) !important;
}

.new-tag {
  background: linear-gradient(135deg, var(--primary-mint), #00a896) !important;
  color: #060b14 !important;
  font-weight: 800 !important;
}

.highlight-item {
  border-color: var(--primary-mint) !important;
  background: rgba(0, 245, 212, 0.08) !important;
}

.canvas-footer {
  margin-top: 15px;
  text-align: center;
}

.hint-text {
  font-size: 12px;
  color: var(--primary-mint);
}

/* 우측 AI 문진 폼 카드 */
.triage-panel-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.ai-bot-avatar {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(56, 189, 248, 0.2));
  border: 1px solid var(--primary-mint);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.2);
}

.bot-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-mint);
  text-transform: uppercase;
}

.panel-headline {
  font-size: 19px;
  color: #ffffff;
}

.triage-step {
  margin-bottom: 20px;
}

.step-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

/* 부위 선택 버튼 그룹 */
.part-selector-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-part {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-part:hover {
  border-color: var(--primary-mint);
  color: #ffffff;
}

.btn-part.active {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.2);
}

/* 라디오 필 옵션 */
.pill-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.pill-option {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.pill-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pill-option span {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: all 0.2s;
}

.pill-option input[type="radio"]:checked + span {
  background: rgba(0, 245, 212, 0.12);
  border-color: var(--primary-mint);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.15);
}

/* VAS 슬라이더 */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.vas-score {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--accent-orange);
}

.vas-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, #10b981 0%, #f59e0b 60%, #ef4444 100%);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.vas-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--accent-orange);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.1s;
}

.vas-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.vas-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* 문진 폼 내 환자 회원 연동 바 */
.triage-patient-auth-bar {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  margin-bottom: 8px;
  gap: 12px;
}

.auth-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-icon-circle {
  width: 32px;
  height: 32px;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid var(--border-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.auth-bar-text {
  display: flex;
  flex-direction: column;
}

.auth-status-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

/* 테스트 도우미 카드 (로그인 불필요 완전 개방 안내) */
.test-helper-card {
  background: rgba(0, 245, 212, 0.05);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-top: 18px;
  margin-bottom: 14px;
}

.test-helper-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.test-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid #10b981;
  color: #34d399;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.test-mode-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

.test-helper-buttons {
  margin-top: 10px;
}

.btn-sample-preset {
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.22), rgba(255, 42, 85, 0.22));
  border: 1.5px solid #ff9f43;
  color: #ffe0b2;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 14px rgba(255, 159, 67, 0.25);
}

.btn-sample-preset:hover {
  background: linear-gradient(135deg, #ff9f43, #ff2a55);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(255, 159, 67, 0.55);
}

.patient-verified-badge.test-badge {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #34d399 !important;
  border: 1px solid #10b981 !important;
}

/* 리포트 생성 메인 버튼 - 잠금 없는 초강력 네온 시안/민트 글로우 */
.btn-generate-report {
  width: 100% !important;
  margin-top: 14px !important;
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%) !important;
  color: #030812 !important;
  font-size: 17px !important;
  font-weight: 900 !important;
  letter-spacing: -0.3px;
  padding: 18px 24px !important;
  border-radius: var(--radius-md) !important;
  border: none !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 0 28px rgba(0, 245, 212, 0.45), 0 8px 20px rgba(0, 0, 0, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  user-select: none;
}

.btn-generate-report:hover {
  transform: translateY(-2px) !important;
  background: linear-gradient(135deg, #33f8dc 0%, #38c8fa 100%) !important;
  box-shadow: 0 0 45px rgba(0, 245, 212, 0.8), 0 12px 28px rgba(0, 0, 0, 0.6) !important;
}

.btn-generate-report:active {
  transform: translateY(0) !important;
}

/* ========================================================
   14대 특화 클리닉 섹션
   ======================================================== */
.clinics-section {
  padding: 90px 24px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.clinic-filter-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.filter-tab {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.filter-tab:hover {
  color: #ffffff;
  border-color: var(--primary-mint);
}

.filter-tab.active {
  background: var(--primary-mint);
  color: var(--bg-dark);
  border-color: var(--primary-mint);
  font-weight: 700;
}

/* 클리닉 카드 그리드 */
.clinics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.clinic-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.clinic-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-cyan);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 245, 212, 0.2);
}

.card-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
  background: rgba(6, 11, 20, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-cyan);
  color: var(--primary-mint);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.2px;
}

/* 클리닉별 3D 반투명 인체 해부 엑스레이 프리뷰 박스 */
.card-xray-preview {
  position: relative;
  width: 100%;
  height: 165px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 245, 212, 0.3);
  background: radial-gradient(circle at center, #0e1a2f 0%, #060b14 100%);
  margin-top: 4px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8), 0 6px 18px rgba(0, 0, 0, 0.4);
}

.card-xray-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(1.02) contrast(1.1);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.clinic-card:hover .card-xray-img {
  transform: scale(1.07);
  filter: brightness(1.15) contrast(1.18);
}

.card-xray-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(6, 11, 20, 0.95) 0%, rgba(6, 11, 20, 0.7) 65%, transparent 100%);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  pointer-events: none;
}

/* 적색 통증 부위 하이라이트 배지 & 펄스 애니메이션 */
.red-focus-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #ff6b7b;
  text-shadow: 0 0 10px rgba(255, 75, 100, 0.8);
  letter-spacing: -0.2px;
}

.dot-red {
  width: 8px;
  height: 8px;
  background: #ff334b;
  border-radius: 50%;
  box-shadow: 0 0 8px #ff334b, 0 0 16px rgba(255, 51, 75, 0.9);
  display: inline-block;
  animation: pulse-red-dot 1.8s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes pulse-red-dot {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 6px #ff334b, 0 0 12px rgba(255, 51, 75, 0.6);
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 0 12px #ff334b, 0 0 22px rgba(255, 51, 75, 1);
  }
}

@keyframes fadeInCard {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.clinic-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.clinic-icon-mini {
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.clinic-name {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 0;
}

.clinic-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}

.clinic-points {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.clinic-points span {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-blue);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.btn-card-action {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-align: center;
}

.clinic-card:hover .btn-card-action {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

/* ========================================================
   프랜차이즈 B2B 솔루션 섹션
   ======================================================== */
.franchise-section {
  padding: 90px 24px;
  background: linear-gradient(180deg, transparent 0%, rgba(11, 19, 37, 0.8) 50%, transparent 100%);
  position: relative;
  z-index: 1;
}

.franchise-container {
  max-width: 1320px;
  margin: 0 auto;
}

.franchise-header {
  text-align: center;
  margin-bottom: 50px;
}

.franchise-showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.benefit-box {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 22px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  transition: all 0.2s;
}

.benefit-box:hover {
  border-color: var(--border-cyan);
  background: var(--bg-card-hover);
}

.benefit-icon {
  font-size: 28px;
  background: rgba(0, 245, 212, 0.1);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-cyan);
}

.benefit-content h4 {
  font-size: 17px;
  margin-bottom: 6px;
}

.benefit-content p {
  font-size: 13.5px;
  color: var(--text-muted);
}

.franchise-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
}

.btn-franchise-apply {
  width: 100%;
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #060b14;
  font-size: 16px;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
  transition: all 0.25s;
  cursor: pointer;
}

.btn-franchise-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.55);
}

.btn-franchise-admin {
  width: 100%;
  background: rgba(14, 28, 48, 0.85);
  color: var(--primary-mint);
  border: 1px solid rgba(0, 245, 212, 0.4);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-franchise-admin:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.25);
  transform: translateY(-1px);
}

.tablet-mockup-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

.tablet-img {
  width: 100%;
  height: auto;
  display: block;
}

.tablet-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(6, 11, 20, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-mint);
  border-top: 1px solid var(--border-cyan);
}

/* ========================================================
   전국 네트워크 지점 섹션
   ======================================================== */
.branches-section {
  padding: 80px 24px;
  max-width: 1320px;
  margin: 0 auto;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.branch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
  position: relative;
  transition: all 0.2s;
}

.branch-card.active, .branch-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(0, 245, 212, 0.1);
}

.branch-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  background: rgba(0, 245, 212, 0.15);
  color: var(--primary-mint);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.branch-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.branch-addr {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.branch-tel {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.branch-hours {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
}

/* ========================================================
   온라인 진료 예약 섹션
   ======================================================== */
.booking-section {
  padding: 80px 24px 100px;
  max-width: 900px;
  margin: 0 auto;
}

.booking-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.booking-header {
  text-align: center;
  margin-bottom: 30px;
}

.booking-title {
  font-size: 28px;
  margin-bottom: 10px;
}

.booking-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.form-group input,
.form-group select {
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: #ffffff;
  font-size: 14px;
  outline: none;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--primary-mint);
  box-shadow: 0 0 10px rgba(0, 245, 212, 0.2);
}

.booking-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.btn-submit-booking {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  color: #060b14;
  font-size: 16px;
  font-weight: 800;
  padding: 15px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glow);
  transition: all 0.25s;
  cursor: pointer;
}

.btn-submit-booking:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 245, 212, 0.45);
}

.btn-booking-admin {
  width: 100%;
  background: rgba(14, 28, 48, 0.85);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  transition: all 0.25s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-booking-admin:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
  transform: translateY(-1px);
}

/* ========================================================
   푸터 영역
   ======================================================== */
.site-footer {
  background: #04070d;
  border-top: 1px solid var(--border-subtle);
  padding: 60px 24px 30px;
}

.footer-container {
  max-width: 1320px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-text {
  font-size: 16px;
  color: #ffffff;
}

.brand-text strong {
  color: var(--primary-mint);
}

.footer-disclaimer {
  font-size: 12px;
  color: var(--text-dim);
  max-width: 600px;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 25px;
}

.footer-info p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}

.copyright {
  margin-top: 8px;
  color: #475569;
}

/* ========================================================
   모달 팝업 스타일
   ======================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.show {
  display: flex;
}

.modal-dialog {
  background: #0a1325;
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  padding: 34px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 212, 0.2);
  max-height: 90vh;
  overflow-y: auto;
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--text-dim);
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}

.modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

/* 리포트 로딩 뷰 */
.report-loading-view {
  text-align: center;
  padding: 50px 20px;
}

.ai-scan-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-ring {
  position: absolute;
  inset: 0;
  border: 2px solid var(--primary-mint);
  border-radius: 50%;
  animation: spin 3s linear infinite;
  border-top-color: transparent;
}

.ring-2 {
  inset: 12px;
  animation-duration: 2s;
  animation-direction: reverse;
  border-color: var(--accent-blue);
  border-bottom-color: transparent;
}

.scan-center-icon {
  font-size: 32px;
}

.loading-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.loading-step {
  font-size: 13px;
  color: var(--primary-mint);
}

/* 리포트 컨텐츠 뷰 */
.report-header {
  text-align: center;
  margin-bottom: 22px;
}

.report-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.1);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 6px;
}

.report-title {
  font-size: 24px;
}

.report-date {
  font-size: 12px;
  color: var(--text-dim);
}

/* AI 통증 사전 분석서 상단 환자 본인 명의 EMR 차트 배너 */
.report-patient-banner {
  background: rgba(0, 245, 212, 0.05);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.patient-banner-icon {
  width: 42px;
  height: 42px;
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.patient-banner-body {
  flex-grow: 1;
}

.patient-line-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.patient-full-name {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.patient-verified-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid var(--border-cyan);
  color: var(--primary-mint);
}

.patient-verified-badge.guest {
  background: rgba(255, 170, 0, 0.12);
  border-color: rgba(255, 170, 0, 0.4);
  color: #ffaa00;
}

.patient-line-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.meta-item strong {
  color: #cbd5e1;
}

.meta-sep {
  color: rgba(255, 255, 255, 0.2);
}

.btn-change-auth {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.btn-change-auth:hover {
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

.report-summary-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 22px;
}

.summary-col {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.sum-label {
  font-size: 11px;
  color: var(--text-dim);
}

.sum-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 3px;
}

.sum-val.highlight {
  color: var(--accent-orange);
}

.report-section {
  margin-bottom: 20px;
}

.section-label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.recommended-clinic-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid var(--border-cyan);
  padding: 16px;
  border-radius: var(--radius-md);
}

.rec-icon {
  font-size: 32px;
}

.rec-info {
  flex-grow: 1;
}

.rec-name {
  font-size: 17px;
  color: var(--primary-mint);
  display: block;
}

.rec-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.rec-score {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
}

.analysis-quote-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 3px solid var(--primary-mint);
  padding: 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.7;
}

.treatment-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.treatment-list li {
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.treatment-list li strong {
  color: #ffffff;
}

.report-action-buttons {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.btn-fast-book {
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  color: #060b14;
  font-weight: 800;
  font-size: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.3);
}

.btn-print-report {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
}

/* 지점 선택 모달 */
.branch-select-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.branch-option-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.branch-option-item:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: var(--primary-mint);
}

.branch-option-item strong {
  font-size: 16px;
  color: #ffffff;
}

.branch-option-item span {
  font-size: 12px;
  color: var(--text-muted);
}

/* 가맹 폼 모달 */
.franchise-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.btn-submit-franchise {
  background: linear-gradient(135deg, #38bdf8, #818cf8);
  color: #060b14;
  font-weight: 800;
  font-size: 15px;
  padding: 14px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* ========================================================
   가맹 문의 접수 현황 관리자 모달 스타일
   ======================================================== */
.franchise-admin-dialog {
  max-width: 960px;
  width: 95%;
  background: #081226;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.fa-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.fa-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.fa-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.fa-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.fa-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(14, 25, 45, 0.7);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.fa-stats {
  font-size: 14px;
  color: #e2e8f0;
}

.fa-stats strong {
  color: var(--primary-mint);
  font-size: 17px;
  margin: 0 2px;
}

.fa-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-fa-action {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-fa-excel {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-fa-excel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.btn-fa-sample {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-fa-sample:hover {
  background: rgba(56, 189, 248, 0.25);
}

.btn-fa-clear {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-fa-clear:hover {
  background: rgba(239, 68, 68, 0.25);
}

.fa-table-container {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #040914;
}

.fa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.fa-table th {
  background: #0d1a33;
  color: var(--primary-mint);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(0, 245, 212, 0.25);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.fa-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.fa-table tr:hover td {
  background: rgba(0, 245, 212, 0.04);
}

.fa-phone-link {
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.fa-phone-link:hover {
  color: var(--primary-mint);
  text-decoration: underline;
}

.fa-status-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  white-space: nowrap;
}

.fa-status-pill.new {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

.fa-status-pill.done {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.btn-fa-del {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-fa-del:hover {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
}

.fa-empty-cell {
  text-align: center;
  padding: 40px !important;
  color: var(--text-muted);
}

.fa-modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.fa-guide-tip {
  font-size: 12.5px;
  color: var(--text-muted);
  flex: 1;
}

.fa-guide-tip code {
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}

.btn-fa-close {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-fa-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .franchise-admin-dialog {
    padding: 16px;
    width: 98%;
  }
  .fa-modal-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .fa-actions {
    width: 100%;
  }
  .btn-fa-action {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }
  .fa-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-fa-close {
    width: 100%;
  }
}

/* ========================================================
   진료 예약 접수 명단 관리자 모달 스타일
   ======================================================== */
.booking-admin-dialog {
  max-width: 980px;
  width: 95%;
  background: #081226;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.ba-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 16px;
  margin-bottom: 18px;
}

.ba-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.ba-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.ba-modal-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.ba-modal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(14, 25, 45, 0.7);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ba-stats {
  font-size: 14px;
  color: #e2e8f0;
}

.ba-stats strong {
  color: #38bdf8;
  font-size: 17px;
  margin: 0 2px;
}

.ba-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-ba-action {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-ba-excel {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-ba-excel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.5);
}

.btn-ba-sample {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.btn-ba-sample:hover {
  background: rgba(56, 189, 248, 0.25);
}

.btn-ba-clear {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-ba-clear:hover {
  background: rgba(239, 68, 68, 0.25);
}

.ba-table-container {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #040914;
}

.ba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}

.ba-table th {
  background: #0d1a33;
  color: #38bdf8;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ba-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  vertical-align: middle;
}

.ba-table tr:hover td {
  background: rgba(56, 189, 248, 0.04);
}

.ba-modal-footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.ba-guide-tip {
  font-size: 12.5px;
  color: var(--text-muted);
  flex: 1;
}

.ba-guide-tip code {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 5px;
  border-radius: 3px;
}

.btn-ba-close {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 9px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ba-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .booking-admin-dialog {
    padding: 16px;
    width: 98%;
  }
  .ba-modal-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ba-actions {
    width: 100%;
  }
  .btn-ba-action {
    flex: 1;
    text-align: center;
    padding: 8px 10px;
    font-size: 12px;
  }
  .ba-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-ba-close {
    width: 100%;
  }
}

/* ========================================================
   환자 회원가입 & 로그인 모달 스타일
   ======================================================== */
.auth-dialog {
  max-width: 480px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 22px;
  gap: 4px;
}

.auth-tab-btn {
  background: transparent;
  border: none;
  padding: 12px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.auth-tab-btn:hover {
  color: #ffffff;
}

.auth-tab-btn.active {
  color: var(--primary-mint);
  border-bottom-color: var(--primary-mint);
}

.auth-tab-pane {
  display: none;
}

.auth-tab-pane.active {
  display: block;
  animation: fadeInCard 0.3s ease forwards;
}

.auth-pane-header {
  margin-bottom: 20px;
}

.auth-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.req {
  color: var(--accent-red);
}

.btn-auth-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  color: #060b14;
  font-size: 14.5px;
  font-weight: 800;
  padding: 13px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 245, 212, 0.3);
  transition: all 0.25s;
  margin-top: 6px;
}

.btn-auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0, 245, 212, 0.5);
}

.quick-demo-login-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-subtle);
  text-align: center;
}

.quick-label {
  display: block;
  font-size: 11.5px;
  color: var(--accent-blue);
  font-weight: 700;
  margin-bottom: 10px;
}

.quick-btn-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.btn-demo-user {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-cyan);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.btn-demo-user:hover {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

/* 토스트 알림 컴포넌트 */
.toast-notification {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(11, 20, 38, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 245, 212, 0.2);
  padding: 12px 24px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 9999;
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 16px;
}

.toast-message {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

/* ========================================================
   애니메이션 키프레임
   ======================================================== */
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes radar-pulse {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.8); opacity: 0; }
}

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

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* ========================================================
   대표원장 소개 섹션 (중앙성모의원 김재민 대표원장)
   ======================================================== */
.doctor-section {
  padding: 90px 24px;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.doctor-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  box-shadow: var(--shadow-card), 0 0 30px rgba(0, 245, 212, 0.12);
  align-items: start;
}

.doctor-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.doctor-photo-frame {
  position: relative;
  width: 100%;
  max-width: 290px;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--primary-mint);
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.25);
  margin-bottom: 12px;
  background: radial-gradient(circle, #0e1e38 0%, #030712 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-sizing: border-box;
}

.doctor-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 14px;
  filter: contrast(1.05) brightness(1.02);
}

.doctor-photo-badge {
  position: static;
  width: 100%;
  max-width: 290px;
  background: rgba(11, 20, 38, 0.85);
  backdrop-filter: blur(10px);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-mint);
  text-align: center;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  margin-bottom: 18px;
  box-sizing: border-box;
}

.doctor-quick-contact {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qc-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.qc-label {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 700;
  text-transform: uppercase;
}

.qc-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary-mint);
  text-decoration: none;
  transition: color 0.2s;
}

.qc-val:hover {
  color: #ffffff;
}

.qc-val-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

.qc-fax {
  font-size: 11px;
  color: var(--text-dim);
}

/* 원장 상세 정보 우측 컬럼 */
.doctor-header {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.doctor-sub-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-mint);
  letter-spacing: 1px;
  display: block;
}

.doctor-name {
  font-size: 30px;
  margin: 4px 0 8px;
  color: #ffffff;
}

.doctor-name strong {
  color: var(--primary-mint);
}

.doctor-motto {
  font-size: 15px;
  color: var(--accent-blue);
  font-weight: 600;
  font-style: italic;
}

.doctor-greeting-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid var(--primary-mint);
  padding: 20px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-bottom: 24px;
}

.greeting-paragraph {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}

.greeting-paragraph strong {
  color: #ffffff;
}

.greeting-paragraph:last-child {
  margin-bottom: 0;
}

.doctor-specialties {
  margin-bottom: 24px;
}

.spec-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-tags span {
  font-size: 12px;
  background: rgba(0, 245, 212, 0.08);
  border: 1px solid var(--border-cyan);
  color: var(--primary-mint);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.doctor-hours-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-md);
  padding: 18px 22px;
}

.hours-header {
  font-size: 14px;
  color: #ffffff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}

.hg-item {
  background: rgba(6, 11, 20, 0.7);
  border: 1px solid var(--border-subtle);
  padding: 10px;
  border-radius: var(--radius-sm);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hg-item span {
  font-size: 11px;
  color: var(--text-dim);
}

.hg-item strong {
  font-size: 13px;
  color: #ffffff;
}

.hg-item.highlight strong {
  color: var(--accent-orange);
}

.hours-footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  margin-top: 10px;
}

.hours-note {
  font-size: 12px;
  color: var(--accent-red);
  font-weight: 700;
}

.bus-note {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.branch-traffic {
  display: block;
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 6px;
}

/* ========================================================
   [헤더 전용 반응형 최적화] - 데스크톱 축소 / 노트북 / 태블릿 완벽 대응
   ======================================================== */

/* [1] 581px ~ 1399px: PC 화면 축소 / 일반 데스크톱 / 노트북 / 태블릿 환경 (2단 듀얼 헤더 시스템)
   - 1행: [로고] [지점선택기]  ------------------  [로그인] [AI 문진]
   - 2행: 8개 전체 메뉴를 한눈에 볼 수 있는 와이드 네비게이션 바
   - PC 화면을 아무리 줄여도 헤더 메뉴가 사라지지 않고 2행에 상시 100% 선명하게 노출됨!
   - 이 구간에서는 햄버거 버튼을 숨기고 모든 메뉴를 직접 클릭할 수 있도록 함! */
@media (max-width: 1399px) and (min-width: 581px) {
  .site-header,
  #mainHeader {
    height: auto !important;
    padding: 6px 0 8px !important;
  }

  .header-container {
    flex-wrap: wrap !important;
    padding: 6px 16px 6px !important;
    gap: 8px 12px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .branch-sub-name,
  .auth-sub-text {
    display: none !important; /* 부가 텍스트 숨김으로 좁은 창에서도 수평 공간 확보 */
  }

  /* 1행 좌측: 로고 & 지점선택기 */
  .logo-area {
    order: 1 !important;
    display: flex !important;
    align-items: center !important;
  }

  .logo-link {
    gap: 8px !important;
  }

  .logo-symbol {
    width: 32px !important;
    height: 32px !important;
  }

  .logo-text .brand-hospital {
    font-size: 11px !important;
  }

  .logo-text .brand-clinic {
    font-size: 14px !important;
  }

  .branch-selector-wrapper {
    order: 2 !important;
    display: block !important;
    margin-left: 6px !important;
  }

  .branch-pill {
    padding: 5px 10px !important;
    font-size: 12px !important;
  }

  /* 1행 우측: 로그인 & AI 문진 버튼 */
  .header-actions {
    order: 3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
  }

  .header-actions .auth-header-wrapper,
  .header-actions .btn-triage-fast {
    display: inline-flex !important;
  }

  .btn-auth-nav {
    padding: 6px 12px !important;
    font-size: 12.5px !important;
  }

  .btn-triage-fast {
    padding: 7px 14px !important;
    font-size: 12.5px !important;
  }

  /* 2행: 전체 너비 네비게이션 바 (8개 메뉴 상시 100% 노출) */
  .main-nav {
    order: 4 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    border-top: 1px solid rgba(0, 245, 212, 0.16) !important;
    padding-top: 8px !important;
    margin-top: 4px !important;
    position: static !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .main-nav ul {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px 12px !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
  }

  .nav-link {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
  }

  /* PC 축소 화면에서는 햄버거 버튼 완전 숨김 (메뉴가 2행에 직접 노출됨) */
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* 581px ~ 880px 좁은 PC 창 / 태블릿 환경 추가 미세 조정 */
@media (max-width: 880px) and (min-width: 581px) {
  .header-container {
    padding: 4px 12px 6px !important;
    gap: 6px 8px !important;
  }

  .main-nav ul {
    gap: 6px 8px !important;
  }

  .nav-link {
    font-size: 11.5px !important;
    padding: 4px 6px !important;
  }

  .branch-pill {
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .btn-auth-nav {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
  }

  .btn-triage-fast {
    padding: 6px 11px !important;
    font-size: 11.5px !important;
  }
}

/* 데스크톱 및 태블릿(581px 이상)에서는 모바일 드로어 전용 상/하단 위젯 숨김 */
@media (min-width: 581px) {
  .mobile-drawer-top,
  .mobile-drawer-bottom {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* [2] 580px 이하: 스마트폰 모바일 전용 환경
   - 1행 초간결 헤더 (로고 좌측, 우측 끝 햄버거바 ☰ 고정)
   - 네온 글래스모피즘 오프캔버스 드로어 (로그인/지점/AI문진/8개메뉴/고객센터/전화연결 풀스크린 제공) */
@media (max-width: 580px) {
  .site-header,
  #mainHeader {
    height: 60px;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }

  .header-container {
    height: 100%;
    padding: 0 16px;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    position: relative;
  }

  /* 1. 로고 영역 (좌측 정렬) */
  .logo-area {
    order: 1;
    flex-shrink: 0;
  }

  .logo-link {
    gap: 8px;
    display: flex;
    align-items: center;
    text-decoration: none;
  }

  .logo-symbol {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .logo-text .brand-hospital {
    font-size: 11px;
    letter-spacing: 0.05em;
  }

  .logo-text .brand-clinic {
    font-size: 14px;
    letter-spacing: -0.02em;
  }

  /* 2. 960px 이하에서는 헤더 1행의 지점 선택기를 숨겨서 로고와 햄버거바만 정돈되게 노출
        (지점 확인 및 변경은 햄버거 메뉴 열었을 때 상단 전용 카드로 제공) */
  .branch-selector-wrapper {
    display: none !important;
  }

  /* 3. 헤더 우측 영역 (우측 상단 햄버거바 완벽 고정) */
  .header-actions {
    order: 2;
    display: flex !important;
    align-items: center;
    gap: 0;
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  /* 헤더 1행에서 로그인 버튼과 빠른 문진 버튼은 100% 숨김
     -> 햄버거 메뉴를 탭했을 때 드로어 상단에 큼직한 풀위드 카드로 즉시 노출 */
  .header-actions .auth-header-wrapper,
  .header-actions .btn-triage-fast {
    display: none !important;
  }

  /* 우측 상단 네온 민트 햄버거 메뉴 토글 버튼 */
  .mobile-menu-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    padding: 7px;
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.12), rgba(0, 114, 255, 0.08));
    border: 1.5px solid var(--primary-mint);
    border-radius: 10px;
    box-shadow: 0 0 14px rgba(0, 245, 212, 0.28);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    z-index: 10002;
    position: relative;
  }

  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:active {
    background: rgba(0, 245, 212, 0.22);
    box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
    transform: scale(1.04);
  }

  .mobile-menu-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, background-color 0.25s ease;
  }

  /* 햄버거 메뉴 활성화 시: 감각적인 ✕ 닫기 애니메이션 */
  .mobile-menu-toggle.active {
    background: rgba(255, 77, 109, 0.18);
    border-color: #ff4d6d;
    box-shadow: 0 0 16px rgba(255, 77, 109, 0.4);
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
    background-color: #ff6b8b;
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
    background-color: #ff6b8b;
  }

  /* 4. 모바일 가로 오버플로우 방지 및 데스크톱 네비게이션 숨김 */
  .ambient-glow {
    display: none !important;
  }

  .main-nav {
    display: none;
  }

  /* 모바일 메뉴 열렸을 때 뒷배경 스크롤 방지 */
  body.mobile-drawer-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
  }

  /* 5. 햄버거 메뉴 열림 시: 네온 글래스모피즘 풀스크린 드로어 */
  .main-nav.show-mobile {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100vw;
    height: calc(100vh - 60px);
    background: #060b14;
    border-top: 1px solid rgba(0, 245, 212, 0.3);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.95);
    padding: 18px 16px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 10001;
    animation: slideDownMobileNav 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
  }

  @keyframes slideDownMobileNav {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* 드로어 상단 위젯 (로그인 + 지점선택 + 빠른 문진 CTA) */
  .mobile-drawer-top {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-sizing: border-box;
  }

  .mobile-drawer-auth-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
  }

  .mobile-drawer-auth-btn,
  .mobile-drawer-branch-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
    font-family: inherit;
  }

  .mobile-drawer-auth-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
  }

  .mobile-drawer-auth-btn:active {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--primary-mint);
  }

  .mobile-drawer-user-badge {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(0, 245, 212, 0.08);
    border: 1px solid rgba(0, 245, 212, 0.35);
    border-radius: 10px;
    font-size: 12.5px;
    color: #ffffff;
  }

  .btn-drawer-logout {
    background: rgba(255, 77, 109, 0.15);
    border: 1px solid rgba(255, 77, 109, 0.4);
    color: #ff6b8b;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    font-family: inherit;
  }

  .mobile-drawer-branch-btn {
    background: rgba(0, 114, 255, 0.09);
    border: 1px solid rgba(0, 114, 255, 0.35);
    color: #70c4ff;
  }

  .mobile-drawer-branch-btn:active {
    background: rgba(0, 114, 255, 0.22);
  }

  /* 3D AI 바디매퍼 문진 풀위드 네온 CTA 버튼 */
  .mobile-drawer-triage-cta {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: #030712;
    background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
    border: none;
    box-shadow: 0 4px 18px rgba(0, 245, 212, 0.35);
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-drawer-triage-cta:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0, 245, 212, 0.5);
  }

  /* 드로어 메뉴 리스트 */
  .main-nav.show-mobile ul.nav-menu-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav.show-mobile li {
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav.show-mobile .nav-link {
    font-size: 15px;
    font-weight: 600;
    color: #f1f5f9;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
  }

  .main-nav.show-mobile .nav-link:active {
    background: rgba(0, 245, 212, 0.14);
    border-color: var(--primary-mint);
    color: var(--primary-mint);
    transform: translateX(4px);
  }

  .main-nav.show-mobile .nav-link.cta-link {
    background: linear-gradient(135deg, rgba(0, 245, 212, 0.2), rgba(0, 212, 178, 0.08));
    border-color: var(--primary-mint);
    color: var(--primary-mint);
    font-weight: 700;
  }

  /* 고객센터 드롭다운 서브메뉴 */
  .main-nav.show-mobile .nav-dropdown-item {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.show-mobile .nav-dropdown-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    background: rgba(10, 18, 35, 0.9);
    border: 1px solid rgba(0, 245, 212, 0.25);
    border-radius: 10px;
    margin-top: 6px;
    margin-left: 10px;
    padding: 8px 10px;
    box-shadow: none;
    list-style: none;
  }

  .main-nav.show-mobile .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #cbd5e1;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .main-nav.show-mobile .nav-dropdown-menu a:active {
    background: rgba(0, 245, 212, 0.15);
    color: var(--primary-mint);
  }

  /* 드로어 하단 위젯 (전화 바로걸기 + 진료시간 안내) */
  .mobile-drawer-bottom {
    display: flex !important;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .mobile-drawer-call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(0, 245, 212, 0.4);
    color: var(--primary-mint);
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
  }

  .mobile-drawer-call-btn:active {
    background: rgba(0, 245, 212, 0.18);
  }

  .mobile-drawer-hours {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    font-size: 11.5px;
    color: #94a3b8;
    line-height: 1.5;
  }
}

/* [3] 420px 이하 초소형 스마트폰 (Galaxy S20, iPhone mini 등 가로 360~400px 환경) */
@media (max-width: 420px) {
  .header-container {
    padding: 0 12px;
  }

  .logo-text .brand-hospital {
    font-size: 10.5px;
  }
  .logo-text .brand-clinic {
    font-size: 13.5px;
  }

  /* 초소형 화면에서는 헤더의 지점 pill을 숨겨 로고와 햄버거바만 정돈되게 노출 (지점은 햄버거 드로어 상단에서 선택) */
  .branch-selector-wrapper {
    display: none !important;
  }

  .mobile-menu-toggle {
    width: 40px;
    height: 40px;
    padding: 6px;
  }
}

/* ========================================================
   기타 콘텐츠 반응형 미디어 쿼리
   ======================================================== */
@media (max-width: 1080px) {
  .doctor-card {
    grid-template-columns: 1fr;
  }
  .hours-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .mapper-container {
    grid-template-columns: 1fr;
  }
  .clinics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .franchise-showcase-grid {
    grid-template-columns: 1fr;
  }
  .branches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .director-profile-card {
    grid-template-columns: 1fr !important;
  }
  .clinical-showcase-grid {
    grid-template-columns: 1fr !important;
  }
  .pub-grid {
    grid-template-columns: 1fr !important;
  }
  .synergy-grid {
    grid-template-columns: 1fr !important;
  }
  .synergy-plus-icon {
    transform: rotate(90deg);
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
  }
  .hero-section {
    padding: 40px 16px 60px !important;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .hero-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }
  .hero-badge {
    max-width: 100%;
    font-size: 11px;
    padding: 6px 12px;
  }
  .hero-title {
    font-size: 26px !important;
    line-height: 1.35;
    word-break: keep-all;
  }
  .hero-desc {
    font-size: 14.5px;
    line-height: 1.6;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .hero-stat-card {
    min-width: 0 !important;
    padding: 14px 10px !important;
  }
  .stat-num {
    font-size: 24px !important;
  }
  .clinics-grid {
    grid-template-columns: 1fr;
  }
  .branches-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .report-summary-box {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .report-action-buttons {
    grid-template-columns: 1fr;
  }
  .footer-top {
    flex-direction: column;
  }
  .channel-row {
    flex-direction: column;
  }
  .novacell-cta-actions {
    flex-direction: column;
  }
}

/* ========================================================
   통증클리닉 센터장 박창혁 박사 & 첨단 노바셀(NovaCell) 전압의학 섹션
   ======================================================== */
.novacell-section {
  padding: 100px 24px;
  background: radial-gradient(circle at 15% 20%, rgba(212, 163, 89, 0.08) 0%, transparent 45%),
              radial-gradient(circle at 85% 70%, rgba(0, 229, 255, 0.06) 0%, transparent 45%),
              linear-gradient(180deg, #060b14 0%, #08101d 50%, #060b14 100%);
  border-top: 1px solid rgba(212, 163, 89, 0.25);
  border-bottom: 1px solid rgba(212, 163, 89, 0.2);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.novacell-container {
  max-width: 1320px;
  margin: 0 auto;
}

.section-tag-gold {
  color: #f7d58b !important;
  background: rgba(212, 163, 89, 0.16) !important;
  border: 1px solid rgba(212, 163, 89, 0.4) !important;
  box-shadow: 0 0 16px rgba(212, 163, 89, 0.25);
}

.highlight-gold-link {
  color: #f7d58b !important;
}

.highlight-gold-link:hover {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(212, 163, 89, 0.8);
}

.badge-gold {
  background: linear-gradient(135deg, #d4a359, #f7d58b) !important;
  color: #030812 !important;
  font-weight: 900 !important;
}

/* 양대 원장 통합 협진 시너지 배너 */
.synergy-collab-banner {
  margin-top: 36px;
  margin-bottom: 50px;
  background: linear-gradient(135deg, rgba(14, 25, 45, 0.85) 0%, rgba(20, 32, 54, 0.85) 100%);
  border: 1.5px solid rgba(212, 163, 89, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(212, 163, 89, 0.12);
  position: relative;
}

.synergy-badge {
  position: absolute;
  top: -14px;
  left: 30px;
  background: linear-gradient(90deg, #d4a359, #f7d58b);
  color: #050d1a;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(212, 163, 89, 0.4);
}

.synergy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.synergy-doctor-col {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-mint);
}

.synergy-doctor-col.syn-gold {
  border-left-color: #d4a359;
  background: rgba(212, 163, 89, 0.05);
}

.syn-role {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-mint);
  display: block;
  margin-bottom: 6px;
}

.syn-role-gold {
  color: #f7d58b !important;
}

.synergy-doctor-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.35;
}

.synergy-doctor-col p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.synergy-plus-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 163, 89, 0.3) 0%, rgba(6, 11, 20, 0.8) 70%);
  border: 1.5px solid rgba(212, 163, 89, 0.5);
  box-shadow: 0 0 20px rgba(212, 163, 89, 0.3);
}

.synergy-plus-icon span {
  font-size: 24px;
  font-weight: 900;
  color: #f7d58b;
  line-height: 1;
}

.synergy-plus-icon small {
  font-size: 9px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* 센터장 프로필 메인 카드 */
.director-profile-card {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 36px;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 163, 89, 0.25);
  border-radius: var(--radius-xl);
  padding: 36px;
  margin-bottom: 50px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  position: relative;
}

/* 흑백 사진 2종 연출 프레임 */
.director-visual-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.director-bw-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(212, 163, 89, 0.4);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 28px rgba(212, 163, 89, 0.2);
}

.director-main-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center 12%;
  display: block;
  filter: contrast(103%) brightness(101%);
  transition: all 0.4s ease;
}

.director-bw-frame:hover .director-main-img {
  filter: contrast(106%) brightness(103%);
  transform: scale(1.02);
}

.director-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(8, 14, 25, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 163, 89, 0.4);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f7d58b;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.director-thumb-portrait {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2.5px solid #d4a359;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(212, 163, 89, 0.45);
  background: #ffffff;
}

.director-sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(102%) brightness(101%);
  transition: transform 0.3s ease;
}

.director-bw-frame:hover .director-sub-img {
  transform: scale(1.05);
}

.director-official-channels {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-channel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-novacell-official {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.25) 0%, rgba(212, 163, 89, 0.1) 100%);
  border: 1.5px solid #d4a359;
  color: #f7d58b;
  box-shadow: 0 4px 16px rgba(212, 163, 89, 0.2);
}

.btn-novacell-official:hover {
  background: linear-gradient(135deg, #d4a359, #b88636);
  color: #030812;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 163, 89, 0.45);
}

.channel-row {
  display: flex;
  gap: 8px;
}

.btn-yt-lab, .btn-yt-solavre {
  flex: 1;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.4);
  color: #ff6b6b;
}

.btn-yt-lab:hover, .btn-yt-solavre:hover {
  background: #e50914;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(229, 9, 20, 0.4);
}

/* 센터장 정보 및 인사말 */
.director-info-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.director-title-group {
  margin-bottom: 20px;
}

.director-tag-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  color: #f7d58b;
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid rgba(212, 163, 89, 0.35);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.director-full-name {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
}

.director-full-name strong {
  color: #f7d58b;
}

.director-full-name small {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dim);
  margin-left: 8px;
}

.director-core-motto {
  font-size: 15px;
  font-weight: 600;
  color: #e0e7ff;
  line-height: 1.5;
  border-left: 3px solid #d4a359;
  padding-left: 14px;
  margin: 12px 0 0 0;
  font-style: italic;
}

.director-greeting-text {
  background: rgba(6, 12, 22, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  margin: 20px 0;
}

.director-greeting-text p {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.75;
  margin-bottom: 12px;
}

.director-greeting-text p:last-child {
  margin-bottom: 0;
}

.director-greeting-text strong {
  color: #ffffff;
}

.director-focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.director-focus-tags .tag-item {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 163, 89, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.director-focus-tags .tag-item:hover {
  color: #f7d58b;
  border-color: #d4a359;
  background: rgba(212, 163, 89, 0.1);
}

/* 저서 및 치유 프로그램 쇼케이스 */
.director-publications-section {
  margin-bottom: 60px;
}

.pub-header {
  text-align: center;
  margin-bottom: 32px;
}

.pub-badge {
  font-size: 11px;
  font-weight: 900;
  color: #f7d58b;
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid rgba(212, 163, 89, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.pub-title {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 6px;
}

.pub-desc {
  font-size: 14px;
  color: var(--text-dim);
}

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pub-card {
  background: rgba(14, 23, 40, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.pub-card.pub-printed {
  border-top: 3px solid #ffb74d;
}

.pub-card.pub-ebook {
  border-top: 3px solid #6aa6ff;
}

.pub-card.pub-mind {
  border-top: 3px solid #7ef0c7;
}

.pub-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
}

.pub-card-head .pub-icon {
  font-size: 22px;
}

.pub-card-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pub-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pub-list li:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(212, 163, 89, 0.4);
  transform: translateX(3px);
}

.book-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.book-info strong {
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 700;
}

.book-info .publisher {
  font-size: 11.5px;
  color: var(--text-dim);
}

.book-type-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #ffb74d;
  background: rgba(255, 183, 77, 0.15);
  border: 1px solid rgba(255, 183, 77, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.ebook-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #6aa6ff;
  background: rgba(106, 166, 255, 0.15);
  border: 1px solid rgba(106, 166, 255, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

/* 디바인 코스 카드 */
.mind-course-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.course-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: #7ef0c7;
  background: rgba(126, 240, 199, 0.15);
  border: 1px solid rgba(126, 240, 199, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.course-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
}

.course-lead {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.6;
  margin-bottom: 10px;
}

.course-detail {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 16px;
}

.course-highlights {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(126, 240, 199, 0.06);
  border: 1px solid rgba(126, 240, 199, 0.2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.course-highlights span {
  font-size: 12px;
  color: #7ef0c7;
  font-weight: 700;
}

/* 노바셀 의료기기 및 실제 임상 시술 쇼케이스 */
.novacell-clinical-showcase {
  background: linear-gradient(135deg, rgba(8, 15, 27, 0.9) 0%, rgba(13, 23, 40, 0.9) 100%);
  border: 1.5px solid rgba(212, 163, 89, 0.3);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 163, 89, 0.1);
}

.showcase-header {
  text-align: center;
  margin-bottom: 36px;
}

.showcase-tag {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
}

.showcase-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 10px;
  margin-bottom: 8px;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.showcase-subtitle {
  font-size: 14.5px;
  color: var(--text-dim);
  max-width: 800px;
  margin: 0 auto;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.5;
}

.clinical-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 520px) 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 1024px) {
  .clinical-showcase-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .novacell-clinical-showcase {
    padding: 24px 14px;
    margin-top: 20px;
    border-radius: var(--radius-lg);
  }
  .showcase-header {
    margin-bottom: 20px;
  }
  .showcase-tag {
    font-size: 10px;
    padding: 3px 10px;
  }
  .showcase-title {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  .showcase-subtitle {
    font-size: 13.5px;
  }
  .clinical-showcase-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .device-cert-badge {
    font-size: 11.5px;
    padding: 8px 10px;
    line-height: 1.4;
    word-break: keep-all;
    text-align: center;
  }
}

.clinical-image-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clinical-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid rgba(212, 163, 89, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  background: #000;
}

.clinical-photo {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.clinical-photo:hover {
  transform: scale(1.02);
}

.device-cert-badge {
  position: static;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(14, 26, 47, 0.95) 0%, rgba(20, 36, 62, 0.95) 100%);
  border: 1px solid rgba(212, 163, 89, 0.55);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  text-align: center;
}

.device-cert-badge strong {
  color: #f7d58b;
  font-weight: 800;
}

.clinical-img-caption {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.clinical-img-caption strong {
  font-size: 13px;
  color: #f7d58b;
  display: block;
  margin-bottom: 4px;
}

.clinical-img-caption p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

.novacell-features-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-mech-box {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: all 0.25s ease;
}

.feature-mech-box:hover {
  background: rgba(212, 163, 89, 0.06);
  border-color: rgba(212, 163, 89, 0.35);
  transform: translateX(4px);
}

.mech-number {
  font-size: 20px;
  font-weight: 900;
  color: #f7d58b;
  background: rgba(212, 163, 89, 0.15);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(212, 163, 89, 0.35);
}

.mech-content h4 {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.mech-content p {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.55;
  margin: 0;
}

.novacell-digital-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 6px;
}

.tool-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(14, 25, 45, 0.6);
  border: 1px solid rgba(212, 163, 89, 0.2);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.tool-item .tool-icon {
  font-size: 20px;
}

.tool-item strong {
  font-size: 12.5px;
  color: #f7d58b;
  display: block;
  margin-bottom: 2px;
}

.tool-item p {
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 0;
}

.novacell-cta-actions {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.btn-novacell-consult {
  flex: 1.2;
  background: linear-gradient(135deg, #d4a359 0%, #f7d58b 100%);
  color: #030812;
  font-size: 14.5px;
  font-weight: 900;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(212, 163, 89, 0.4);
  transition: all 0.25s ease;
}

.btn-novacell-consult:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(212, 163, 89, 0.65);
}

.btn-novacell-link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 163, 89, 0.4);
  color: #f7d58b;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  transition: all 0.25s ease;
}

.btn-novacell-link:hover {
  background: rgba(212, 163, 89, 0.15);
  color: #ffffff;
  border-color: #d4a359;
}

/* ========================================================
   의료진·치료사용 3D 해부학 진단 & 노바셀 전압치료 매뉴얼 배너
   ======================================================== */
.clinician-protocol-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(14, 26, 47, 0.95) 0%, rgba(20, 36, 62, 0.95) 50%, rgba(35, 25, 15, 0.95) 100%);
  border: 1px solid rgba(212, 163, 89, 0.45);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin-bottom: 34px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 0 25px rgba(212, 163, 89, 0.08);
  position: relative;
  overflow: hidden;
}

.clinician-protocol-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #00f5d4, #d4a359);
}

.cpb-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.cpb-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cpb-badge.gold {
  background: rgba(212, 163, 89, 0.18);
  border: 1px solid rgba(212, 163, 89, 0.5);
  color: #f7d58b;
}

.cpb-badge.cyan {
  background: rgba(0, 245, 212, 0.15);
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: var(--primary-mint);
}

.cpb-title {
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.cpb-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cpb-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.cpb-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  text-align: center;
}

.cpb-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: #f7d58b;
  line-height: 1.1;
}

.cpb-stat-label {
  font-size: 10.5px;
  color: var(--text-dim);
  font-weight: 600;
}

/* 클리닉 카드 하단 2분할 버튼 그룹 */
.card-btn-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.btn-card-protocol {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.15) 0%, rgba(14, 26, 47, 0.8) 100%);
  border: 1px solid rgba(212, 163, 89, 0.5);
  color: #f7d58b;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-card-protocol:hover {
  background: linear-gradient(135deg, rgba(212, 163, 89, 0.3) 0%, rgba(20, 36, 62, 0.95) 100%);
  border-color: #f7d58b;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 163, 89, 0.35);
}

/* ========================================================
   의료진·치료사용 3D 해부학 인터랙티브 치료포인트 워크스테이션
   (1240px 2단 레이아웃, 캔버스 핀 조작, 528Hz 타이머)
   ======================================================== */
.cpm-modal-dialog {
  max-width: 1240px;
  width: 96%;
  background: #060c18;
  border: 1px solid rgba(212, 163, 89, 0.55);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95), 0 0 50px rgba(212, 163, 89, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
}

/* 상단 헤더 */
.cpm-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.cpm-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.cpm-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cpm-badge-gold {
  font-size: 11px;
  font-weight: 900;
  color: #f7d58b;
  background: rgba(212, 163, 89, 0.15);
  border: 1px solid rgba(212, 163, 89, 0.45);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.5px;
}

.cpm-clinic-title {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.4px;
}

.cpm-clinic-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.cpm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cpm-cond-count {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

.btn-cpm-book-sm {
  background: linear-gradient(135deg, #d4a359 0%, #f7d58b 100%);
  color: #030812;
  font-size: 12.5px;
  font-weight: 800;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(212, 163, 89, 0.4);
  transition: all 0.2s ease;
}

.btn-cpm-book-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(212, 163, 89, 0.6);
}

/* 세부 질환 탭바 및 가로 스크롤바 (사이드 바 두께인 15px로 대폭 확장하여 접촉 및 클릭 편의성 극대화) */
.cpm-disease-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: auto;
  scrollbar-color: #d4a359 rgba(15, 23, 42, 0.95);
}

.cpm-disease-tabs::-webkit-scrollbar {
  height: 15px; /* 화면을 상하로 이동하는 사이드 바 두께(15px)로 확장 */
}

.cpm-disease-tabs::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
  margin: 0 4px;
}

.cpm-disease-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, #c49347, #e0b46d);
  border-radius: 10px;
  border: 2px solid rgba(15, 23, 42, 0.95);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.cpm-disease-tabs::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, #f5c77e, #d4a359);
  box-shadow: 0 0 12px rgba(212, 163, 89, 0.9);
}

.cpm-disease-tabs::-webkit-scrollbar-thumb:active {
  cursor: grabbing;
  background: var(--primary-mint);
  border-color: #061122;
  box-shadow: 0 0 16px rgba(0, 245, 212, 1);
}


.cpm-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cpm-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cpm-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.15) 0%, rgba(14, 26, 47, 0.9) 100%);
  border-color: var(--primary-mint);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.2);
}

.cpm-tab-btn .tab-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #64748b;
  transition: all 0.2s;
}

.cpm-tab-btn.active .tab-dot {
  background: var(--primary-mint);
  box-shadow: 0 0 8px var(--primary-mint);
}

/* 메인 2단 워크스테이션 그리드 */
.cpm-workstation-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

/* ========================================================
   좌측: 3D 해부도 및 인터랙티브 캔버스 패널
   ======================================================== */
.cpm-visual-panel {
  background: rgba(10, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cpm-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cpm-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #cbd5e1;
}

.cpm-canvas-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-canvas-tool {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-canvas-tool:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-canvas-tool.active-unlock {
  background: rgba(255, 159, 67, 0.2);
  border-color: #ff9f43;
  color: #ff9f43;
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.3);
}

.btn-canvas-tool.highlight-tool {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

/* 3D 캔버스 뷰어 컨테이너 */
.cpm-canvas-wrapper {
  position: relative;
  width: 100%;
  min-height: 480px;
  max-height: 520px;
  background: radial-gradient(circle at center, #0e1b30 0%, #050a14 100%);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.85);
  user-select: none;
}

.cpm-diagram-img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(1.05) contrast(1.15);
  transition: filter 0.3s;
}

/* 핀 오버레이 레이어 */
.cpm-pins-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* 개별 인터랙티브 치료 핀 */
.cpm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 10;
  transition: transform 0.15s ease-out;
}

.cpm-pin:hover {
  transform: translate(-50%, -50%) scale(1.18);
  z-index: 20;
}

.cpm-pin.active {
  transform: translate(-50%, -50%) scale(1.25);
  z-index: 30;
}

/* 移섎즺 ?源??: ?대? 100% ?꾩쟾 ?щ챸 ?먰삎 (?섎? 議곗쭅쨌?좉꼍쨌?섏쨪 臾닿?由? */
.pin-core {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--pin-color, #ff334b), 0 0 0 1.5px rgba(0, 0, 0, 0.85);
  border: 2.5px solid var(--pin-color, #ff334b);
  position: relative;
  z-index: 2;
  pointer-events: none;
  transition: all 0.2s ease;
}

.cpm-pin:hover .pin-core {
  box-shadow: 0 0 16px var(--pin-color, #ff334b), 0 0 0 2px rgba(255, 255, 255, 0.5);
  border-width: 3px;
}

.cpm-pin.active .pin-core {
  border-width: 3px;
  box-shadow: 0 0 22px var(--pin-color, #ff334b), 0 0 0 2px #ffffff;
}

/* ?숆렇?쇰? ?대?瑜??꾪? 媛由ъ? ?딅뒗 ?곷떒 ?뚮줈???쇰꺼 諭껋? */
.pin-label-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(3, 7, 18, 0.95);
  color: #ffffff;
  border: 1.5px solid var(--pin-color, #ff334b);
  border-radius: 9999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.9), 0 0 8px var(--pin-color, #ff334b);
  z-index: 4;
  pointer-events: none;
  transition: all 0.2s ease;
}

.cpm-pin.active .pin-label-badge {
  background: var(--pin-color, #ff334b);
  color: #030812;
  font-weight: 900;
  box-shadow: 0 0 14px var(--pin-color, #ff334b);
}

/* ?멸낸?쇰줈留??쇱졇?섍????덉씠???꾩뒪 ?뚮룞 (?대????꾨꼍 ?щ챸 ?좎?) */
.pin-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--pin-color, #ff334b);
  opacity: 0;
  background: transparent !important;
  animation: pinPulseWave 2.2s cubic-bezier(0.1, 0.7, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes pinPulseWave {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* 위치 이동 안내 배너: 반투명 글래스모피즘 + 하단 가장자리 배치 + 자유 드래그 이동 지원 */
.cpm-drag-banner {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  max-width: calc(100% - 24px);
  background: rgba(255, 159, 67, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 159, 67, 0.55);
  color: #ffe8cc;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 159, 67, 0.2);
  z-index: 50;
  cursor: grab;
  user-select: none;
  touch-action: none;
  animation: fadeInCard 0.25s ease;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cpm-drag-banner:hover {
  background: rgba(255, 159, 67, 0.35);
  border-color: rgba(255, 159, 67, 0.75);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 14px rgba(255, 159, 67, 0.35);
}

.cpm-drag-banner.dragging {
  cursor: grabbing !important;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 159, 67, 0.5);
  opacity: 0.95;
}

.drag-handle-icon {
  font-size: 13px;
  opacity: 0.75;
  cursor: grab;
  letter-spacing: -1px;
}

.drag-banner-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  letter-spacing: -0.2px;
  pointer-events: none;
}

.btn-drag-banner-close {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 1;
  transition: all 0.15s ease;
}

.btn-drag-banner-close:hover {
  background: rgba(255, 71, 87, 0.95);
  border-color: #ff4757;
  transform: scale(1.15);
}

/* 선택된 타깃 인포 카드 */
.cpm-target-detail-card {
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
}

.td-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.td-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.td-badge {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #ff334b;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.td-name {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.td-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-td-del {
  background: rgba(255, 51, 75, 0.15);
  border: 1px solid rgba(255, 51, 75, 0.4);
  color: #ff334b;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-td-del:hover {
  background: #ff334b;
  color: #ffffff;
}

.btn-td-edit {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-td-edit:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.td-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin: 0;
}

/* ========================================================
   우측: 4단계 임상 프로토콜 & 528Hz 세포전압 타이머 패널
   ======================================================== */
.cpm-info-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 4단계 스텝 카드 */
.cpm-card-step {
  background: rgba(10, 18, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.step-num {
  font-size: 12px;
  font-weight: 900;
  color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid rgba(0, 245, 212, 0.35);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-num.gold-num {
  color: #f7d58b;
  background: rgba(212, 163, 89, 0.15);
  border-color: rgba(212, 163, 89, 0.45);
}

.step-num.cyan-num {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.45);
}

.step-head h4 {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.step-tag-device {
  font-size: 10px;
  font-weight: 800;
  color: #030812;
  background: linear-gradient(135deg, #d4a359, #f7d58b);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.step-tag-case {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

.step-body-text {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
}

.step-sub-box {
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #94a3b8;
}

.step-sub-box strong {
  color: #e2e8f0;
}

/* STEP 3 노바셀 카드 특화 */
.cpm-card-step.step-novacell {
  border-color: rgba(212, 163, 89, 0.4);
  background: linear-gradient(135deg, rgba(14, 26, 47, 0.85) 0%, rgba(32, 24, 14, 0.85) 100%);
}

.step-novacell-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nova-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.5;
}

.nova-line.highlight-line {
  color: #f7d58b;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 163, 89, 0.25);
}

.nova-dot {
  flex-shrink: 0;
}

/* STEP 4 증례 카드 특화 */
.cpm-card-step.step-case {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(8, 16, 32, 0.8);
}

.step-case-text {
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.6;
  margin: 0;
  background: rgba(0, 0, 0, 0.35);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3px solid #38bdf8;
}

/* ========================================================
   528Hz 세포 전압 치유 타이머 위젯
   ======================================================== */
.cpm-timer-widget {
  background: linear-gradient(135deg, rgba(14, 26, 47, 0.9) 0%, rgba(20, 36, 62, 0.9) 100%);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.timer-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.timer-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-icon {
  font-size: 20px;
}

.timer-title-group strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
}

.timer-title-group small {
  font-size: 11px;
  color: var(--text-dim);
}

.timer-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.timer-status-badge.running {
  background: rgba(0, 245, 212, 0.18);
  border: 1px solid var(--primary-mint);
  color: var(--primary-mint);
  animation: pulse-red-dot 1.5s infinite;
}

.timer-status-badge.paused {
  background: rgba(255, 159, 67, 0.18);
  color: #ff9f43;
}

.timer-status-badge.finished {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
}

.timer-display-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.timer-digit {
  font-family: 'Outfit', monospace;
  font-size: 38px;
  font-weight: 800;
  color: var(--primary-mint);
  text-shadow: 0 0 15px rgba(0, 245, 212, 0.5);
  letter-spacing: 2px;
  line-height: 1;
}

.timer-presets {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-preset:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.btn-preset.active {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

.timer-ctrl-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-timer-action {
  flex: 1;
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-timer-start {
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  color: #030812;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.35);
}

.btn-timer-start:hover {
  box-shadow: 0 0 25px rgba(0, 245, 212, 0.55);
}

.btn-timer-pause {
  background: #ff9f43;
  color: #030812;
}

.btn-timer-reset {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid var(--border-subtle);
  flex: 0.6;
}

.btn-timer-sound {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.btn-timer-sound.muted {
  color: #64748b;
  opacity: 0.6;
}

.btn-timer-test-sound {
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid var(--primary-mint);
  color: var(--primary-mint);
  font-size: 11px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-timer-test-sound:hover {
  background: rgba(0, 245, 212, 0.25);
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.45);
}

.btn-timer-test-sound.playing {
  background: var(--primary-mint);
  color: #030812;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.7);
  animation: pulse-red-dot 1s infinite;
}

.btn-timer-singing-bowl {
  background: rgba(255, 159, 67, 0.15);
  border: 1px solid #ff9f43;
  color: #ff9f43;
  font-size: 11px;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.btn-timer-singing-bowl:hover {
  background: rgba(255, 159, 67, 0.3);
  box-shadow: 0 0 15px rgba(255, 159, 67, 0.5);
  transform: translateY(-1px);
}

.btn-timer-singing-bowl.ringing {
  background: #ff9f43;
  color: #030812;
  box-shadow: 0 0 22px rgba(255, 159, 67, 0.85);
  animation: pulse-singing-bowl 2s infinite ease-in-out;
}

@keyframes pulse-singing-bowl {
  0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 159, 67, 0.5); }
  50% { transform: scale(1.04); box-shadow: 0 0 25px rgba(255, 159, 67, 0.9); }
  100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 159, 67, 0.5); }
}

.timer-freq-badge {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* 모달 하단 푸터 액션 */
.cpm-action-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-cpm-book {
  background: linear-gradient(135deg, #d4a359 0%, #f7d58b 100%);
  color: #030812;
  font-size: 14px;
  font-weight: 900;
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(212, 163, 89, 0.4);
  transition: all 0.25s ease;
}

.btn-cpm-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 163, 89, 0.65);
}

.btn-cpm-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cpm-close:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

/* ========================================================
   커스텀 타깃 추가 다이얼로그 (팝업 속 팝업)
   ======================================================== */
.custom-target-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ctm-box {
  background: #0c172c;
  border: 1px solid rgba(0, 245, 212, 0.4);
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 245, 212, 0.2);
  animation: modalFadeIn 0.25s ease;
}

.ctm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ctm-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.ctm-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  cursor: pointer;
}

.ctm-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ctm-color-palette {
  display: flex;
  align-items: center;
  gap: 10px;
}

.palette-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s;
}

.palette-dot.active {
  transform: scale(1.2);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.ctm-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.btn-ctm-cancel {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: #cbd5e1;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-ctm-save {
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  border: none;
  color: #030812;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ========================================================
   3D 임상 워크스테이션 모달 (CPM) 미디어 쿼리 반응형 최적화
   (스마트폰 및 태블릿에서 좌우 쏠림, 글자 잘림, 타이머 짤림 100% 해결)
   ======================================================== */
@media (max-width: 980px) {
  .cpm-workstation-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .cpm-canvas-wrapper {
    min-height: 360px;
  }
}

@media (max-width: 768px) {
  /* 1. 모달 배경 및 다이얼로그 여백 최적화 (화면 좌우 쏠림 및 잘림 원천 방지) */
  .modal-backdrop {
    padding: 10px 8px !important;
    align-items: center;
    justify-content: center;
  }

  .cpm-modal-dialog {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 12px 20px !important;
    max-height: 94vh !important;
    border-radius: var(--radius-md) !important;
    overflow-x: hidden !important; /* 가로 스크롤 및 비대칭 밀림 원천 차단 */
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  /* 2. 상단 헤더 */
  .cpm-header {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .cpm-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .cpm-title-wrap {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .cpm-clinic-title {
    font-size: 20px;
    word-break: keep-all;
    line-height: 1.3;
  }

  .cpm-header-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .btn-cpm-book-sm {
    font-size: 11.5px;
    padding: 6px 12px;
  }

  /* 3. 2단 그리드 -> 1단 세로 스택 */
  .cpm-workstation-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
    width: 100%;
  }

  /* 4. 좌측 3D 해부도 패널 및 툴바 (우측 잘림 완벽 방지) */
  .cpm-visual-panel {
    padding: 12px !important;
    width: 100%;
    box-sizing: border-box;
    gap: 10px;
  }

  .cpm-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .cpm-panel-title {
    font-size: 12.5px;
    word-break: keep-all;
    line-height: 1.35;
    width: 100%;
  }

  .cpm-canvas-toolbar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .btn-canvas-tool {
    font-size: 11px;
    padding: 6px 8px;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .cpm-canvas-wrapper {
    min-height: 270px;
    max-height: 320px;
    width: 100%;
  }

  /* 5. 우측 프로토콜 패널 & 단계별 카드 (텍스트 넘침 방지) */
  .cpm-protocol-panel {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cpm-card-step {
    padding: 12px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .cpm-card-step .step-head {
    flex-wrap: wrap;
    gap: 6px;
  }

  .step-novacell-box,
  .step-case-text,
  .step-desc {
    word-break: keep-all;
    overflow-wrap: break-word;
    font-size: 13px;
    line-height: 1.5;
  }

  /* 6. 타이머 위젯 (텍스트 및 숫자 좌측 잘림 완벽 해결) */
  .cpm-timer-widget {
    padding: 14px 12px !important;
    width: 100%;
    box-sizing: border-box;
  }

  .timer-widget-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }

  .timer-title-group {
    width: 100%;
    gap: 8px;
  }

  .timer-title-group strong {
    font-size: 13.5px;
    line-height: 1.35;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .timer-title-group small {
    font-size: 11px;
  }

  .timer-display-row {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
  }

  .timer-digit {
    font-size: 34px !important;
    text-align: center;
    width: 100%;
    letter-spacing: 2px;
  }

  .timer-presets {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 6px;
  }

  .btn-preset {
    flex: 1;
    min-width: 44px;
    text-align: center;
    padding: 7px 4px;
    font-size: 12px;
  }

  .timer-ctrl-row {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1.25fr;
    gap: 6px;
    width: 100%;
  }

  .btn-timer-action {
    font-size: 11.5px;
    padding: 9px 4px;
    white-space: nowrap;
    justify-content: center;
  }

  /* 7. 하단 예약/닫기 액션 버튼 (좌측 잘림 방지 및 균형 배치) */
  .cpm-action-footer {
    display: flex;
    flex-direction: row;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    padding-top: 12px;
    justify-content: stretch;
  }

  .btn-cpm-book {
    flex: 2;
    font-size: 13px;
    padding: 12px 6px;
    text-align: center;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-cpm-close {
    flex: 1;
    font-size: 13px;
    padding: 12px 6px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .timer-ctrl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cpm-action-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .btn-cpm-book,
  .btn-cpm-close {
    width: 100%;
    flex: auto;
  }
}

/* ========================================================
   10개 특화 통증클리닉 섹션 (novacell.kr 3D 통증클리닉 레이아웃)
   ======================================================== */
.clinics-section {
  padding: 100px 0;
  background: radial-gradient(circle at 50% 20%, rgba(0, 245, 212, 0.04) 0%, rgba(6, 11, 20, 1) 70%);
  position: relative;
  overflow: hidden;
}

.clinics-main-wrapper {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* 상단 3대 병태기전 필터 탭 */
.mechanism-filter-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 16px 0;
}

.mech-pill {
  background: rgba(14, 24, 46, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.mech-pill:hover {
  background: rgba(20, 36, 68, 0.9);
  border-color: rgba(0, 245, 212, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
}

.mech-pill.active {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.22), rgba(56, 189, 248, 0.22));
  border-color: var(--primary-mint);
  color: var(--primary-mint);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.35);
  font-weight: 700;
}

/* 실시간 활성 카운트 표시 배너 */
.active-count-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(11, 20, 38, 0.6);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  font-size: 13px;
  color: #94a3b8;
  margin-top: 6px;
}

.active-count-indicator strong {
  color: var(--primary-mint);
  font-weight: 800;
  font-size: 15px;
}

.count-pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--primary-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-mint);
  animation: pulseDot 1.6s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

/* 2단 레이아웃 (사이드바 + 메인 그리드) */
.clinics-layout-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 40px;
}

/* 좌측 사이드바 */
.clinics-sidebar {
  background: rgba(11, 19, 36, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 90px;
}

.sidebar-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-title {
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.3px;
}

.btn-toggle-anatomy {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-toggle-anatomy:hover {
  background: rgba(0, 245, 212, 0.12);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

/* 3D 해부도 인터랙티브 타깃 위젯 */
.anatomy-target-widget {
  background: #060b14;
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.anatomy-target-widget.collapsed {
  display: none;
}

.atw-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-mint);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.atw-media {
  position: relative;
  width: 100%;
  height: 200px;
  background: #03070f;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.atw-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.atw-target-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.pin-center {
  display: block;
  width: 12px;
  height: 12px;
  background: #f43f5e;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px #f43f5e;
}

.pin-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border: 2px solid #f43f5e;
  border-radius: 50%;
  opacity: 0.8;
  animation: pinRipple 1.8s infinite ease-out;
}

@keyframes pinRipple {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.pin-label {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(244, 63, 94, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.atw-caption {
  font-size: 11px;
  color: #94a3b8;
  line-height: 1.4;
  margin-top: 8px;
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px;
  border-radius: 4px;
}

/* 10개 클리닉 네비게이션 리스트 */
.clinics-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clinic-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.clinic-nav-item:hover {
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.3);
  color: #ffffff;
  transform: translateX(3px);
}

.clinic-nav-item.active {
  background: linear-gradient(90deg, rgba(0, 245, 212, 0.18), rgba(56, 189, 248, 0.08));
  border-color: var(--primary-mint);
  color: var(--primary-mint);
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.15);
  font-weight: 700;
}

.cni-icon {
  font-size: 17px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cni-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cni-count {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.clinic-nav-item.active .cni-count {
  background: var(--primary-mint);
  color: #030812;
  font-weight: 800;
}

.clinic-nav-item.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.1);
}

.clinic-nav-item.disabled:hover {
  background: transparent;
  transform: none;
  color: #cbd5e1;
}

.cni-count.preparing {
  background: rgba(251, 146, 60, 0.15);
  color: var(--accent-orange);
  font-size: 10px;
}

/* 우측 메인: 질환 카드 그리드 */
.clinics-main-content {
  min-width: 0;
}

.conditions-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 22px;
}

/* 개별 질환 카드 (novacell.kr 스타일 일치) */
.condition-card {
  background: #0b1426;
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  position: relative;
}

.condition-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-mint);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 25px rgba(0, 245, 212, 0.2);
}

.cc-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px 14px;
  background: rgba(14, 24, 46, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cond-no-badge {
  background: rgba(0, 245, 212, 0.15);
  color: var(--primary-mint);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(0, 245, 212, 0.3);
}

.cond-mech-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}

.cond-mech-badge.nerve {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.cond-mech-badge.tendon {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.3);
}

.cond-mech-badge.autonomic {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.cc-media {
  position: relative;
  width: 100%;
  height: 190px;
  background: #050a14;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.condition-card:hover .cc-img {
  transform: scale(1.05);
}

.cc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.cc-clinic-name {
  font-size: 11px;
  color: var(--primary-mint);
  font-weight: 700;
  margin-bottom: 4px;
}

.cc-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.4;
  margin-bottom: 8px;
  min-height: 42px;
}

.cc-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc-target-tag {
  font-size: 11px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 6px;
  padding: 6px 10px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cc-target-tag .tag-icon {
  color: #f43f5e;
  font-size: 12px;
}

.btn-view-protocol {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.12), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(0, 245, 212, 0.4);
  color: var(--primary-mint);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-view-protocol:hover {
  background: linear-gradient(135deg, var(--primary-mint), #00a896);
  color: #030812;
  box-shadow: 0 0 15px rgba(0, 245, 212, 0.4);
  transform: translateY(-1px);
}

/* 필터 결과 없을 때 */
.empty-conditions-msg {
  text-align: center;
  padding: 60px 20px;
  background: rgba(11, 20, 38, 0.5);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
}

.empty-conditions-msg p {
  color: #94a3b8;
  font-size: 15px;
  margin-bottom: 16px;
}

.btn-reset-filters {
  background: var(--primary-mint);
  color: #030812;
  border: none;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* 반응형 */
@media (max-width: 1080px) {
  .clinics-layout-container {
    grid-template-columns: 280px 1fr;
    gap: 20px;
  }
}

@media (max-width: 900px) {
  .clinics-layout-container {
    grid-template-columns: 1fr;
  }
  .clinics-sidebar {
    position: static;
  }
  .conditions-cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (max-width: 600px) {
  .conditions-cards-grid {
    grid-template-columns: 1fr;
  }
}





/* ==============================================================================
   [NEW] 고객센터 (문의하기 / FAQ 12선 / 유튜브 동영상 자료실) & 헤더 드롭다운 스타일
   ============================================================================== */

/* 1. 헤더 네비게이션 드롭다운 */
.nav-dropdown-item {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown-arrow {
  font-size: 11px;
  color: var(--primary-mint);
  transition: transform 0.25s ease;
}

.nav-dropdown-item:hover .nav-dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(10, 18, 30, 0.96);
  border: 1px solid rgba(0, 245, 212, 0.28);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 245, 212, 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 14px;
  padding: 8px 6px;
  min-width: 200px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

/* 호버 시 브릿지 가상요소로 마우스 이탈 방지 */
.nav-dropdown-item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu li {
  margin: 3px 0;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(0, 245, 212, 0.12);
  color: #ffffff;
  transform: translateX(4px);
}

.sub-menu-icon {
  font-size: 14px;
}

/* 2. 고객센터 섹션 전체 래퍼 */
.support-section {
  padding: 100px 24px;
  background: radial-gradient(circle at 50% 0%, rgba(13, 27, 42, 0.8) 0%, rgba(6, 11, 20, 0.98) 100%);
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.support-container {
  max-width: 1240px;
  margin: 0 auto;
}

.support-header {
  text-align: center;
  margin-bottom: 40px;
}

.support-header .section-desc {
  max-width: 720px;
  margin: 12px auto 28px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

/* 3. 하부 탭 네비게이션 버튼 바 */
.support-nav-tabs {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 50px;
  padding: 6px;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.support-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 14.5px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  font-family: inherit;
}

.support-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.support-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.2) 0%, rgba(0, 245, 212, 0.08) 100%);
  color: var(--primary-mint);
  border: 1px solid var(--primary-mint);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.3);
}

/* 4. 탭 패널 전환 */
.support-tab-pane {
  display: none;
  animation: fadeInPane 0.35s ease forwards;
}

.support-tab-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 5. [탭 1: 문의하기] 스타일 */
.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

.inquiry-info-card,
.inquiry-form-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(0, 245, 212, 0.18);
  border-radius: 20px;
  padding: 36px;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.info-card-header h3,
.form-card-header h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin: 10px 0 8px;
}

.info-card-header p,
.form-card-header p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.55;
  margin-bottom: 24px;
}

.support-badge {
  display: inline-block;
  background: rgba(0, 245, 212, 0.15);
  color: var(--primary-mint);
  border: 1px solid rgba(0, 245, 212, 0.3);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
}

.info-channel-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  transition: all 0.2s ease;
}

.channel-item:hover {
  background: rgba(0, 245, 212, 0.06);
  border-color: rgba(0, 245, 212, 0.3);
  transform: translateX(4px);
}

.channel-item.highlight-bupyeong {
  border-color: rgba(0, 245, 212, 0.35);
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.08) 0%, rgba(13, 27, 42, 0.6) 100%);
}

.channel-icon {
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(0, 245, 212, 0.1);
  border-radius: 12px;
}

.channel-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.channel-tag {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.channel-phone {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.5px;
}

.channel-phone:hover {
  color: var(--primary-mint);
}

.channel-sub {
  font-size: 12px;
  color: #64748b;
}

.inquiry-notice-box {
  display: flex;
  gap: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}

.notice-icon {
  font-size: 20px;
}

.notice-text strong {
  display: block;
  font-size: 13.5px;
  color: #fbbf24;
  margin-bottom: 4px;
}

.notice-text p {
  font-size: 12.5px;
  color: #cbd5e1;
  margin: 2px 0;
}

.notice-sub {
  color: #94a3b8 !important;
  font-size: 11.5px !important;
  margin-top: 6px !important;
}

.btn-goto-booking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid var(--primary-mint);
  color: var(--primary-mint);
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-goto-booking:hover {
  background: var(--primary-mint);
  color: #060b14;
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.4);
}

/* 문의 폼 입력 필드 */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #e2e8f0;
}

.form-field .req {
  color: #ff5c77;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(6, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #ffffff;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary-mint);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.25);
  background: rgba(10, 18, 30, 0.95);
}

.form-field select option {
  background: #0f172a;
  color: #ffffff;
}

.form-agreement {
  margin: 18px 0 24px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: #94a3b8;
  cursor: pointer;
}

.checkbox-container input {
  accent-color: var(--primary-mint);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.btn-submit-inquiry {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #00f5d4 0%, #00b4d8 100%);
  color: #060b14;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 245, 212, 0.35);
}

.btn-submit-inquiry:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 245, 212, 0.5);
  filter: brightness(1.08);
}

/* 6. [탭 2: FAQ 12선] 스타일 */
.faq-container {
  max-width: 980px;
  margin: 0 auto;
}

.faq-top-bar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.faq-search-wrapper {
  position: relative;
  width: 100%;
}

.faq-search-wrapper .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #94a3b8;
}

.faq-search-wrapper input {
  width: 100%;
  padding: 16px 44px 16px 48px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(0, 245, 212, 0.22);
  border-radius: 14px;
  font-size: 15px;
  color: #ffffff;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.faq-search-wrapper input:focus {
  outline: none;
  border-color: var(--primary-mint);
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.3);
}

.btn-faq-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.faq-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-cat-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.faq-cat-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.faq-cat-pill.active {
  background: rgba(0, 245, 212, 0.15);
  border-color: var(--primary-mint);
  color: var(--primary-mint);
}

.faq-results-summary {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 18px;
}

.highlight-mint {
  color: var(--primary-mint);
  font-weight: 700;
}

/* FAQ 아코디언 아이템 */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(0, 245, 212, 0.28);
}

.faq-item.open {
  border-color: rgba(0, 245, 212, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.faq-question-btn {
  width: 100%;
  background: transparent;
  border: none;
  text-align: left;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: #ffffff;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  transition: color 0.2s ease;
}

.faq-question-btn:hover {
  color: var(--primary-mint);
}

.faq-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.badge-cure {
  background: rgba(0, 245, 212, 0.15);
  color: var(--primary-mint);
}

.badge-aka {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.badge-service {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.badge-biz {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
}

.faq-q-text {
  flex: 1;
  line-height: 1.45;
}

.faq-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary-mint);
}

.faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  background: rgba(6, 11, 20, 0.5);
  padding: 0 24px;
}

.faq-item.open .faq-answer-content {
  max-height: 600px;
  padding: 0 24px 22px 24px;
  transition: max-height 0.35s ease-in, padding 0.3s ease;
}

.faq-answer-content p {
  font-size: 14.5px;
  color: #cbd5e1;
  line-height: 1.7;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 16px;
}

.faq-answer-content strong {
  color: #ffffff;
}

/* 7. [탭 3: 동영상 자료실] 스타일 */
.video-archive-container {
  max-width: 1080px;
  margin: 0 auto;
}

/* 상단 유튜브 채널 배너 */
.yt-channel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1) 0%, rgba(15, 23, 42, 0.85) 100%);
  border: 1px solid rgba(255, 0, 0, 0.3);
  border-radius: 20px;
  padding: 24px 32px;
  margin-bottom: 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.yt-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.yt-avatar-pulse {
  width: 60px;
  height: 60px;
  background: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(255, 0, 0, 0.55);
  flex-shrink: 0;
}

.yt-play-icon {
  color: #ffffff;
  font-size: 24px;
  margin-left: 3px;
}

.yt-badge {
  font-size: 11px;
  font-weight: 800;
  color: #ff4d4d;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 4px;
}

.yt-channel-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.yt-channel-desc {
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.btn-yt-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.4);
}

.btn-yt-subscribe:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.6);
}

/* 메인 영상 임베드 쇼케이스 */
.main-video-showcase {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 245, 212, 0.22);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
  margin-bottom: 32px;
}

.video-player-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 비율 */
  height: 0;
  overflow: hidden;
  background: #000000;
}

.video-player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-poster-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.35s ease;
}

.video-poster-overlay.playing {
  opacity: 0;
  pointer-events: none;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  filter: brightness(0.95);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.video-poster-overlay:hover .video-poster-img {
  transform: scale(1.02);
  filter: brightness(1);
}

.video-play-btn-large {
  position: absolute;
  width: 76px;
  height: 76px;
  background: rgba(255, 0, 0, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.7);
  transition: all 0.25s ease;
}

.video-poster-overlay:hover .video-play-btn-large {
  transform: scale(1.15);
  background: #ff0000;
  box-shadow: 0 0 45px rgba(255, 0, 0, 0.95);
}

.yt-play-arrow {
  color: #ffffff;
  font-size: 32px;
  margin-left: 5px;
}

.video-poster-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10, 18, 30, 0.88);
  border: 1px solid rgba(255, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.video-meta-box {
  padding: 28px 32px;
}

.meta-tag-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.video-tag {
  background: rgba(0, 245, 212, 0.15);
  color: var(--primary-mint);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}

.video-channel-tag {
  color: #94a3b8;
  font-size: 12px;
}

.video-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.45;
}

.video-summary {
  font-size: 14.5px;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 20px;
}

.video-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-yt-outlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-yt-outlink:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: #ff0000;
  color: #ffffff;
}

.btn-yt-jump-clinic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 245, 212, 0.12);
  border: 1px solid var(--primary-mint);
  color: var(--primary-mint);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-yt-jump-clinic:hover {
  background: var(--primary-mint);
  color: #060b14;
}

/* 추천 영상 큐레이션 그리드 */
.video-curation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.video-curation-card {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.25s ease;
}

.video-curation-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-mint);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.video-curation-card.active {
  border-color: var(--primary-mint);
  background: rgba(0, 245, 212, 0.06);
}

.thumb-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #060b14;
  overflow: hidden;
}

.thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.video-curation-card:hover .thumb-box img {
  transform: scale(1.04);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-curation-card:hover .thumb-overlay,
.video-curation-card.active .thumb-overlay {
  opacity: 1;
}

.play-badge {
  background: rgba(0, 245, 212, 0.85);
  color: #060b14;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.card-details {
  padding: 16px;
}

.v-cat {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-mint);
  display: block;
  margin-bottom: 4px;
}

.v-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-sub {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 8. 모바일 반응형 처리 */
@media (max-width: 992px) {
  .inquiry-grid {
    grid-template-columns: 1fr;
  }
  .yt-channel-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .video-curation-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .support-section {
    padding: 60px 16px;
  }
  .support-nav-tabs {
    flex-direction: column;
    border-radius: 20px;
    width: 100%;
  }
  .support-tab-btn {
    width: 100%;
    justify-content: center;
    border-radius: 14px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .inquiry-info-card,
  .inquiry-form-card {
    padding: 24px 18px;
  }
}


/* 臾몄쓽 ?묒닔 ?깃났 紐⑤떖 */
.inquiry-success-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.inquiry-success-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.inq-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}
.inq-modal-content {
  position: relative;
  background: #0f172a;
  border: 1px solid var(--primary-mint);
  border-radius: 20px;
  padding: 36px 32px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 245, 212, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.inquiry-success-modal.show .inq-modal-content {
  transform: scale(1);
}
.inq-modal-icon {
  font-size: 42px;
  margin-bottom: 12px;
}
.inq-badge {
  display: inline-block;
  background: rgba(0, 245, 212, 0.15);
  color: var(--primary-mint);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.inq-modal-content h3 {
  color: #ffffff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.inq-subtext {
  color: #94a3b8;
  font-size: 13.5px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.inq-receipt-box {
  background: rgba(6, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.rec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.rec-row:last-child {
  border-bottom: none;
}
.rec-row span {
  color: #94a3b8;
}
.rec-row strong {
  color: var(--primary-mint);
}
.btn-inq-confirm {
  width: 100%;
  padding: 14px;
  background: var(--primary-mint);
  color: #060b14;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-inq-confirm:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
}

/* ==============================================================================
   [NEW] 11. 도수 재활클리닉 1페이지 1카드 와이드 리더 전용 스타일 (가독성 극대화 & 비통전)
   ============================================================================== */
.conditions-cards-grid.aka-single-card-mode {
  display: block !important;
  width: 100% !important;
}

.aka-reader-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* 상단 네비게이션 & 빠른 질환 이동 바 */
.aka-pagination-nav {
  background: rgba(11, 20, 38, 0.95);
  border: 1px solid rgba(0, 245, 212, 0.3);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.aka-nav-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.aka-nav-btn {
  background: rgba(0, 245, 212, 0.12);
  color: #00f5d4;
  border: 1px solid rgba(0, 245, 212, 0.4);
  padding: 11px 20px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.aka-nav-btn:hover {
  background: #00f5d4;
  color: #060b14;
  box-shadow: 0 0 18px rgba(0, 245, 212, 0.5);
  transform: translateY(-2px);
}

.aka-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.aka-ind-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.aka-ind-title {
  font-size: 17.5px;
  color: #ffffff;
  font-weight: 900;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 480px;
}

/* 5대 질환 직접 선택 탭 */
.aka-quick-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  justify-content: center;
}

.aka-tab-pill {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aka-tab-pill:hover {
  background: rgba(0, 245, 212, 0.1);
  border-color: rgba(0, 245, 212, 0.4);
  color: #ffffff;
}

.aka-tab-pill.active {
  background: rgba(0, 245, 212, 0.2);
  border-color: #00f5d4;
  color: #00f5d4;
  font-weight: 800;
  box-shadow: 0 0 14px rgba(0, 245, 212, 0.3);
}

.aka-tab-pill .pill-num {
  font-weight: 900;
  color: #00f5d4;
  opacity: 0.9;
}

.aka-mode-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn-aka-mode-toggle {
  background: transparent;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-aka-mode-toggle:hover {
  border-color: #00f5d4;
  color: #00f5d4;
}

.aka-mode-hint {
  font-size: 12px;
  color: #64748b;
}

/* 대형 와이드 카드 (1페이지 1카드) */
.aka-cards-wrapper.stacked {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.aka-wide-card {
  background: #081020;
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
  transition: all 0.3s ease;
  position: relative;
}

.aka-card-header {
  padding: 24px 28px 18px 28px;
  background: linear-gradient(180deg, rgba(14, 28, 54, 0.8) 0%, rgba(8, 16, 32, 0.6) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aka-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.aka-badge-no {
  background: rgba(0, 245, 212, 0.15);
  color: #00f5d4;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(0, 245, 212, 0.4);
}

.aka-badge-manual {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(251, 146, 60, 0.45);
}

.aka-badge-step {
  margin-left: auto;
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 700;
}

.aka-title-main {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  line-height: 1.35;
}

.aka-title-sub {
  font-size: 15.5px;
  color: #38bdf8;
  font-weight: 600;
  line-height: 1.45;
}

/* 대형 도해 슬라이드 (1280x720 원본 고화질 - 글씨가 아주 선명함) */
.aka-slide-wrapper {
  position: relative;
  width: 100%;
  background: #030712;
  padding: 18px 24px 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.aka-slide-img {
  width: 100%;
  max-width: 960px;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.aka-slide-caption {
  width: 100%;
  max-width: 960px;
  margin-top: 10px;
  font-size: 12.5px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 4대 상세 임상 가이드 그리드 */
.aka-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: 24px 28px 20px 28px;
}

.aka-detail-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.aka-detail-box .box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.aka-detail-box .box-head h4 {
  font-size: 16px;
  font-weight: 800;
  color: #f8fafc;
}

.aka-detail-box .box-text {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  flex: 1;
}

.aka-detail-box.box-symptom {
  border-left: 4px solid #ef4444;
}

.aka-detail-box.box-patho {
  border-left: 4px solid #38bdf8;
}

.aka-detail-box.box-technique {
  border-left: 4px solid #10b981;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.35);
}

.aka-detail-box.box-target {
  border-left: 4px solid #f59e0b;
}

/* 실제 호전 임상증례 배너 */
.aka-case-banner {
  margin: 0 28px 24px 28px;
  background: linear-gradient(135deg, rgba(0, 245, 212, 0.09) 0%, rgba(56, 189, 248, 0.09) 100%);
  border: 1px solid rgba(0, 245, 212, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
}

.aka-case-banner .case-badge {
  display: inline-block;
  background: var(--primary-mint);
  color: #060b14;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.aka-case-banner .case-desc {
  font-size: 15px;
  color: #e2e8f0;
  line-height: 1.7;
  font-style: italic;
}

/* 하단 액션 버튼 바 */
.aka-bottom-actions {
  display: flex;
  gap: 14px;
  padding: 0 28px 28px 28px;
  flex-wrap: wrap;
}

.btn-aka-workstation {
  flex: 1.2;
  min-width: 240px;
  padding: 15px 22px;
  background: linear-gradient(135deg, #00f5d4 0%, #00bbf9 100%);
  color: #060b14;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-aka-workstation:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.5);
  transform: translateY(-2px);
}

.btn-aka-booking {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-aka-booking:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #00f5d4;
  color: #00f5d4;
  transform: translateY(-2px);
}

/* 하단 네비게이션 컨트롤 */
.aka-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(11, 20, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 20px;
  margin-top: 10px;
}

.aka-bottom-page-text {
  font-size: 14px;
  font-weight: 800;
  color: #00f5d4;
}

/* 일반 그리드에서 AKA 카드 뱃지 스타일 */
.cond-mech-badge.manual-aka {
  background: rgba(251, 146, 60, 0.2);
  color: #fb923c;
  border: 1px solid rgba(251, 146, 60, 0.4);
}

@media (max-width: 768px) {
  .aka-details-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .aka-title-main {
    font-size: 20px;
  }
  .aka-card-header,
  .aka-bottom-actions,
  .aka-case-banner {
    padding-left: 18px;
    padding-right: 18px;
  }
}