/* ==========================================================================
   미스터트롯4 투표 가이드 포털 - 공식 디자인 시스템 (Master Design System)
   - 전 기기(PC·모바일) 1컬럼(단일 열) 중앙 정렬 규격 (max-width: 800px)
   - 트롯 오디션 시그니처 럭셔리 네이비(#0a1128) & 골드(#f59e0b) 테마
   - 한국어 단어 단위 줄바꿈 (word-break: keep-all)
   - 모바일 햄버거 드로어 & 터치 최적화 UI
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  /* 브랜드 테마 컬러 */
  --primary-dark: #0a1128;      /* 딥 네이비 방송 메인 */
  --primary: #0f172a;           /* 슬레이트 900 */
  --primary-accent: #1e3a8a;    /* 로열 블루 */
  --primary-light: #2563eb;     /* 비비드 블루 */
  --primary-bg: #eff6ff;        /* 연한 블루 배경 */
  
  /* 골드 & 앰버 악센트 */
  --trot-gold: #d97706;         /* 진한 트롯 골드 */
  --trot-gold-light: #f59e0b;   /* 밝은 샴페인 골드 */
  --trot-gold-bg: #fffbeb;      /* 골드 연한 배경 */
  --trot-gold-border: #fde68a;  /* 골드 테두리 */

  /* 방송 상태 표시 컬러 */
  --broadcast-red: #dc2626;     /* 생방송 온에어 레드 */
  --broadcast-red-bg: #fef2f2;
  --success-green: #059669;
  --success-green-bg: #ecfdf5;

  /* 텍스트 & 모노크롬 */
  --text-main: #0f172a;
  --text-sub: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* 모서리 & 그림자 규격 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
  --shadow-card: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 8px 24px rgba(217, 119, 6, 0.25);

  /* 헤더 높이 */
  --header-height: 68px;
}

/* 1. 글로벌 리셋 & 한글 줄바꿈 원칙 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  word-break: keep-all;        /* 한국어 단어 중간 쪼개짐 원천 방지 */
  overflow-wrap: break-word;    /* 긴 영문/URL 예외 처리 */
}

html {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  font-size: 16px;
  color: var(--text-main);
  background-color: var(--bg-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
}

img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

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

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

/* 2. PC 상단 헤더 메뉴 (1줄 강제 & 1060px 브레이크포인트) */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(10, 17, 40, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  z-index: 100;
  transition: all 0.25s ease;
}

.header-container {
  max-width: 1420px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-crown-icon {
  font-size: 1.55rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(245, 158, 11, 0.4));
}

.logo-brand-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-season-tag {
  background: linear-gradient(135deg, var(--trot-gold-light), var(--trot-gold));
  color: #0a1128;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.logo-sub {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* PC 상단 내비게이션 */
.main-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 7px 9px;
  white-space: nowrap;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--trot-gold-light);
  background: rgba(255, 255, 255, 0.08);
}

/* HOT 뱃지 */
.nav-badge-hot {
  font-size: 0.62rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.1;
  letter-spacing: -0.2px;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(239, 68, 68, 0.4);
}

/* 드롭다운 내비게이션 */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown:hover > .nav-link,
.nav-dropdown.active > .nav-link {
  color: var(--trot-gold-light);
  background: rgba(255, 255, 255, 0.08);
}

.nav-caret {
  font-size: 0.58rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
  display: inline-block;
}

.nav-dropdown:hover .nav-caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--trot-gold-light);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 205px;
  background: rgba(10, 17, 40, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 250;
  pointer-events: none;
}

.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown-menu-right {
  left: auto;
  right: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.83rem;
  font-weight: 600;
  color: #cbd5e1;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  color: #ffffff;
  background: rgba(245, 158, 11, 0.18);
  color: var(--trot-gold-light);
}

.nav-dropdown-item-icon {
  font-size: 0.92rem;
  line-height: 1;
}

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a1128 !important;
  font-weight: 800 !important;
  font-size: 0.84rem !important;
  padding: 7px 13px !important;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  margin-left: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
}

/* 모바일 햄버거 토글 버튼 */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* 1120px 이하에서 햄버거 메뉴로 전환 */
@media (max-width: 1120px) {
  .main-nav { display: none !important; }
  .mobile-menu-btn { display: flex !important; }
}

/* 모바일 드로어 내비게이션 */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 17, 40, 0.7);
  backdrop-filter: blur(6px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 290px;
  height: 100%;
  background: #0a1128;
  border-left: 1px solid rgba(245, 158, 11, 0.3);
  z-index: 160;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-drawer.open {
  right: 0;
}

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

.drawer-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
}

.drawer-close-btn {
  color: #94a3b8;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.drawer-nav-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

.drawer-nav-item a:hover, .drawer-nav-item.active a {
  color: var(--trot-gold-light);
  background: rgba(245, 158, 11, 0.12);
}

.drawer-cta-item a {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a1128 !important;
  font-weight: 800;
  margin-top: 8px;
}

/* 3. 단일 열(1컬럼) 레이아웃 규격 (최대 너비 800px) */
.page-wrapper {
  flex: 1;
  width: 100%;
  padding: 24px 16px 48px;
}

.content-container,
.calc-single-column-container,
.calc-responsive-grid {
  max-width: 820px;          /* 760px ~ 840px 표준 준수 */
  margin: 0 auto;            /* 화면 좌우 중앙 정렬 */
  width: 100%;
  display: flex;
  flex-direction: column;    /* PC, 모바일 모두 수직 1열 배치 */
  gap: 24px;
}

/* 히어로 섹션 */
.hero-banner {
  background: linear-gradient(145deg, #0a1128 0%, #172554 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(10, 17, 40, 0.15);
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.badge-live-pulse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fca5a5;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  animation: livePulse 1.6s infinite ease-in-out;
}

@keyframes livePulse {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.badge-season-info {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: 2.15rem;
  font-weight: 900;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.7px;
}

.hero-title-line {
  display: inline-block;
  white-space: nowrap;
}

.hero-title-accent {
  color: var(--trot-gold-light);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 680px;
}

/* 모바일 히어로 타이틀 분리 (540px 이하) */
@media (max-width: 540px) {
  .hero-banner {
    padding: 24px 20px;
  }
  .hero-title {
    font-size: 1.55rem;
    line-height: 1.35;
  }
  .hero-title-line {
    display: block !important;
    white-space: nowrap !important;
  }
  .hero-desc {
    font-size: 0.9rem;
  }
}

/* 4. GEO · AEO AI 30초 핵심 요약 박스 (.geo-summary-box) */
.geo-summary-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}

.geo-summary-box .summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  color: #166534;
  margin-bottom: 10px;
}

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

.geo-summary-box .summary-list li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #1e293b;
  position: relative;
  padding-left: 16px;
}

.geo-summary-box .summary-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #16a34a;
  font-weight: bold;
}

/* 5. 카드 컴포넌트 시스템 (Section 3.3) */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.standard-card,
.calc-form-card,
.calc-result-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

@media (max-width: 768px) {
  .standard-card,
  .calc-form-card,
  .calc-result-card {
    padding: 20px 18px;
  }
}

/* 기능별 특징 카드 (.feature-card) */
.feature-card {
  --card-color: #1e40af;
  --card-tint: #eff6ff;
  display: block;
  padding: 24px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--card-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card--vote   { --card-color: #d97706; --card-tint: #fffbeb; }
.card--online { --card-color: #1e40af; --card-tint: #eff6ff; }
.card--text   { --card-color: #dc2626; --card-tint: #fef2f2; }
.card--calc   { --card-color: #7c3aed; --card-tint: #f5f3ff; }
.card--info   { --card-color: #0f766e; --card-tint: #f0fdfa; }

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

.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--card-tint);
  color: var(--card-color);
  font-size: 1.35rem;
}

.card-label {
  color: var(--card-color);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--card-tint);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.4;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  line-height: 1.65;
  margin-bottom: 14px;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--card-color);
  font-weight: 800;
  font-size: 0.9rem;
}

/* 6. 공지 및 알림 박스 (.notice-box) */
.notice-box {
  padding: 18px 20px;
  border: 1px solid;
  border-left-width: 5px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  font-size: 0.92rem;
  line-height: 1.65;
}

.notice-box strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

.notice-box-info {
  background: #eff6ff;
  border-color: #93c5fd;
  border-left-color: #2563eb;
  color: #1e3a8a;
}

.notice-box-warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
  color: #92400e;
}

.notice-box-danger {
  background: #fef2f2;
  border-color: #fecaca;
  border-left-color: #dc2626;
  color: #991b1b;
}

.notice-box-success {
  background: #ecfdf5;
  border-color: #a7f3d0;
  border-left-color: #059669;
  color: #065f46;
}

/* 7. 인터랙티브 도구 입력 폼 & 버튼 UX (Section 3.2, 15) */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
}

.form-sublabel {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-with-unit {
  position: relative;
  display: flex;
  align-items: center;
}

.form-input, .form-select {
  width: 100%;
  height: 52px;
  padding: 12px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  background: #ffffff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.input-unit {
  position: absolute;
  right: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

/* 옵션 선택 그리드 (라디오/체크) */
.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.option-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.option-card:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-light);
}

.option-card.selected {
  border-color: var(--primary-light);
  background: var(--primary-bg);
  font-weight: 800;
  color: var(--primary-accent);
}

/* 대형 결과 확인 액션 버튼 (.result-action-box & .btn-view-result) */
.result-action-box {
  margin: 28px 0 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-view-result {
  width: 100%;
  max-width: 480px;
  height: 58px;
  background: linear-gradient(135deg, #0a1128 0%, #1e3a8a 50%, #2563eb 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.35);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.btn-view-result:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.45);
  background: linear-gradient(135deg, #0a1128 0%, #1d4ed8 50%, #3b82f6 100%);
}

.btn-view-result:active {
  transform: translateY(0);
}

.btn-view-result .arrow-icon {
  font-size: 1.25rem;
  animation: bounceDown 1.5s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.result-action-tip {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* 8. 결과 대시보드 및 리포트 섹션 (.result-column-wrapper) */
.result-column-wrapper {
  scroll-margin-top: 85px;  /* 고정 헤더에 가려지지 않는 마진 */
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.mobile-result-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 12px 0 6px;
  color: var(--trot-gold);
  font-size: 0.86rem;
  font-weight: 800;
}

.mobile-result-divider::before,
.mobile-result-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px dashed #fde68a;
  margin: 0 12px;
}

.result-section-header {
  padding: 16px 22px;
  background: linear-gradient(135deg, #0a1128, #1e3a8a);
  border-left: 6px solid var(--trot-gold-light);
  border-radius: var(--radius-md);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.result-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-header-title h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.result-header-badge {
  background: rgba(245, 158, 11, 0.25);
  border: 1px solid var(--trot-gold-light);
  color: #fde68a;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

/* 결과 도달 시 1.2초간 반짝이는 펄스 강조 (.highlight-pulse) */
.highlight-pulse {
  animation: pulseCard 1.2s ease-in-out;
}

@keyframes pulseCard {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); border-color: var(--trot-gold-light); }
  50% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); border-color: var(--trot-gold); }
  100% { box-shadow: var(--shadow-card); }
}

.result-value-display {
  text-align: center;
  padding: 24px 16px;
  background: linear-gradient(145deg, #f8fafc, #eff6ff);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid #bfdbfe;
}

.result-caption {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.result-highlight-score {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  color: var(--primary-accent);
  line-height: 1.15;
}

.result-subnote {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin-top: 8px;
}

/* 9. 구글 애드센스 반응형 디스플레이 광고 (.ad-placement) */
.ad-placement {
  width: 100%;
  max-width: 820px;
  margin: 28px auto;
  padding: 14px 12px;
  box-sizing: border-box;
  text-align: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.ad-placement .ad-caption {
  font-size: 0.72rem;
  color: #94a3b8;
  margin-bottom: 8px;
}

.ad-placement ins.adsbygoogle {
  display: block;
}

@media (max-width: 768px) {
  .ad-placement {
    margin: 20px auto;
    padding: 10px 8px;
  }
}

/* 10. 연관 내부 링크 넥서스 컴포넌트 (.related-nexus-section) */
.related-nexus-section {
  margin: 40px 0 24px;
  padding: 30px 22px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.nexus-header {
  text-align: center;
  margin-bottom: 22px;
}

.nexus-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--trot-gold);
  background: var(--trot-gold-bg);
  border: 1px solid var(--trot-gold-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.nexus-header h2 {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.nexus-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.nexus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.nexus-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.nexus-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  border-color: var(--primary-light);
  background: #ffffff;
}

.nexus-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary-light);
  background: var(--primary-bg);
  padding: 2px 8px;
  border-radius: 4px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.nexus-card-icon {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.nexus-card h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

.nexus-card p {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-sub);
  flex-grow: 1;
  margin-bottom: 10px;
}

.nexus-card-link {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary-light);
  margin-top: auto;
}

@media (max-width: 640px) {
  .nexus-grid {
    grid-template-columns: 1fr;
  }
}

/* 11. 정보성 테이블 & 스텝 가이드 */
.info-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 18px 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.info-table th {
  background: #f1f5f9;
  color: var(--text-main);
  font-weight: 800;
  padding: 12px 14px;
  border-bottom: 2px solid var(--border-strong);
  white-space: nowrap;
}

.info-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-sub);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background: #f8fafc;
}

/* 단계별 절차 가이드 (.procedure-step-card) */
.procedure-steps-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0;
}

.procedure-step-card {
  display: flex;
  gap: 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.step-num-badge {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 900;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 12. 풋터 운영자 정보 및 신뢰도 규격 (Section 8) */
.site-footer {
  margin-top: auto;
  background: #0a1128;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 20px 28px;
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.footer-nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-weight: 700;
  color: #cbd5e1;
}

.footer-nav-links a:hover {
  color: var(--trot-gold-light);
  text-decoration: underline;
}

.footer-admin-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #64748b;
  font-size: 0.8rem;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-admin-bar strong {
  color: #94a3b8;
}

.footer-admin-bar a {
  color: #94a3b8;
  text-decoration: underline;
}

/* 13. 토스트 알림창 (.toast-msg) */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast-msg {
  background: rgba(10, 17, 40, 0.92);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(245, 158, 11, 0.4);
  backdrop-filter: blur(8px);
  animation: toastFade 3s ease forwards;
}

@keyframes toastFade {
  0% { opacity: 0; transform: translateY(12px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}

/* 14. 실시간 공유 배너 (.share-banner-box) */
.share-banner-box {
  background: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.share-banner-content strong {
  display: block;
  font-size: 0.95rem;
  color: #92400e;
  margin-bottom: 2px;
}

.share-banner-content p {
  font-size: 0.82rem;
  color: #b45309;
}

.btn-share-url {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a1128;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-share-url:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.35);
}
