/* =============================================================================
   GAKJAMISIK DESIGN SYSTEM & TYPOGRAPHY
   ============================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Colors */
  --bg-dark: #05060b;
  --bg-deep: #0b0c14;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  
  --text-primary: #ffffff;
  --text-secondary: #a0aec0;
  --text-muted: #718096;
  
  --color-purple: #9d4edd;
  --color-purple-glow: rgba(157, 78, 221, 0.3);
  --color-teal: #00f5ff;
  --color-teal-glow: rgba(0, 245, 255, 0.3);
  
  /* Beast Themes */
  --color-lion: #ff4d4d;
  --color-lion-glow: rgba(255, 77, 77, 0.25);
  --color-rabbit: #2ecc71;
  --color-rabbit-glow: rgba(46, 204, 113, 0.25);
  --color-eagle: #f1c40f;
  --color-eagle-glow: rgba(241, 196, 15, 0.25);
  --color-dolphin: #3498db;
  --color-dolphin-glow: rgba(52, 152, 219, 0.25);

  /* Glassmorphism */
  --glass-bg: rgba(13, 14, 26, 0.5);
  --glass-border: rgba(255, 255, 255, 0.07);
  --glass-blur: blur(20px);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* =============================================================================
   BASE STYLES
   ============================================================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 0%, #15162a 0%, #05060b 60%);
  background-attachment: fixed;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Scrollbar Style */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* =============================================================================
   LAYOUT & CONTAINER
   ============================================================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 100px 0;
}

/* =============================================================================
   NAVIGATION BAR (GLASSMORPHISM)
   ============================================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border-b: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-smooth);
}

.header.scrolled {
  background: rgba(5, 6, 11, 0.85);
  box-shadow: var(--glass-shadow);
  padding: 8px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.header.scrolled .nav-container {
  height: 64px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  height: 42px;
  transition: var(--transition-smooth);
}

.brand-logo-img {
  height: 38px;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: var(--transition-smooth);
}

.brand-logo-img.fade-out {
  opacity: 0;
  transform: scale(0.92);
}

.logo-selector {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 2px;
  border-radius: 20px;
  gap: 2px;
  backdrop-filter: var(--glass-blur);
}

.logo-select-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.logo-select-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.logo-select-btn.active {
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  color: #05060b !important;
  box-shadow: 0 4px 10px rgba(0, 245, 255, 0.2);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 8px 0;
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.admin-logout-form {
  margin: 0;
}

.admin-logout-button {
  border: 0;
  background: transparent;
  font-family: inherit;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-purple));
  transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-purple), #7209b7);
  color: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 10px 20px var(--color-purple-glow);
  transition: var(--transition-smooth);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(157, 78, 221, 0.5);
  filter: brightness(1.1);
}

/* 기존 검사자를 위한 보조 진입점은 우측 CTA 곁에 작고 낮은 대비로 배치합니다. */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-code-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.nav-code-link:hover,
.nav-code-link:focus-visible {
  color: var(--color-teal);
}

.starter-code-link-wrap {
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
}

.starter-code-link-wrap a {
  margin-left: 6px;
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.starter-code-link-wrap a:hover,
.starter-code-link-wrap a:focus-visible {
  color: var(--color-teal);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 24px;
  justify-content: center;
}

.mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Menu Drawer */
.mobile-nav {
  position: fixed;
  inset: 0 -100% 0 auto;
  right: -100%;
  width: 100%;
  /* 구형 Safari의 100vh를 기본값으로 두고, 지원 브라우저에서는 실제 보이는 높이를 사용합니다. */
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  padding: calc(112px + env(safe-area-inset-top, 0px)) 24px calc(28px + env(safe-area-inset-bottom, 0px));
  background: rgba(5, 6, 11, 0.98);
  backdrop-filter: var(--glass-blur);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: clamp(8px, 2.2vh, 22px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transition: var(--transition-smooth);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-link {
  display: flex;
  min-height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(24px, 4vh, 28px);
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.2;
}

.mobile-nav-link.active, .mobile-nav-link:hover {
  color: var(--text-primary);
}

/* 마지막 링크도 작은 iPhone의 Safari 하단 도구막대 위에서 확실히 탭할 수 있게 구분합니다. */
.mobile-nav-universe {
  margin-top: 4px;
  color: var(--color-purple);
  font-weight: 700;
}

.mobile-nav-universe:hover,
.mobile-nav-universe:focus-visible {
  color: #bd75f1;
}

@media (max-height: 620px) and (max-width: 768px) {
  .mobile-nav {
    padding-top: calc(92px + env(safe-area-inset-top, 0px));
    gap: 4px;
  }

  .mobile-nav-link {
    min-height: 46px;
    padding-block: 5px;
    font-size: 22px;
  }
}

/* =============================================================================
   PAGE ROUTING MANAGEMENT
   ============================================================================= */
.page-route {
  display: none;
  animation: fadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.page-route.active {
  display: block;
}

/* =============================================================================
   HERO / MAIN BANNER STYLING
   ============================================================================= */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  z-index: 10;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-teal);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 56px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 24px;
  background: linear-gradient(to right, #ffffff, #dcdde1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  display: block;
  background: linear-gradient(90deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 0.9em;
}

.hero-desc {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 550px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* 명세: 도서 직접 구매와 외부 온라인 서점 구매를 시각적으로 분리해 구매 경로를 명확히 표시합니다. */
.book-purchase-actions { display: grid; justify-items: start; gap: 12px; margin-bottom: 30px; }
.book-purchase-actions .btn { padding: 12px 24px; font-size: 14px; }
.book-primary-actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* 명세: 미리보기는 구매 버튼과 혼동되지 않도록 밝은 중립색의 별도 동작 버튼으로 구분합니다. */
.book-purchase-actions .book-preview-trigger { border-color: #e7e9ee; background: #f4f5f7; color: #202330; box-shadow: none; }
.book-purchase-actions .book-preview-trigger:hover, .book-purchase-actions .book-preview-trigger:focus-visible { border-color: #fff; background: #fff; color: #11131c; box-shadow: 0 8px 20px rgba(255,255,255,.14); }
.book-store-actions { display: flex; flex-wrap: nowrap; gap: 8px; }
/* 명세: 외부 온라인 서점 이동은 사이트 내 보조 동작과 분리해, 중립 외곽선 버튼으로 표시합니다. */
.book-store-link { display: inline-flex; min-width: 0; align-items: center; justify-content: center; border: 1px solid rgba(196, 205, 224, .42); border-radius: 10px; background: rgba(255, 255, 255, .035); color: #edf0f8; font-weight: 700; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.book-store-link:hover, .book-store-link:focus-visible { border-color: rgba(255,255,255,.86); background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }

@media (max-width: 768px) {
  /* 명세: 휴대폰에서는 네 서점을 동일 너비의 2열×2행으로 배치하여 한 손으로 선택하기 쉽게 합니다. */
  .book-store-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .book-store-link { width: 100%; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-teal), #00bfff);
  color: #05060b;
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.5);
  filter: brightness(1.1);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

/* Brand Hero Visual Showcase */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: float 6s ease-in-out infinite;
}

.glow-overlay {
  position: absolute;
  width: 130%;
  height: 130%;
  background: radial-gradient(circle, rgba(157, 78, 221, 0.15) 0%, rgba(0, 245, 255, 0.05) 50%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* =============================================================================
   PROBLEM SECTION STYLING (CARD NEWS)
   ============================================================================= */
.section-title-wrap {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 16px;
}

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

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

.problem-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 40px 30px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.problem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-purple));
  opacity: 0;
  transition: var(--transition-fast);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-emoji {
  font-size: 40px;
  margin-bottom: 24px;
}

.problem-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.problem-card p {
  font-size: 15px;
  line-height: 1.6;
}

.problem-bottom-text {
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 40px;
}

/* =============================================================================
   PHILOSOPHY SECTION STYLING (TOSOLA ENGINE DESCRIPTION)
   ============================================================================= */
.philosophy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.philosophy-text h2 {
  font-size: 38px;
  line-height: 1.25;
  margin-bottom: 24px;
}

.philosophy-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Radar Animation Simulation */
.radar-simulation {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle, rgba(13, 14, 26, 0.4) 0%, rgba(5, 6, 11, 0.9) 100%);
}

.radar-web {
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  border: 1px dashed rgba(157, 78, 221, 0.2);
}

.radar-web::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  border: 1px solid rgba(0, 245, 255, 0.1);
}

.radar-axes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.radar-axis {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.05);
}

.radar-axis:nth-child(2) { transform: rotate(45deg); }
.radar-axis:nth-child(3) { transform: rotate(90deg); }
.radar-axis:nth-child(4) { transform: rotate(135deg); }

.radar-polygon {
  position: absolute;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.2) 0%, rgba(157, 78, 221, 0.2) 100%);
  clip-path: polygon(50% 10%, 85% 35%, 90% 75%, 50% 90%, 10% 70%, 15% 30%);
  animation: pulseGlow 4s ease-in-out infinite alternate;
  border: 1px solid rgba(0, 245, 255, 0.4);
}

.radar-scanner {
  position: absolute;
  width: 50%;
  height: 50%;
  top: 0;
  left: 50%;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.2) 0%, transparent 100%);
  transform-origin: bottom left;
  animation: radarScan 8s linear infinite;
  border-left: 2px solid var(--color-teal);
}

/* =============================================================================
   SERVICES HIGHLIGHT SECTION
   ============================================================================= */
.services-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.service-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, rgba(13, 14, 26, 0.8), rgba(21, 22, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  position: relative;
  overflow: hidden;
}

.service-card:nth-child(1) .service-img-placeholder {
  background: linear-gradient(135deg, rgba(157, 78, 221, 0.1), rgba(0, 245, 255, 0.1));
}
.service-card:nth-child(2) .service-img-placeholder {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
}
.service-card:nth-child(3) .service-img-placeholder {
  background: linear-gradient(135deg, rgba(241, 196, 15, 0.1), rgba(255, 77, 77, 0.1));
}

.service-img-placeholder::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle, transparent 40%, #0c0e1a 100%);
  opacity: 0.8;
}

.service-content {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.service-tag {
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-teal);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-list {
  list-style: none;
  margin-bottom: 30px;
  margin-top: auto;
}

.service-list li {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: bold;
}

.service-card .btn {
  width: 100%;
}

/* =============================================================================
   SOCIAL PROOF SECTION (BOOK & STATS)
   ============================================================================= */
.social-proof-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}

/* 완성된 입체 도서 이미지를 별도 변형 없이 표시합니다. */
.book-showcase {
  perspective: 1000px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.book-container {
  /* 원본 도서 연출 이미지의 정사각형 비율을 유지해 책과 반사가 잘리지 않게 합니다. */
  width: min(300px, 100%);
  aspect-ratio: 1;
  height: auto;
  position: relative;
  /* book_cover.png에 원근과 책등이 포함되어 있어 CSS 3D를 중첩하지 않습니다. */
  transform: none;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
}

.book-container:hover {
  transform: translateY(-10px);
  box-shadow: 30px 30px 60px rgba(0, 0, 0, 0.7);
}

.book-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0d0f1a;
  border-radius: 4px;
  overflow: hidden;
  transform: none;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.8);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.book-spine {
  /* 이미지에 이미 책등이 렌더링되어 있으므로 별도 가상 책등은 숨깁니다. */
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 100%;
  background: #08090f;
  transform: rotateY(-90deg) translateZ(12px);
  transform-origin: left;
  border-radius: 2px;
}

.book-back {
  /* 앞면 이미지 전용 연출이므로 보이지 않는 뒷면은 생성하지 않습니다. */
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #05060b;
  transform: rotateY(180deg) translateZ(12px);
  border-radius: 4px;
}

/* Stat Counter display */
.stats-banner {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.stat-item h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: var(--color-teal);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

.quote-block {
  border-left: 3px solid var(--color-purple);
  padding-left: 20px;
  margin: 32px 0;
  font-style: italic;
  font-size: 15px;
  color: var(--text-secondary);
}

/* =============================================================================
   FINAL CTA / BOTTOM CTA STYLING
   ============================================================================= */
.cta-banner {
  background: linear-gradient(135deg, #15172b, #05060b);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 245, 255, 0.07) 0%, rgba(157, 78, 221, 0.05) 50%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 42px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-banner p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 16px;
}

/* =============================================================================
   ABOUT PAGE: 4 GOURMET INSTINCTS INTERACTIVE SELECTOR
   ============================================================================= */
.about-beasts-showcase {
  margin-top: 64px;
}

.beast-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.beast-tab-btn {
  background: var(--bg-card);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 12px;
  padding: 12px 24px;
  color: #b8c0d0;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
}

.beast-tab-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 17px;
  filter: saturate(0.9) brightness(1.08);
}

.beast-tab-btn:not(.active) .beast-tab-icon {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.28);
}

.beast-tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(148, 163, 184, 0.45);
}

/* Active Beast Theme Styling */
.beast-tab-btn.active[data-beast="lion"] { border-color: var(--color-lion); color: var(--color-lion); box-shadow: 0 0 15px var(--color-lion-glow); }
.beast-tab-btn.active[data-beast="rabbit"] { border-color: var(--color-rabbit); color: var(--color-rabbit); box-shadow: 0 0 15px var(--color-rabbit-glow); }
.beast-tab-btn.active[data-beast="eagle"] { border-color: var(--color-eagle); color: var(--color-eagle); box-shadow: 0 0 15px var(--color-eagle-glow); }
.beast-tab-btn.active[data-beast="dolphin"] { border-color: var(--color-dolphin); color: var(--color-dolphin); box-shadow: 0 0 15px var(--color-dolphin-glow); }

.beast-display-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  min-height: 380px;
  position: relative;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 48px;
  align-items: center;
  transition: var(--transition-smooth);
}

.beast-display-graphic {
  font-size: 120px;
  text-align: center;
  animation: float 6s ease-in-out infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}

.beast-display-info {
  display: flex;
  flex-direction: column;
}

.beast-display-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.beast-display-quote {
  font-size: 16px;
  font-style: italic;
  margin-bottom: 24px;
  opacity: 0.8;
}

.beast-display-desc {
  font-size: 15px;
  line-height: 1.7;
}

/* =============================================================================
   TEST PAGE: PRICING COMPARISON CARDS
   ============================================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 48px 32px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Master (Popular) Highlight styling */
.price-card.popular {
  border-color: var(--color-purple);
  box-shadow: 0 20px 40px var(--color-purple-glow);
  background: rgba(157, 78, 221, 0.02);
}

.price-card.popular:hover {
  border-color: #b5179e;
  box-shadow: 0 25px 50px rgba(181, 23, 158, 0.4);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--color-purple), #b5179e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

.price-card-tier {
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.price-card.popular .price-card-tier {
  color: var(--color-purple);
}

.price-card-title {
  font-size: 26px;
  margin-bottom: 16px;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.25;
}

.price-card-cost {
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 900;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
}

.price-card-cost strong {
  font: inherit;
  color: inherit;
}

.price-card-cost .price-card-note {
  align-self: stretch;
  margin-top: 8px;
  text-align: right;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: normal;
}

.price-features-list {
  list-style: none;
  margin-bottom: 40px;
  flex-grow: 1;
}

.price-features-list li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.price-features-list li.include::before {
  content: '✓';
  color: var(--color-teal);
  font-weight: bold;
}

.price-features-list li.exclude {
  color: var(--text-muted);
  text-decoration: line-through;
  opacity: 0.5;
}

.price-features-list li.exclude::before {
  content: '✕';
  color: var(--text-muted);
  font-weight: bold;
}

.price-card .btn {
  /* 명세: 4열 카드에서도 상품명과 장바구니 아이콘이 버튼 가장자리에 붙지 않도록 본문 폭보다 조금 넓게 표시합니다. */
  width: calc(100% + 16px);
  margin-left: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  font-size: 15px;
  white-space: nowrap;
}

/* =============================================================================
   TEST INTRO: COMPARISON SPECIFICATION TABLE
   ============================================================================= */
.comparison-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--glass-shadow);
  margin-top: 48px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 600px;
}

.comparison-table th, .comparison-table td {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 16px;
  background: rgba(13, 14, 26, 0.8);
  color: var(--text-primary);
}

.comparison-table th:first-child {
  border-top-left-radius: 20px;
}
.comparison-table th:last-child {
  border-top-right-radius: 20px;
}

.comparison-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-table td:first-child {
  font-weight: 600;
  color: var(--text-primary);
}

.comparison-table tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.comparison-table .check {
  color: var(--color-teal);
  font-weight: bold;
}

.comparison-table .cross {
  color: var(--text-muted);
  opacity: 0.5;
}

/* =============================================================================
   FAQ ACCORDION STYLING
   ============================================================================= */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-question {
  padding: 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: var(--color-teal);
  transition: var(--transition-fast);
}

.faq-item.active {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 24px;
}

/* =============================================================================
   EDU PAGE: PROGRAM CARDS & ACCORDION
   ============================================================================= */
.edu-program-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 0.35fr 0.65fr;
  gap: 48px;
  align-items: center;
  transition: var(--transition-smooth);
}

.edu-program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--bg-card-hover);
}

.edu-program-icon {
  font-size: 80px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.edu-program-info h3 {
  font-size: 26px;
  margin-bottom: 8px;
}

.edu-program-info .quote {
  font-size: 15px;
  font-style: italic;
  color: var(--color-teal);
  margin-bottom: 24px;
}

.edu-program-bullets {
  margin-bottom: 30px;
}

.edu-program-bullets p {
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.edu-program-bullets p::before {
  content: '■';
  font-size: 8px;
  color: var(--color-purple);
}

/* =============================================================================
   COMMUNITY PAGE: TIMELINES & STEP TRACKS
   ============================================================================= */
/* Timeline step circles */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 48px auto 0;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-teal) 0%, var(--color-purple) 100%);
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-badge {
  position: absolute;
  left: -40px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0f111a;
  border: 2px solid var(--color-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--color-teal);
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.2);
}

.timeline-item:nth-child(even) .timeline-badge {
  border-color: var(--color-purple);
  color: var(--color-purple);
  box-shadow: 0 0 10px var(--color-purple-glow);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px;
}

.timeline-content h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 14px;
}

/* =============================================================================
   BOOK PAGE: TOC ACCORDION
   ============================================================================= */
.toc-accordion {
  max-width: 700px;
  margin: 40px auto 0;
}

.toc-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.toc-header {
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.toc-header::after {
  content: '▼';
  font-size: 10px;
  color: var(--text-muted);
}

.toc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.toc-item.active .toc-header::after {
  transform: rotate(180deg);
}

.toc-item.active .toc-content {
  max-height: 120px;
  padding-bottom: 16px;
}

/* =============================================================================
   BOOK PAGE: PUBLISHED BOOK DETAIL
   명세: 출간 도서 정보를 긴 본문에서도 읽기 쉽게 구획하고, 카드뉴스는 한 장씩 넘겨볼 수 있게 표시합니다.
   ============================================================================= */
.book-detail-page { display: grid; gap: 72px; }
.book-detail-section { scroll-margin-top: 96px; }
.book-section-heading { margin-bottom: 28px; }
/* 명세: PC의 넓은 도서 영역에서 제목과 읽기 본문이 한쪽으로 치우치지 않도록, 내용 블록만 가운데 폭에 배치합니다. */
.book-detail-section:not(.book-bibliography) > .book-section-heading { max-width: 900px; margin-right: auto; margin-left: auto; }
.book-section-heading > span { display: block; margin-bottom: 8px; color: var(--color-teal); font-size: 12px; font-weight: 800; letter-spacing: .13em; }
.book-section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.28; }
.book-bibliography { padding: 36px; border: 1px solid var(--glass-border); border-radius: 20px; background: linear-gradient(135deg, rgba(30, 183, 199, .1), rgba(21, 24, 40, .42)); }
.book-bibliography dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin: 0; }
.book-bibliography dl > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); }
.book-bibliography dt { color: var(--text-muted); font-size: 14px; font-weight: 700; }
.book-bibliography dd { margin: 0; color: var(--text-primary); line-height: 1.6; }
/* 명세: 도서 포함 이용권은 가격 혜택으로 오해되지 않으면서도 도서 정보 안에서 즉시 식별되도록 보라색 강조 배너로 표시합니다. */
.book-inclusion { margin: 26px 0 0; padding: 19px 22px; border: 1px solid rgba(195, 133, 255, .42); border-radius: 14px; background: linear-gradient(110deg, rgba(132, 83, 190, .31), rgba(106, 67, 157, .25) 58%, rgba(77, 49, 125, .3)); box-shadow: 0 7px 20px rgba(100, 42, 177, .12), inset 0 1px 0 rgba(255, 255, 255, .1); color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.015em; }
.book-inclusion i { margin-right: 10px; color: #e8caff; filter: drop-shadow(0 0 5px rgba(236, 191, 255, .5)); }
.book-prose { max-width: 900px; margin-right: auto; margin-left: auto; color: var(--text-secondary); font-size: 17px; line-height: 1.95; }
.book-prose p { margin: 0 0 18px; }
.book-prose h3 { margin: 0 0 14px; color: var(--text-primary); font-size: 24px; }
.book-credentials { color: var(--text-muted); font-size: 14px; }
/* 명세: 저자 사진을 제거하고 제공된 저자 원고를 긴 본문으로 편안하게 읽도록 단일 열로 표시합니다. */
.book-author-layout { max-width: 900px; margin-right: auto; margin-left: auto; }
.book-author-role { margin-top: -6px !important; color: var(--color-teal); font-weight: 700; }
.book-author-layout blockquote { margin: 26px 0; padding: 0 0 0 20px; border-left: 3px solid var(--color-purple); color: var(--text-primary); font-size: 20px; font-weight: 700; line-height: 1.7; }
.book-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin-right: auto; margin-left: auto; }
.book-review-grid article { padding: 26px; border: 1px solid var(--glass-border); border-radius: 16px; background: var(--bg-card); }
.book-review-grid h3 { margin: 0 0 13px; font-size: 19px; line-height: 1.45; }
.book-review-grid p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.75; }
.book-card-carousel { position: relative; max-width: 680px; margin: 0 auto; }
.book-card-viewport { overflow: hidden; border-radius: 18px; outline: none; box-shadow: 0 18px 48px rgba(0,0,0,.28); }
.book-card-viewport:focus-visible { box-shadow: 0 0 0 3px var(--color-teal), 0 18px 48px rgba(0,0,0,.28); }
.book-card-track { display: flex; transition: transform .38s ease; }
.book-card-track figure { flex: 0 0 100%; margin: 0; aspect-ratio: 1; background: #10121d; }
.book-card-track img { display: block; width: 100%; height: 100%; object-fit: cover; }
.book-card-control { position: absolute; z-index: 1; top: calc(50% - 25px); display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: rgba(5,6,13,.76); color: #fff; cursor: pointer; transition: background .2s, transform .2s; }
.book-card-control:hover, .book-card-control:focus-visible { background: var(--color-teal); transform: scale(1.06); }
.book-card-prev { left: -24px; }.book-card-next { right: -24px; }
.book-card-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.book-card-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; }
.book-card-dots button[aria-selected="true"] { width: 24px; border-radius: 9px; background: var(--color-teal); }
/* 명세: 11월 13일의 세로형 상세보기 이미지는 기본 높이만 노출하고, 버튼으로 전체 길이를 열람하게 합니다. */
/* 명세: 세로형 상세보기 이미지는 PC의 넓은 화면에서 본문 폭 기준으로 가운데에 배치합니다. */
.book-detail-view { max-width: 900px; margin-right: auto; margin-left: auto; }
.book-detail-view-content { position: relative; max-height: 680px; overflow: hidden; border: 1px solid var(--glass-border); border-radius: 18px; background: #10121d; transition: max-height .35s ease; }
.book-detail-view-content::after { position: absolute; right: 0; bottom: 0; left: 0; height: 150px; content: ""; background: linear-gradient(transparent, #10121d); pointer-events: none; transition: opacity .2s; }
.book-detail-view.is-expanded .book-detail-view-content { max-height: 17000px; }
.book-detail-view.is-expanded .book-detail-view-content::after { opacity: 0; }
.book-detail-view-content img { display: block; width: 100%; height: auto; }
.book-detail-toggle { display: block; min-width: 156px; margin: 18px auto 0; padding: 12px 22px; border: 1px solid rgba(45, 217, 209, .45); border-radius: 10px; background: rgba(45, 217, 209, .1); color: var(--color-teal); font-weight: 800; cursor: pointer; transition: background .2s, color .2s; }
.book-detail-toggle:hover, .book-detail-toggle:focus-visible { background: var(--color-teal); color: #06141a; }
/* 명세: 내지 미리보기는 다른 고정 요소보다 항상 위에 표시하고, 배경은 완전히 가려 페이지 아이콘이 비치지 않게 합니다. */
.book-preview-modal { position: fixed; z-index: 2147483647; inset: 0; height: 100vh; height: 100dvh; display: grid; place-items: center; padding: 22px; overflow: hidden; overscroll-behavior: contain; background: #05060b; }
/* 명세: HTML hidden 속성을 명시적으로 우선 적용해 페이지 최초 진입 시 미리보기 모달이 절대 표시되지 않게 합니다. */
.book-preview-modal[hidden] { display: none; }
.book-preview-dialog { position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(100%, 960px); height: calc(100vh - 44px); height: calc(100dvh - 44px); max-height: calc(100vh - 44px); max-height: calc(100dvh - 44px); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 18px; outline: none; background: #111325; box-shadow: 0 24px 80px rgba(0,0,0,.55); }
.book-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.11); }
.book-preview-header h2 { margin: 0; font-size: clamp(18px, 2.5vw, 24px); }
.book-preview-close { position: absolute; z-index: 3; top: 13px; right: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 1px solid #fff; border-radius: 9px; background: #fff; color: #161925; cursor: pointer; font-weight: 800; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.book-preview-close:hover, .book-preview-close:focus-visible { border-color: var(--color-teal); background: var(--color-teal); color: #06141a; }
.book-preview-header h2 { padding-right: 88px; }
.book-preview-page { display: grid; min-height: 0; place-items: center; padding: 18px; overflow: hidden; overscroll-behavior: contain; touch-action: pan-y; background: #070811; }
/* 명세: 페이지 이미지는 남은 세로 영역을 100% 사용하고 비율을 유지해, 가로 폭보다 세로 기준으로 한 페이지 전체를 보여 줍니다. */
.book-preview-page img { display: block; width: auto; height: auto; max-width: 100%; object-fit: contain; box-shadow: 0 8px 32px rgba(0,0,0,.35); }
.book-preview-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 18px; padding: 16px 22px; border-top: 1px solid rgba(255,255,255,.11); }
.book-preview-controls p { min-width: 72px; margin: 0; text-align: center; color: var(--text-secondary); }
.book-preview-controls button:disabled { opacity: .38; cursor: not-allowed; }
body.book-preview-open { overflow: hidden; }
.book-toc-list { display: grid; gap: 0; max-width: 960px; margin-right: auto; margin-left: auto; border-top: 1px solid rgba(255,255,255,.13); }
.book-toc-list p { margin: 0; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.13); color: var(--text-secondary); line-height: 1.75; }
.book-toc-list strong { color: var(--text-primary); }
.book-excerpts { display: grid; gap: 16px; max-width: 900px; margin-right: auto; margin-left: auto; }
.book-excerpts blockquote, .book-recommendation blockquote { margin: 0; padding: 22px 26px; border-left: 3px solid var(--color-purple); border-radius: 0 12px 12px 0; background: rgba(145, 89, 202, .09); color: var(--text-primary); font-size: 17px; line-height: 1.8; }
.book-excerpts cite, .book-recommendation cite { display: block; margin-top: 10px; color: var(--text-muted); font-size: 13px; font-style: normal; }
.book-recommendation blockquote { max-width: 860px; margin-right: auto; margin-left: auto; border-left-color: var(--color-teal); font-size: 20px; font-weight: 600; }

@media (max-width: 760px) {
  .book-detail-page { gap: 52px; }
  .book-bibliography { padding: 24px; }
  .book-bibliography dl { grid-template-columns: 1fr; }
  .book-bibliography dl > div { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .book-review-grid { grid-template-columns: 1fr; }
  .book-card-control { width: 42px; height: 42px; }.book-card-prev { left: 10px; }.book-card-next { right: 10px; }
  .book-detail-view-content { max-height: 460px; }
  .book-author-layout blockquote { font-size: 18px; }
  .book-preview-modal { padding: 10px; }
  .book-preview-dialog { height: calc(100vh - 20px); height: calc(100dvh - 20px); max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 12px; }
  .book-preview-header { padding: 14px 16px; }
  .book-preview-page { padding: 12px; }
  .book-preview-controls { gap: 10px; padding: 12px; }
  .book-preview-controls .btn { padding: 10px 14px; }
  .book-prose { font-size: 16px; }.book-excerpts blockquote, .book-recommendation blockquote { padding: 18px 20px; font-size: 16px; }
}

@media (max-width: 480px) {
  /* 명세: iPhone SE처럼 폭이 좁은 화면에서도 이전·다음 페이지를 엄지로 쉽게 누를 수 있도록 하단 조작부를 넓은 2열 버튼으로 고정합니다. */
  .book-preview-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; padding: 14px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .book-preview-controls .btn { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 12px 10px; font-size: 16px; touch-action: manipulation; }
  .book-preview-controls p { min-width: 54px; font-size: 15px; font-weight: 800; }
}

/* =============================================================================
   TESTIMONIAL REVIEWS
   ============================================================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  position: relative;
}

.rating {
  color: var(--color-eagle);
  font-size: 18px;
  margin-bottom: 16px;
}

.review-text {
  font-size: 14px;
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

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

/* =============================================================================
   FOOTER STYLING
   ============================================================================= */
.footer {
  background: #030407;
  border-top: 1px solid var(--glass-border);
  padding: 64px 0 32px;
  margin-top: 100px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h4 {
  font-size: 22px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  font-size: 13px;
  max-width: 250px;
  margin-bottom: 20px;
}

.footer-links-col h5 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.footer-links li {
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-links li a:hover {
  color: var(--text-primary);
  padding-left: 2px;
}

.footer-external-link-icon {
  margin-left: 4px;
  font-size: 0.75em;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

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

.footer-copy {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  font-size: 11px;
  color: var(--text-muted);
}

/* 관리자 진입점은 일반 사용자용 메뉴보다 낮은 시각적 위계로 푸터에만 표시한다. */
.footer-admin-link {
  color: rgba(148, 163, 184, 0.62);
  font-size: 10px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.footer-admin-link:hover {
  color: var(--text-secondary);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: var(--transition-fast);
}

.footer-social-icon:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(148, 163, 184, 0.35);
  transform: translateY(-2px);
}

.footer-social-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: 0.62;
  filter: grayscale(0.7) saturate(0.45) brightness(0.9);
  transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.footer-social-icon:hover img {
  opacity: 0.9;
  filter: grayscale(0.25) saturate(0.75) brightness(0.95);
}

/* 앱 설치 경로는 소셜 링크와 분리해, 각 스토어로 이동한다는 목적을 분명히 표시합니다. */
.app-download-links {
  margin-top: 28px;
}

.app-download-links h5 {
  margin: 0 0 8px;
  color: var(--text-primary);
  font-size: 13px;
}

.app-download-links p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.55;
}

.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.app-store-badge,
.app-store-badges a {
  box-sizing: border-box;
  display: inline-flex;
  width: 156px;
  height: 46px;
  border-radius: 9px;
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.app-store-badges a:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.app-store-badges a,
.panel-app-store-badges a {
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.app-store-badges img {
  display: block;
  width: 100%;
  height: auto;
}

/* 명세: Google 공식 PNG의 투명 가장자리를 보정해 App Store 배지와 보이는 가로 폭을 동일하게 맞춥니다. */
.app-store-badges .google-play-badge-image,
.panel-app-store-badges .google-play-badge-image {
  width: 114.3%;
  max-width: none;
}

/* iOS 설치 버튼도 Google Play 배지와 동일한 외곽 규격을 사용합니다. */
.app-store-install-link {
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: #050505;
  color: #fff;
  text-decoration: none;
}

.app-store-install-link:hover {
  color: #fff;
}

.app-store-install-link .fa-apple {
  flex: 0 0 auto;
  font-size: 28px;
}

.app-store-install-link span {
  display: flex;
  flex-direction: column;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.app-store-install-link small {
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.app-store-badge.is-coming-soon {
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  background: rgba(24, 25, 37, 0.78);
  cursor: default;
  opacity: 0.72;
}

.app-store-badge.is-coming-soon img {
  width: 34px;
  height: 34px;
}

.app-store-badge.is-coming-soon span {
  display: flex;
  flex-direction: column;
  color: #eef0f8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.app-store-badge.is-coming-soon small {
  margin-bottom: 2px;
  color: #aeb1c0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* 패널모집을 본 뒤 바로 앱 설치와 알림 설정으로 이어질 수 있도록 별도 안내 카드를 둡니다. */
.panel-app-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(0, 245, 255, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.10), rgba(158, 52, 255, 0.10));
}

.panel-app-notice-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(0, 245, 255, 0.32);
  border-radius: 16px;
  color: var(--color-teal);
  background: rgba(0, 245, 255, 0.08);
  font-size: 23px;
}

.panel-app-notice-eyebrow {
  margin: 0 0 5px;
  color: var(--color-teal);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.panel-app-notice h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 19px;
  letter-spacing: -0.025em;
}

.panel-app-notice-copy > p:not(.panel-app-notice-eyebrow) {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.7;
}

.panel-app-notice-copy small {
  display: block;
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11px;
}

.panel-app-store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.panel-app-store-badges a,
.panel-ios-coming-soon {
  box-sizing: border-box;
  display: inline-flex;
  width: 156px;
  height: 46px;
  border-radius: 9px;
}

.panel-app-store-badges a {
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.panel-app-store-badges a:hover {
  filter: brightness(1.15);
  transform: translateY(-2px);
}

.panel-app-store-badges a > img {
  display: block;
  width: 100%;
  height: auto;
}

.panel-ios-coming-soon {
  align-items: center;
  gap: 9px;
  padding: 5px 10px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  color: #eef0f8;
  background: rgba(24, 25, 37, 0.78);
  opacity: 0.72;
}

.panel-ios-coming-soon > img {
  width: 34px;
  height: 34px;
}

.panel-ios-coming-soon > span {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.panel-ios-coming-soon small {
  margin-bottom: 2px;
  color: #aeb1c0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* =============================================================================
   10Q INTERACTIVE TEST WIDGET STYLING
   ============================================================================= */
.test-widget-container {
  max-width: 700px;
  margin: 40px auto 0;
  background: rgba(13, 14, 26, 0.6);
  border: 1px solid var(--color-teal);
  border-radius: 28px;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.1);
  padding: 40px;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

.test-widget-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-purple));
}

.widget-intro {
  text-align: center;
  padding: 20px 0;
}

.widget-intro h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.widget-intro p {
  font-size: 15px;
  margin-bottom: 32px;
}

/* Progress bar */
.widget-progress-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 30px;
}

.widget-progress-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.widget-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-teal), var(--color-purple));
  transition: width 0.3s ease-in-out;
}

.widget-progress-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-teal);
  min-width: 48px;
}

/* Question view animations */
.question-card {
  display: none;
  animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.question-card.active {
  display: block;
}

.question-text {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.4;
}

.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  width: 100%;
  outline: none;
}

.option-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  transform: translateX(4px);
}

.option-btn:active {
  transform: scale(0.99);
}

/* Result Screen */
.result-screen {
  display: none;
  animation: scaleUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  text-align: center;
  padding: 10px 0;
}

.result-screen.active {
  display: block;
}

.result-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: pulseGlow 3s ease-in-out infinite alternate;
}

.result-circle.lion { background: var(--color-lion-glow); border: 2px solid var(--color-lion); }
.result-circle.rabbit { background: var(--color-rabbit-glow); border: 2px solid var(--color-rabbit); }
.result-circle.eagle { background: var(--color-eagle-glow); border: 2px solid var(--color-eagle); }
.result-circle.dolphin { background: var(--color-dolphin-glow); border: 2px solid var(--color-dolphin); }

.result-badge {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.result-badge.lion { color: var(--color-lion); }
.result-badge.rabbit { color: var(--color-rabbit); }
.result-badge.eagle { color: var(--color-eagle); }
.result-badge.dolphin { color: var(--color-dolphin); }

.result-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.result-manifesto {
  font-size: 15px;
  font-style: italic;
  margin-bottom: 24px;
  color: var(--text-secondary);
}

.result-divider {
  width: 40px;
  height: 2px;
  background: var(--glass-border);
  margin: 0 auto 24px;
}

.result-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: left;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
}

/* =============================================================================
   KEYFRAME ANIMATIONS
   ============================================================================= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(0, 245, 255, 0.1); }
  100% { box-shadow: 0 0 35px rgba(0, 245, 255, 0.35); }
}

@keyframes radarScan {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =============================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ============================================================================= */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 46px;
  }
  .hero-grid {
    gap: 32px;
  }
  .problem-grid, .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  /*
   * 모바일 레이아웃 명세:
   * - 화면 폭이 좁아져도 본문은 뷰포트 너비 안에 유지합니다.
   * - 데스크톱의 다단 카드는 한 열로 전환해 글자가 세로로 잘리지 않게 합니다.
   * - 고정 크기 장식과 이미지는 부모 너비를 넘지 않게 제한합니다.
   */
  .container {
    width: 100%;
    max-width: 100%;
    padding-right: 18px;
    padding-left: 18px;
  }

  .section-padding {
    padding: 60px 0;
  }
  .nav-links, .nav-actions {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-title {
    font-size: 38px;
  }
  .hero-desc {
    margin: 0 auto 30px;
  }
  .hero-ctas {
    justify-content: center;
  }
  .book-purchase-actions { justify-items: center; }
  .book-store-actions { justify-content: center; }
  .problem-grid, .services-layout, .pricing-grid, .reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .service-card,
  .service-content {
    min-width: 0;
  }
  .philosophy-grid, .social-proof-grid, .edu-program-card, .beast-display-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .beast-display-card {
    padding: 30px;
    text-align: center;
  }
  .beast-display-desc {
    text-align: left;
  }
  .cta-banner {
    padding: 60px 24px;
  }
  .cta-banner h2 {
    font-size: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-brand p {
    max-width: none;
  }
  .footer-social-icon {
    width: 36px;
    min-width: 36px;
    height: 36px;
    flex: 0 0 36px;
    overflow: hidden;
  }
  .footer-social-icon img {
    width: 24px;
    max-width: 24px;
    height: 24px;
  }
  .stats-banner {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px;
  }
  .edu-program-icon {
    font-size: 64px;
  }
}

/* =============================================================================
   SENSORY PANEL SECTION STYLING (PANEL APPLICATION)
   ============================================================================= */
.panel-eligibility-notice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px;
  gap: 34px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto 38px;
  padding: 30px 34px;
  border: 1px solid rgba(34, 211, 238, 0.34);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(168, 85, 247, 0.17), transparent 42%),
    linear-gradient(135deg, rgba(13, 29, 42, 0.92), rgba(20, 15, 42, 0.94));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.panel-eligibility-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: var(--color-teal);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.panel-eligibility-notice h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  letter-spacing: -0.035em;
}

.panel-eligibility-description {
  margin: 12px 0 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
  word-break: keep-all;
}

.panel-eligibility-inline-link {
  color: #d8fbff;
  font-weight: 800;
  text-decoration-color: rgba(34, 211, 238, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.panel-eligibility-inline-link:hover { color: var(--color-teal); }

.panel-eligibility-requirement {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 211, 238, 0.16);
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.065);
}

.panel-eligibility-requirement > i {
  margin-top: 2px;
  color: var(--color-teal);
  font-size: 1.05rem;
}

.panel-eligibility-requirement p { margin: 0; color: var(--text-primary); font-size: 0.88rem; }
.panel-eligibility-requirement span { display: block; margin-top: 4px; color: var(--text-secondary); line-height: 1.55; }

.panel-eligibility-free-offer {
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(255, 209, 102, 0.17), rgba(255, 144, 102, 0.10));
}

.panel-eligibility-free-offer strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #ffe39a;
  font-size: 0.82rem;
}

.panel-eligibility-free-offer strong i { color: #ffd166; }
.panel-eligibility-free-offer span { margin-top: 4px; color: #f8e6b9; font-size: 0.75rem; }

.panel-eligibility-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.panel-eligibility-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.panel-eligibility-actions a:hover { transform: translateY(-2px); }
.panel-eligibility-primary { background: var(--color-teal); color: #071217; box-shadow: 0 8px 22px rgba(34, 211, 238, 0.2); }
.panel-eligibility-primary:hover { color: #071217; background: #7ceaf2; }
.panel-eligibility-secondary { border: 1px solid rgba(255, 255, 255, 0.17); color: var(--text-primary); background: rgba(255, 255, 255, 0.055); }
.panel-eligibility-secondary:hover { color: var(--text-primary); background: rgba(255, 255, 255, 0.1); }
.panel-eligibility-action-hint {
  width: 100%;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.74rem;
  line-height: 1.55;
}
.panel-eligibility-action-hint i { margin-right: 5px; color: var(--color-teal); }

.panel-eligibility-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.panel-eligibility-qr img { display: block; width: 142px; height: 142px; object-fit: contain; }
.panel-eligibility-qr p { margin: 0; color: #1c2531; font-size: 0.7rem; font-weight: 800; line-height: 1.45; text-align: center; }

.panel-tabs {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
  flex-wrap: wrap;
}

.panel-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 28px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.panel-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.02);
}

.panel-tab-btn.active {
  background: var(--bg-card);
  border-color: var(--color-teal);
  color: var(--color-teal);
  box-shadow: 0 0 20px var(--color-teal-glow);
}

.panel-sub-view {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

.panel-sub-view.active {
  display: block;
}

.panel-recruitment-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 18px;
  padding: 0 3px 16px;
  border-bottom: 1px solid rgba(34, 211, 238, 0.24);
}

.panel-recruitment-heading p {
  margin: 0;
  color: var(--color-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.panel-recruitment-heading p i { margin-right: 6px; }
.panel-recruitment-heading span { display: block; margin-top: 7px; color: var(--text-muted); font-size: 0.82rem; }
.panel-recruitment-heading > strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #bdf8fc;
  font-size: 0.78rem;
}
.panel-recruitment-heading > strong i { margin-right: 5px; color: var(--color-teal); }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  counter-reset: panel-card;
}

@media (max-width: 992px) {
  .panel-eligibility-notice { grid-template-columns: minmax(0, 1fr) 150px; gap: 24px; padding: 26px; }
  .panel-eligibility-qr img { width: 120px; height: 120px; }

  .panel-grid {
    grid-template-columns: 1fr;
  }
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.panel-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.panel-card-status {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.panel-card-status.recruiting {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.panel-card-status.warning {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}

.panel-title {
  font-size: 20px;
  font-weight: 700;
  margin-top: 12px;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--text-primary);
}

.panel-reward {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: var(--color-teal);
  margin-bottom: 20px;
}

.panel-reward span {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}

.panel-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 16px;
}

.panel-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.panel-meta-item i {
  color: var(--color-purple);
  width: 16px;
  text-align: center;
}

.panel-card .btn {
  margin-top: auto;
  width: 100%;
}

/* 실제 센소메트릭스 검사 목록은 제목과 상태 중심의 간결한 카드로 표시합니다. */
.panel-survey-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
}

.panel-survey-badges {
  display: flex;
  min-height: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-survey-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b8c2d9;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.72rem;
  font-weight: 700;
}

.panel-survey-badge.priority { color: #ffd166; background: rgba(255, 209, 102, 0.12); }
.panel-survey-badge.new { color: #070813; background: #22d3ee; }
.panel-survey-description { flex: 1; margin: 18px 0 24px; color: var(--text-muted); line-height: 1.7; }
.panel-title-card {
  min-height: 104px;
  padding: 22px 24px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.panel-title-card:not(.panel-all-surveys-card) { counter-increment: panel-card; }
.panel-title-card .panel-title {
  flex: 1;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.panel-password-lock {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 0.78em;
  line-height: 1;
}
.panel-card-index {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.08);
  color: var(--color-teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.panel-card-index::before { content: counter(panel-card, decimal-leading-zero); }
.panel-card-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.panel-title-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(18, 21, 36, 0.96);
  color: var(--text-primary);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}
.panel-title-card:hover .panel-card-arrow {
  background: var(--color-teal);
  color: #05060b;
  transform: translate(2px, -2px);
}
.panel-all-surveys-card {
  grid-column: 1 / -1;
  min-height: 118px;
  border-color: rgba(34, 211, 238, 0.32);
  background: linear-gradient(110deg, rgba(34, 211, 238, 0.12), rgba(123, 44, 191, 0.12));
}
.panel-all-surveys-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--color-teal), #38bdf8);
  color: #05060b;
  font-size: 1.1rem;
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.2);
}
.panel-all-surveys-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.panel-all-surveys-copy strong { color: var(--text-primary); font-size: 1.08rem; }
.panel-all-surveys-copy small { color: var(--text-muted); font-size: 0.84rem; line-height: 1.5; }
@media (max-width: 640px) {
  .panel-eligibility-notice { grid-template-columns: 1fr; gap: 22px; padding: 22px 18px; border-radius: 18px; }
  .panel-eligibility-qr { width: fit-content; justify-self: center; }
  .panel-eligibility-actions { display: grid; grid-template-columns: 1fr; }
  .panel-eligibility-actions a { width: 100%; }
  .panel-recruitment-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .panel-title-card { padding: 18px; }
  .panel-card-index { display: none; }
  .panel-all-surveys-copy small { display: none; }
}
.panel-list-message {
  grid-column: 1 / -1;
  padding: 42px 24px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.025);
  text-align: center;
}

@media (max-width: 900px) {
  .panel-app-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .panel-app-store-badges {
    grid-column: 1 / -1;
    padding-left: 76px;
  }
}

@media (max-width: 640px) {
  .panel-app-notice {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
  }

  .panel-app-notice-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 18px;
  }

  .panel-app-notice h2 {
    font-size: 17px;
  }

  .panel-app-store-badges {
    width: 100%;
    padding-left: 0;
  }

  .panel-app-store-badges a,
  .panel-ios-coming-soon {
    flex: 0 0 156px;
  }

  .panel-app-store-badges a > img {
    width: 100%;
  }
}

/* Guide view styling */
.guide-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .guide-timeline {
    grid-template-columns: 1fr;
  }
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-step:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.1);
}

.timeline-num {
  font-family: 'Outfit', sans-serif;
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-teal), var(--color-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 16px;
}

.timeline-step h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.timeline-step p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Apply view styling */
.apply-container {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 48px;
  box-shadow: var(--glass-shadow);
  position: relative;
}

.apply-header {
  text-align: center;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 24px;
}

.apply-header h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.apply-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition-fast);
}

.form-control:focus {
  border-color: var(--color-teal);
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 10px var(--color-teal-glow);
}

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

@media (max-width: 576px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.radio-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  .radio-group {
    grid-template-columns: repeat(3, 1fr);
  }
}

.radio-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition-fast);
}

.radio-box:hover {
  background: rgba(255, 255, 255, 0.04);
}

.radio-input {
  display: none;
}

.radio-input:checked + .radio-box {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--color-teal);
  color: var(--color-teal);
}

/* Success panel styling */
.success-panel {
  text-align: center;
  padding: 40px 20px;
  animation: scaleUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.success-icon {
  font-size: 64px;
  margin-bottom: 24px;
  animation: pulseGlow 2s infinite alternate;
}

.success-panel h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--color-teal);
}

.success-panel p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto 36px;
}

/* My History view styling */
.my-history-auth {
  max-width: 540px;
  margin: 0 auto 48px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 36px;
  text-align: center;
}

.history-grid-info {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  display: flex;
  justify-content: space-around;
  text-align: center;
  flex-wrap: wrap;
  gap: 20px;
}

.history-info-item h5 {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.history-info-item p {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--color-teal);
}

.panel-table-wrap {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 36px;
}

.panel-table {
  width: 100%;
  border-collapse: collapse;
}

.panel-table th, .panel-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.panel-table th {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(0,0,0,0.2);
}

.panel-table td {
  font-size: 14px;
}

.badge-status {
  padding: 3px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}

.badge-status.complete {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
}

.badge-status.pending {
  background: rgba(241, 196, 15, 0.15);
  color: #f1c40f;
}
