/* ========================================
   펫보험 진료가이드 - 공통 스타일
   농림축산식품부 표준화 정책 기반
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1a56db;
  --primary-dark: #1e429f;
  --primary-light: #e8f0fe;
  --secondary: #0e9f6e;
  --secondary-light: #def7ec;
  --accent: #ff6b35;
  --accent-light: #fff3ee;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --navy: #1e3a5f;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-muted: #9ca3af;
  --border: #e5e7eb;
  --bg: #f9fafb;
  --white: #ffffff;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --card-shadow-hover: 0 4px 12px rgba(0,0,0,0.12), 0 8px 32px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
}

/* ========== 네비게이션 — 2줄 구조 ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── 상단줄: 로고 + auth ── */
.nav-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 25px 24px 6px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
  border-bottom: 1px solid #f0f2f5;
}
/* 사용가이드 버튼을 맨 오른쪽으로 밀기 */
.nav-top .nav-guide-btn {
  margin-left: auto;
}

/* ── 하단줄: 검색 + 메뉴 ── */
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 55px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── 브랜드 로고 (상단줄) ── */
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  width: 132px;
  height: 39px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-brand-text { display: none; }
.nav-brand-name { font-size: 15px; font-weight: 700; color: var(--navy); }
.nav-brand-sub  { font-size: 10px; color: var(--text-muted); }

/* ── 메뉴 (하단줄, 남은 공간 차지) ── */
.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;                /* 항목 간 시각적 간격 — 모든 메뉴 동일 */
  list-style: none;
  flex: 1;
  flex-wrap: nowrap;
}

.nav-menu li {
  flex: 0 0 auto;           /* 콘텐츠 자연 너비 — 텍스트 길이만큼만 차지 */
  display: flex;
  justify-content: center;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 10px;        /* 좌우 패딩 균등 — 자물쇠/무료 배지와 무관하게 통일 */
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-menu a i {
  font-size: 11px;
  opacity: .6;
  flex-shrink: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.nav-menu a:hover i,
.nav-menu a.active i { opacity: 1; }
.nav-menu a.active { font-weight: 700; }

/* ── CTA (설계사 스크립트) ── */
/* .nav-cta 강조 제거 — 일반 메뉴와 동일 스타일 */

/* ── 무료 태그 ── */
.nav-free-tag {
  font-size: 9px; font-weight: 700;
  background: #d1fae5; color: #065f46;
  padding: 1px 5px; border-radius: 4px;
  margin-left: 2px; flex-shrink: 0;
  line-height: 1.6;
}

/* ── 네비 구분선 ── */
.nav-divider {
  width: 1px; height: 16px; background: var(--border);
  margin: 0 4px; align-self: center; flex-shrink: 0;
  flex: 0 !important; max-width: none !important;
  list-style: none;
}

/* ========== 견종 빠른검색바 (하단줄 맨 왼쪽) ========== */
.nav-breed-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 8px;
}

.nav-breed-input-wrap {
  display: flex;
  align-items: center;
  background: #f0f4ff;
  border: 1.5px solid #c7d7fa;
  border-radius: 22px;
  padding: 0 14px;
  gap: 8px;
  height: 34px;
  transition: width 0.25s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 280px;
}

.nav-breed-input-wrap:focus-within {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
  width: 360px;
}

.nav-breed-input-wrap i {
  color: var(--primary);
  font-size: 12px;
  flex-shrink: 0;
}

.nav-breed-input {
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  width: 100%;
}

.nav-breed-input::placeholder {
  color: #7c9cdb;
  font-size: 12px;
}

/* 자동완성 드롭다운 */
.nav-breed-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  border: 1px solid var(--border);
  z-index: 9999;
  overflow: hidden;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.nav-breed-dropdown.show { display: block; }

.nbd-header {
  padding: 10px 16px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nbd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
  border-bottom: 1px solid #f3f4f6;
}

.nbd-item:last-child { border-bottom: none; }

.nbd-item:hover { background: var(--primary-light); }

.nbd-emoji {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 8px;
  flex-shrink: 0;
}

.nbd-info { flex: 1; min-width: 0; }

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

.nbd-name em {
  font-style: normal;
  color: var(--primary);
}

.nbd-en {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 1px;
}

.nbd-risks {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.nbd-risk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.nbd-risk-dot.high { background: #ef4444; }
.nbd-risk-dot.med  { background: #f59e0b; }

.nbd-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* ========== 견종 판매 스크립트 모달 ========== */
.bsm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.bsm-overlay.show {
  opacity: 1;
  pointer-events: all;
}

.bsm-modal {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.22);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s;
}

.bsm-overlay.show .bsm-modal {
  transform: translateY(0) scale(1);
}

.bsm-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  padding: 24px 28px 20px;
  position: relative;
  border-radius: 20px 20px 0 0;
}

.bsm-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.bsm-breed-name {
  font-size: 22px;
  font-weight: 800;
  color: white;
}

.bsm-breed-en {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.bsm-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s;
}

.bsm-close:hover { background: rgba(255,255,255,0.3); }

.bsm-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bsm-badge {
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.bsm-body {
  padding: 24px 28px;
}

/* 주요질병 카드 */
.bsm-disease-section {
  margin-bottom: 24px;
}

.bsm-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.bsm-disease-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bsm-disease-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  border-left: 3px solid;
}

.bsm-disease-item.risk-매우높음 { border-color: #7c3aed; background: #f5f3ff; }
.bsm-disease-item.risk-높음     { border-color: #ef4444; background: #fef2f2; }
.bsm-disease-item.risk-중간     { border-color: #f59e0b; background: #fffbeb; }
.bsm-disease-item.risk-낮음     { border-color: #10b981; background: #f0fdf4; }

.bsm-risk-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}
.bsm-risk-badge.risk-매우높음 { background: #ede9fe; color: #6d28d9; }
.bsm-risk-badge.risk-높음     { background: #fee2e2; color: #b91c1c; }
.bsm-risk-badge.risk-중간     { background: #fef3c7; color: #92400e; }
.bsm-risk-badge.risk-낮음     { background: #d1fae5; color: #065f46; }

.bsm-disease-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.bsm-disease-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  line-height: 1.5;
}

/* 판매 스크립트 박스 */
.bsm-script-box {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}

.bsm-script-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.bsm-script-text {
  font-size: 14px;
  line-height: 1.85;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: keep-all;
}

.bsm-script-text b {
  color: var(--primary);
}

.bsm-script-text .script-highlight {
  background: #fef3c7;
  padding: 1px 4px;
  border-radius: 4px;
  font-weight: 600;
  color: #92400e;
}

/* 팁 박스 */
.bsm-tip-box {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #9a3412;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.65;
}

.bsm-tip-box i { color: #f97316; flex-shrink: 0; margin-top: 2px; }

/* 복사 버튼 */
.bsm-copy-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s;
  margin-top: 4px;
}

.bsm-copy-btn:hover { background: var(--primary-dark); }
.bsm-copy-btn.copied { background: var(--secondary); }

/* ── 사용가이드 버튼 ── */
.nav-guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a5f;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-guide-btn:hover {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: #0369a1;
}
.nav-guide-btn i { font-size: 11px; }

/* ── 무료체험/이용권 구매 버튼 ── */
.nav-trial-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fbbf24;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-trial-btn:hover {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  border-color: #f59e0b;
  color: #78350f;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(251,191,36,.35);
}
.nav-trial-btn i { font-size: 11px; }

/* ── 상단줄 Auth 영역 ── */
.nav-auth-area {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
}
.nav-user-info {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* 구독중 뱃지 */
.nav-user-badge {
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.nav-user-badge.paid    { background: #d1fae5; color: #065f46; }
.nav-user-badge.trial   { background: linear-gradient(135deg,#dbeafe,#bfdbfe); color: #1e40af; }
.nav-user-badge.expired { background: #fee2e2; color: #991b1b; }
.nav-user-badge.master  { background: linear-gradient(135deg,#1e3a5f,#0369a1); color: #fff; }

/* 이름 → 마이페이지 링크 */
.nav-user-name {
  font-size: 13px; font-weight: 600; color: #374151;
  white-space: nowrap;
  text-decoration: none;
  display: flex; align-items: center; gap: 3px;
  padding: 4px 8px; border-radius: 7px;
  transition: all .2s;
  border: 1.5px solid transparent;
}
.nav-user-name:hover {
  background: #f0f9ff; color: #0369a1;
  border-color: #bae6fd;
}

/* 로그아웃 버튼 */
.nav-logout-btn {
  background: none; border: 1.5px solid #e2e8f0; border-radius: 7px;
  padding: 4px 8px; font-size: 12px; color: #94a3b8;
  cursor: pointer; transition: all .2s; line-height: 1; flex-shrink: 0;
}
.nav-logout-btn:hover { background: #fee2e2; color: #dc2626; border-color: #fecaca; }

/* 로그인 버튼 */
.nav-login-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--navy); color: white !important;
  padding: 5px 13px; border-radius: 7px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-login-btn:hover { background: #0ea5e9; }

/* 신청 버튼 */
.nav-apply-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--accent); color: white !important;
  padding: 5px 11px; border-radius: 7px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  transition: all .2s; white-space: nowrap; flex-shrink: 0;
}
.nav-apply-btn:hover { background: #e55a24; }

/* 잠금 뱃지 — 자물쇠 모양은 Font Awesome으로 표시, 텍스트 컬러는 일반 카테고리와 동일 유지 */
.nav-lock-badge { font-size: 10px; margin-left: 4px; color: #94a3b8; }
.nav-lock-badge i { font-size: 10px; }
.nav-paid-locked { opacity: 1; }                  /* 텍스트 컬러 통일 — 흐림 효과 제거 */
.nav-paid-locked:hover .nav-lock-badge { color: #f97316; }

/* 모바일 대응 */
@media (max-width: 900px) {
  .nav-breed-search { display: none; }
}
@media (max-width: 768px) {
  .nav-top { padding: 0 16px; }
  .nav-inner { padding: 0 16px; }
  .nav-auth-area .nav-apply-btn { display: none; }
}

@media (max-width: 768px) {
  .bsm-modal { max-height: 95vh; border-radius: 16px; }
  .bsm-header { padding: 20px 20px 16px; }
  .bsm-body { padding: 18px 20px; }
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ========== 레이아웃 ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--primary) 100%);
  padding: 48px 0;
  color: white;
}

.page-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-header-text h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-header-text p {
  font-size: 15px;
  opacity: 0.85;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  opacity: 0.8;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: white;
  text-decoration: none;
}

.breadcrumb span {
  opacity: 0.6;
}

/* ========== 카드 ========== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: all 0.25s ease;
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

/* ========== 배지 ========== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}

.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-success { background: var(--secondary-light); color: var(--secondary); }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-navy { background: rgba(30,58,95,0.1); color: var(--navy); }

/* ========== 버튼 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-success {
  background: var(--secondary);
  color: white;
}

.btn-success:hover {
  background: #057a55;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ========== 검색바 ========== */
.search-wrap {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 14px 48px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  transition: all 0.2s;
  background: var(--white);
  color: var(--text-primary);
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.12);
}

/* ========== 필터 탭 ========== */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

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

.filter-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ========== 질병 카드 ========== */
.disease-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.disease-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(26,86,219,0.12);
  transform: translateY(-2px);
}

.disease-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.disease-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.disease-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.disease-card .disease-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.symptom-tag {
  padding: 3px 10px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 11px;
  color: var(--text-secondary);
}

/* ========== 섹션 타이틀 ========== */
.section {
  padding: 48px 0;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ========== 정보 블록 ========== */
.info-block {
  background: var(--primary-light);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin-bottom: 16px;
}

.info-block.warning {
  background: var(--warning-light);
  border-color: var(--warning);
}

.info-block.danger {
  background: var(--danger-light);
  border-color: var(--danger);
}

.info-block.success {
  background: var(--secondary-light);
  border-color: var(--secondary);
}

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

.info-block.warning .info-block-title { color: #92400e; }
.info-block.danger .info-block-title { color: var(--danger); }
.info-block.success .info-block-title { color: #065f46; }

/* ========== 스텝 리스트 ========== */
.step-list {
  list-style: none;
  counter-reset: step;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: step;
}

.step-list li:last-child {
  border-bottom: none;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ========== 체크 리스트 ========== */
.check-list {
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.check-list li::before {
  content: '✓';
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ========== 탭 ========== */
.tab-nav {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  overflow-x: auto;
}

.tab-btn {
  padding: 12px 20px;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

.tab-panel {
  display: none;
  padding: 24px 0;
}

.tab-panel.active {
  display: block;
}

/* ========== 빈도 표시 ========== */
.freq-high { color: var(--danger); }
.freq-medium { color: var(--warning); }
.freq-low { color: var(--secondary); }

/* ========== 복사 버튼 ========== */
.copy-btn {
  padding: 6px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.copy-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.copy-btn.copied {
  background: var(--secondary-light);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ========== 스크립트 박스 ========== */
.script-box {
  background: linear-gradient(135deg, #f0f7ff, #e8f5e9);
  border: 1.5px solid #c3dafe;
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
}

.script-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.script-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.script-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-primary);
}

/* ========== 주의사항 박스 ========== */
.caution-box {
  background: #fff8f0;
  border: 1.5px solid #fbd38d;
  border-radius: var(--radius);
  padding: 16px 20px;
}

.caution-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========== 그리드 ========== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ========== 통계/숫자 강조 ========== */
.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--card-shadow);
}

.stat-num {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== 반응형 ========== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 999;
    gap: 4px;
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .nav-menu a {
    padding: 12px 16px;
    width: 100%;
  }
  
  .hamburger {
    display: flex;
  }
  
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  
  .page-header { padding: 32px 0; }
  .page-header .container { flex-direction: column; align-items: flex-start; }
  .page-header-text h1 { font-size: 22px; }
  
  .section { padding: 32px 0; }
  .section-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .nav-inner { padding: 0 16px; }
}

/* ========== 푸터 ========== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 40px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}
/* 푸터 메인 1단 가로 레이아웃 */
.footer-main-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 24px;
}
.footer-main-row .footer-brand {
  flex-shrink: 0;
}
.footer-main-row .footer-brand .footer-corp {
  margin-top: 14px;
  text-align: left;
}
.footer-desc-wrap {
  text-align: right;
}
.footer-logo {
  display: block;
  height: 88px;
  width: auto;
  mix-blend-mode: screen;
}

.footer-brand .nav-brand-name {
  color: white;
  font-size: 18px;
}

.footer-brand .nav-brand-sub {
  color: rgba(255,255,255,0.6);
}

.footer-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  line-height: 1.7;
  white-space: nowrap;
}

.footer-links h4 {
  color: white;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-divider {
  border-top: 1px solid rgba(255,255,255,.1);
  margin: 20px 0;
}
.footer-corp {
  margin-bottom: 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.footer-corp-row {
  font-size: 12px; color: rgba(255,255,255,.45);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.footer-corp-row span { line-height: 1.6; }
.fc-sep { color: rgba(255,255,255,.2); }
.footer-privacy {
  color: rgba(255,255,255,.5); text-decoration: underline;
  font-size: 12px; transition: color .2s;
}
.footer-privacy:hover { color: rgba(255,255,255,.85); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-disclaimer {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

/* ========== 토스트 ========== */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-primary);
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ========== 스크롤바 ========== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ========== 애니메이션 ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.4s ease forwards;
}

/* ========== 카테고리 색상 ========== */
.cat-ear { background: #fef3c7; color: #92400e; }
.cat-eye { background: #dbeafe; color: #1e40af; }
.cat-digestive { background: #d1fae5; color: #065f46; }
.cat-ortho { background: #ede9fe; color: #5b21b6; }
.cat-skin { background: #fce7f3; color: #9d174d; }
.cat-endo { background: #fff7ed; color: #92400e; }
.cat-urine { background: #f0f9ff; color: #0369a1; }
.cat-heart { background: #fee2e2; color: #991b1b; }
.cat-resp { background: #ecfdf5; color: #065f46; }
.cat-tumor { background: #f3f4f6; color: #374151; }
