/* ============================================
   김민부한의원 - Funnel Landing Page (SPA Tabs)
   Persuasion-driven design system
   ============================================ */

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

/* --- CSS Variables --- */
:root {
  --primary: #D9BE91;
  --primary-dark: #B89F75;
  --primary-light: rgba(217, 190, 145, 0.15);
  --primary-gradient: linear-gradient(135deg, #EAD4AD 0%, #D9BE91 50%, #BE9E6C 100%);
  
  --accent: #E6C387;
  --accent-dark: #C5A674;
  
  --dark-bg: #1A2436;
  --dark-bg-2: #293855;
  --dark-surface: #364A6E;
  
  --bg-primary: #FFFFFF;
  --bg-secondary: #F7FAFA;
  --bg-cream: #FAFAF5;
  
  --text-primary: #1A2B3C;
  --text-secondary: #5A6B7C;
  --text-tertiary: #94A3B8;
  --text-inverse: #FFFFFF;
  --text-muted: rgba(255,255,255,0.5);
  
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
  
  --font-sans: 'Noto Sans KR', -apple-system, sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, serif;
  --font-num: 'Inter', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Slimhwan Pink Theme Override --- */
#funnel-slimhwan {
  --slim-pink: #ff91b9;
  --slim-pink-dark: #e0709a;
  --slim-pink-light: rgba(255, 145, 185, 0.12);
  --slim-pink-gradient: linear-gradient(135deg, #ffb8d4 0%, #ff91b9 50%, #e0709a 100%);
  --slim-rose: #ffa8c9;
  --slim-rose-bg: #2E1A24;
  --slim-blush: #ffd6e6;
  --slim-dark-bg: #1E1225;
  --slim-dark-bg-2: #2A1830;
  --slim-dark-surface: #3A2540;
}

#funnel-slimhwan .feature-chip:hover {
  border-color: var(--slim-pink);
  color: var(--slim-pink);
  background: var(--slim-pink-light);
}

#funnel-slimhwan .problem-card:hover {
  border-color: rgba(255, 145, 185, 0.3);
}

#funnel-slimhwan .hero-hook {
  background: var(--slim-dark-bg);
}

#funnel-slimhwan .hero-eyebrow {
  color: var(--slim-rose);
}

#funnel-slimhwan .problem-section {
  background: var(--slim-dark-bg-2);
}

#funnel-slimhwan .problem-card {
  background: var(--slim-dark-surface);
}

#funnel-slimhwan .scroll-arrow {
  border-color: var(--slim-rose);
}

#funnel-slimhwan .problem-label {
  color: var(--slim-rose);
}

#funnel-slimhwan .problem-answer .accent {
  color: var(--slim-rose);
}

#funnel-slimhwan .solution-transition-label {
  color: var(--slim-pink);
}

#funnel-slimhwan .solution-transition-title .em {
  background: var(--slim-pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#funnel-slimhwan .hero-main-copy .em {
  background: var(--slim-pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#funnel-slimhwan .product-hook {
  border-color: var(--slim-pink);
}

#funnel-slimhwan .product-tag {
  background: var(--slim-pink-light);
  color: var(--slim-pink);
}

#funnel-slimhwan .float-badge {
  background: var(--slim-pink-gradient);
  box-shadow: 0 8px 24px rgba(212, 117, 110, 0.35);
}

#funnel-slimhwan .final-cta {
  background: linear-gradient(135deg, #3A1D2E 0%, #2A1830 50%, #1E1225 100%);
  border-top: 1px solid rgba(255,145,185,0.15);
}

#funnel-slimhwan .btn-white {
  color: var(--slim-pink-dark);
}

#funnel-slimhwan .final-cta .final-cta-title {
  background: var(--slim-pink-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#funnel-slimhwan .final-cta .btn-white {
  background: var(--slim-pink-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,145,185,0.3);
}

#funnel-slimhwan .final-cta .btn-white:hover {
  box-shadow: 0 8px 30px rgba(255,145,185,0.45);
}

#funnel-slimhwan .final-cta .btn-outline-white {
  border-color: rgba(255,145,185,0.4);
}

#funnel-slimhwan .final-cta .btn-outline-white:hover {
  border-color: var(--slim-pink);
  background: rgba(255,145,185,0.08);
}

/* Slimhwan dark solution section text overrides */
#funnel-slimhwan .solution-section {
  background: var(--slim-dark-bg-2);
}

#funnel-slimhwan .solution-transition-title {
  color: #fff;
}

#funnel-slimhwan .solution-transition-desc {
  color: rgba(255,255,255,0.75);
}

#funnel-slimhwan .solution-transition-desc strong {
  color: var(--slim-pink);
}

#funnel-slimhwan .solution-section .product-block {
  background: var(--slim-dark-surface);
  border-color: rgba(255,145,185,0.12);
}

#funnel-slimhwan .solution-section .product-name {
  color: #fff;
}

#funnel-slimhwan .solution-section .product-hook {
  color: rgba(255,255,255,0.9);
}

#funnel-slimhwan .solution-section .product-hook strong {
  color: #fff;
}

#funnel-slimhwan .solution-section .product-info > div[style] {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,145,185,0.15) !important;
  color: rgba(255,255,255,0.7) !important;
}

#funnel-slimhwan .solution-section .product-info > div[style] p {
  color: rgba(255,255,255,0.7);
}

#funnel-slimhwan .solution-section .product-info > div[style] strong {
  color: #fff !important;
}

#funnel-slimhwan .solution-section .feature-chip {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,145,185,0.2);
  color: rgba(255,255,255,0.7);
}

#funnel-slimhwan .solution-section .feature-chip:hover {
  border-color: var(--slim-pink);
  color: var(--slim-pink);
  background: rgba(255,145,185,0.1);
}

/* --- Kwaebyeon Green Theme Override --- */
#funnel-kwaebyeon {
  --kb-green: #7db249;
  --kb-green-dark: #5f8a35;
  --kb-green-light: rgba(125, 178, 73, 0.12);
  --kb-green-gradient: linear-gradient(135deg, #a0cc75 0%, #7db249 50%, #5f8a35 100%);
  --kb-accent: #96c76a;
  --kb-dark-bg: #141E12;
  --kb-dark-bg-2: #1C2A18;
  --kb-dark-surface: #273822;
}

#funnel-kwaebyeon .hero-hook {
  background: var(--kb-dark-bg);
}

#funnel-kwaebyeon .hero-eyebrow {
  color: var(--kb-accent);
}

#funnel-kwaebyeon .hero-main-copy .em {
  background: var(--kb-green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#funnel-kwaebyeon .scroll-arrow {
  border-color: var(--kb-accent);
}

#funnel-kwaebyeon .problem-section {
  background: var(--kb-dark-bg-2);
}

#funnel-kwaebyeon .problem-card {
  background: var(--kb-dark-surface);
}

#funnel-kwaebyeon .problem-card:hover {
  border-color: rgba(125, 178, 73, 0.3);
}

#funnel-kwaebyeon .problem-answer .accent,
#funnel-kwaebyeon .problem-answer span[style] {
  color: var(--kb-accent) !important;
}

#funnel-kwaebyeon .problem-answer {
  color: var(--text-inverse);
}

#funnel-kwaebyeon .solution-section {
  background: var(--kb-dark-bg-2);
}

#funnel-kwaebyeon .solution-transition-label {
  color: var(--kb-green);
}

#funnel-kwaebyeon .solution-transition-title {
  color: #fff;
}

#funnel-kwaebyeon .solution-transition-title .em {
  background: var(--kb-green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#funnel-kwaebyeon .solution-transition-desc {
  color: rgba(255,255,255,0.75);
}

#funnel-kwaebyeon .solution-transition-desc strong {
  color: var(--kb-green);
}

#funnel-kwaebyeon .solution-section .product-block {
  background: var(--kb-dark-surface);
  border-color: rgba(125,178,73,0.12);
}

#funnel-kwaebyeon .solution-section .product-name {
  color: #fff;
}

#funnel-kwaebyeon .solution-section .product-tag {
  background: var(--kb-green-light);
  color: var(--kb-green);
}

#funnel-kwaebyeon .solution-section .product-hook {
  color: rgba(255,255,255,0.9);
  border-color: var(--kb-green);
}

#funnel-kwaebyeon .solution-section .product-hook strong {
  color: #fff;
}

#funnel-kwaebyeon .solution-section ul li {
  color: rgba(255,255,255,0.7) !important;
}

#funnel-kwaebyeon .solution-section ul li span[style] {
  color: var(--kb-green) !important;
}

#funnel-kwaebyeon .solution-section .product-info > div[style] {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(125,178,73,0.15) !important;
  color: rgba(255,255,255,0.7) !important;
}

#funnel-kwaebyeon .solution-section .product-info > div[style] p {
  color: rgba(255,255,255,0.7);
}

#funnel-kwaebyeon .solution-section .product-info > div[style] strong {
  color: #fff !important;
}

#funnel-kwaebyeon .solution-section .product-info > div[style] p[style] {
  color: #ea580c !important;
}

#funnel-kwaebyeon .solution-section .price-amount {
  color: var(--kb-green) !important;
}

#funnel-kwaebyeon .solution-section .price-unit {
  color: rgba(255,255,255,0.5);
}

#funnel-kwaebyeon .final-cta {
  background: linear-gradient(135deg, #1F3018 0%, #1C2A18 50%, #141E12 100%);
  border-top: 1px solid rgba(125,178,73,0.15);
}

#funnel-kwaebyeon .final-cta .final-cta-title {
  background: var(--kb-green-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#funnel-kwaebyeon .final-cta .btn-white {
  background: var(--kb-green-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(125,178,73,0.3);
}

#funnel-kwaebyeon .final-cta .btn-white:hover {
  box-shadow: 0 8px 30px rgba(125,178,73,0.45);
}

/* ============================================
   SLIM QUIZ MODAL
   ============================================ */
.slim-quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.slim-quiz-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.slim-quiz-modal {
  background: #1a1225;
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 0;
  box-shadow: 0 24px 80px rgba(255,145,185,0.15), 0 0 0 1px rgba(255,145,185,0.1);
  animation: quizSlideUp 0.4s ease;
}
@keyframes quizSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.slim-quiz-close {
  position: absolute;
  top: 16px; right: 16px;
  background: rgba(255,255,255,0.08);
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}
.slim-quiz-close:hover { background: rgba(255,145,185,0.2); color: #fff; }

/* Progress Bar */
.slim-quiz-progress {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}
.slim-quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ff91b9, #ff6ba0);
  transition: width 0.4s ease;
  border-radius: 0 2px 2px 0;
}

/* Steps */
.slim-quiz-step {
  display: none;
  padding: 40px 32px;
  animation: quizFadeIn 0.35s ease;
}
.slim-quiz-step.active { display: block; }
@keyframes quizFadeIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Intro */
.slim-quiz-intro { text-align: center; }
.slim-quiz-badge {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, #ff91b9, #ff6ba0);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.slim-quiz-intro h2 {
  color: #f1f5f9;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.slim-quiz-intro p {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.slim-quiz-intro p strong { color: #ff91b9; }
.slim-quiz-start-btn {
  background: linear-gradient(135deg, #ff91b9, #ff6ba0);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.slim-quiz-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,145,185,0.4);
}

/* Question */
.slim-quiz-qnum {
  color: #ff91b9;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.slim-quiz-qnum span { color: #64748b; font-weight: 400; }
.slim-quiz-question {
  color: #f1f5f9;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* Options */
.slim-quiz-options { display: flex; flex-direction: column; gap: 12px; }
.slim-quiz-option {
  cursor: pointer;
  display: block;
}
.slim-quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slim-quiz-option-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}
.slim-quiz-option-inner:hover {
  border-color: rgba(255,145,185,0.3);
  background: rgba(255,145,185,0.05);
}
.slim-quiz-option input:checked + .slim-quiz-option-inner {
  border-color: #ff91b9;
  background: rgba(255,145,185,0.12);
  color: #fff;
}
.sq-num {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.25s;
}
.slim-quiz-option input:checked + .slim-quiz-option-inner .sq-num {
  background: #ff91b9;
  color: #fff;
}

/* Result */
.slim-quiz-result { text-align: center; }
.slim-quiz-result-badge {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.slim-quiz-result-title {
  color: #f1f5f9;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}
.slim-quiz-result-desc {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.slim-quiz-result-score {
  color: #64748b;
  font-size: 0.85rem;
  margin-bottom: 28px;
}
.slim-quiz-result-score strong { color: #ff91b9; font-size: 1.1rem; }

.slim-quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.slim-quiz-cta-btn {
  display: block;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
}
.slim-quiz-cta-btn.primary {
  background: linear-gradient(135deg, #ff91b9, #ff6ba0);
  color: #fff;
}
.slim-quiz-cta-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,145,185,0.4);
}
.slim-quiz-cta-btn.secondary {
  background: rgba(255,255,255,0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.1);
}
.slim-quiz-cta-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.slim-quiz-retry {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 16px;
  margin-top: 4px;
  transition: color 0.2s;
}
.slim-quiz-retry:hover { color: #ff91b9; }

/* Result badge colors per level */
.sqr-level-1 { background: rgba(59,130,246,0.15); color: #60a5fa; }
.sqr-level-2 { background: rgba(34,197,94,0.15); color: #4ade80; }
.sqr-level-3 { background: rgba(251,146,60,0.15); color: #fb923c; }
.sqr-level-4 { background: rgba(239,68,68,0.15); color: #f87171; }

@media (max-width: 500px) {
  .slim-quiz-modal { width: 95%; border-radius: 16px; }
  .slim-quiz-step { padding: 28px 20px; }
  .slim-quiz-intro h2 { font-size: 1.5rem; }
  .slim-quiz-question { font-size: 1.1rem; }
}

/* --- Herb Card Styles --- */
.herb-card {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.herb-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167,139,250,0.35) !important;
  box-shadow: 0 8px 32px rgba(167,139,250,0.1);
}

@media (max-width: 600px) {
  .herb-cards {
    grid-template-columns: 1fr !important;
  }
}

/* --- Reset --- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

/* Accessibility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-sans); color: var(--text-primary); background: var(--dark-bg); line-height: 1.7; overflow-x: hidden; }
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition: var(--transition); }
button { text-decoration:none; color:inherit; transition: var(--transition); }
ul,ol { list-style:none; }
button { border:none; background:none; cursor:pointer; font-family:inherit; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   SPA View Logic
   ============================================ */
.funnel-view {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  min-height: 100vh;
}
.funnel-view.active-view {
  display: block;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }
.fade-in-delay-4 { transition-delay: 0.6s; }

/* ============================================
   1. NAVIGATION (Minimal, floating)
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(10, 14, 23, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar .container { display:flex; align-items:center; justify-content:space-between; }

.nav-logo { display:flex; align-items:center; gap:10px; z-index:1001; }
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  color:white; font-size:1rem; font-weight:800;
}
.nav-logo-text { font-size:1.15rem; font-weight:700; color: var(--text-inverse); }

.nav-menu { display:flex; align-items:center; gap:6px; }
.nav-link {
  padding: 8px 18px; font-size:0.9rem; font-weight:500;
  color: rgba(255,255,255,0.7); border-radius: var(--radius-full);
  transition: var(--transition);
}
.nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav-link.active { color: white; background: rgba(255,255,255,0.15); font-weight:600;}
.nav-cta {
  padding: 10px 24px; font-size:0.9rem; font-weight:600;
  color: white; background: var(--primary-gradient);
  border-radius: var(--radius-full); margin-left:8px;
  box-shadow: 0 4px 15px rgba(14,165,160,0.3);
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(14,165,160,0.4); }

.nav-toggle { display:none; flex-direction:column; gap:5px; z-index:10000; padding:4px; cursor: pointer; }
.nav-toggle span { width:22px; height:2px; background:white; border-radius:2px; transition:var(--transition); pointer-events: none; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity:0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile overlay */
.mobile-menu-overlay {
  position:fixed; inset:0;
  background: rgba(10,14,23,0.97); backdrop-filter:blur(20px);
  z-index:9999; display:none; align-items:center; justify-content:center;
}
.mobile-menu-overlay.active { display:flex; pointer-events:all; animation: menuFade 0.3s ease forwards; }
@keyframes menuFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-menu-list { display:flex; flex-direction:column; align-items:center; gap:28px; }
.mobile-link { font-size:1.4rem; font-weight:600; color:white; }
.mobile-link:hover { color: var(--primary); }
.mobile-link.active { color: var(--primary); }

/* ============================================
   2. HERO / HOOK - Dark, dramatic
   ============================================ */
.hero-hook {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-hook::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255,145,185,0.08) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-hook-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 80px 24px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease forwards;
}

.hero-main-copy {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-inverse);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  animation: fadeUp 0.8s ease 0.2s forwards;
  opacity:0;
}

.hero-main-copy .em {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.4s forwards;
  opacity:0;
}

.hero-sub-line {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.hero-question {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-bottom: 48px;
  animation: fadeUp 0.8s ease 0.6s forwards;
  opacity:0;
}

.hero-scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 0.8s ease 0.8s forwards;
  opacity:0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hero-scroll-indicator:hover {
  opacity: 0.8;
  transform: translateY(4px);
}

.hero-scroll-indicator span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.5; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

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

/* ============================================
   3. PROBLEM / AGITATION
   ============================================ */
.problem-section {
  padding: 140px 0;
  background: var(--dark-bg-2);
  position: relative;
}

.problem-header {
  text-align: center;
  margin-bottom: 80px;
}

.problem-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 20px;
}

.problem-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-inverse);
  line-height: 1.4;
  margin-bottom: 20px;
}

.problem-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

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

.problem-card {
  background: var(--dark-surface);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.problem-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,145,185,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.problem-card-icon { font-size: 2.2rem; margin-bottom: 16px; }

.problem-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-inverse);
  margin-bottom: 10px;
}

.problem-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Divider */
.problem-divider {
  text-align: center;
  position: relative;
  padding: 40px 0;
}

.problem-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.problem-answer {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-inverse);
  line-height: 1.5;
  max-width: 600px;
  margin: 0 auto;
}

.problem-answer .accent {
  color: var(--primary);
}

/* ============================================
   4. SOLUTION
   ============================================ */
.solution-section {
  padding: 140px 0;
  background: var(--bg-cream);
  position: relative;
}

.solution-transition {
  text-align: center;
  margin-bottom: 100px;
}

.solution-transition-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 24px;
}

.solution-transition-title {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 24px;
}

.solution-transition-title .em {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.solution-transition-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ============================================
   5. PRODUCT LINEUP SECTION
   ============================================ */
.lineup-section {
  padding: 120px 0;
  background: var(--bg-cream);
}

/* Individual product block */
.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 120px;
  padding: 60px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.product-block:last-child { margin-bottom: 0; }

.product-block.reverse .product-visual { order: 2; }
.product-block.reverse .product-info { order: 1; }

.product-visual { position: relative; }

.product-visual img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.product-visual .float-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--primary-gradient);
  color: white;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(14,165,160,0.3);
}

.float-badge-number {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.float-badge-label {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 2px;
}

.product-info .product-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.product-name {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.product-hook {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary); line-height: 1.6; padding-left: 16px; border-left: 3px solid var(--primary); margin-bottom: 24px;
}

.product-desc { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 32px; }

/* Feature chips */
.feature-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }

.feature-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-full);
  font-size: 0.88rem; font-weight: 500; color: var(--text-secondary);
}

.feature-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* Price tag */
.price-tag { display: flex; align-items: baseline; gap: 8px; margin-bottom: 28px; }
.price-amount { font-family: var(--font-num); font-size: 2rem; font-weight: 700; color: var(--primary); }
.price-unit { font-size: 0.9rem; color: var(--text-tertiary); }

/* Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.95rem; font-weight: 600; color: white; background: var(--primary-gradient); border-radius: var(--radius-full); box-shadow: 0 4px 16px rgba(14,165,160,0.3); transition: var(--transition); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14,165,160,0.4); }

.btn-ghost { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; font-size: 0.95rem; font-weight: 600; color: var(--text-primary); border: 2px solid var(--border); border-radius: var(--radius-full); transition: var(--transition); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* Coming soon product */
.product-block.coming-soon-block { background: transparent; border: 1px solid rgba(255,255,255,0.08); padding:0; box-shadow:none;}
.coming-soon-block .product-name, .coming-soon-block .product-hook { color: white; }
.coming-soon-block .product-desc { color: rgba(255,255,255,0.6); }
.coming-soon-block .product-tag { background: rgba(167,139,250,0.15); color: #A78BFA; }
.coming-soon-badge-lg { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.25); border-radius: var(--radius-full); color: #C4B5FD; font-size: 0.95rem; font-weight: 600; }

/* ============================================
   6. TRUST / CLINIC INFO
   ============================================ */
.trust-section { padding: 80px 0; background: var(--bg-primary); }

.trust-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-bottom: 80px; }
.trust-stat { text-align: center; padding: 40px 24px; background: var(--bg-secondary); border-radius: var(--radius-lg); border: 1px solid var(--border-light); transition: var(--transition); }
.trust-stat-icon { font-size: 2rem; margin-bottom: 12px; }
.trust-stat-value { font-family: var(--font-num); font-size: 2.2rem; font-weight: 700; color: var(--primary); line-height: 1.2; margin-bottom: 8px; }
.trust-stat-label { font-size: 0.85rem; color: var(--text-tertiary); }

.doctor-profile { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; padding: 48px; background: var(--bg-secondary); border-radius: var(--radius-xl); border: 1px solid var(--border-light); margin-bottom: 80px; }
.doctor-avatar { width: 120px; height: 120px; border-radius: 50%; background: var(--primary-gradient); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: white; box-shadow: 0 8px 24px rgba(14,165,160,0.2); }
.doctor-name { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-bottom: 8px; }
.doctor-quote { font-size: 1rem; color: var(--text-secondary); font-style: italic; line-height: 1.7; padding-left: 16px; border-left: 3px solid var(--primary-light); }

.clinic-section { padding: 80px 0; background: var(--bg-secondary); }
.clinic-header { text-align: center; margin-bottom: 60px; }
.clinic-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--text-primary); }

.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.clinic-cards { display: flex; flex-direction: column; gap: 20px; }
.clinic-card { background: white; border-radius: var(--radius-lg); padding: 28px 32px; display: flex; align-items: flex-start; gap: 20px; border: 1px solid var(--border-light); }
.clinic-card-icon { flex-shrink: 0; width: 50px; height: 50px; background: var(--primary-light); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.clinic-card-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; }
.clinic-card-content { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.7; }

.hours-table { width: 100%; margin-top: 4px; }
.hours-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.hours-row:last-child { border-bottom: none; }
.hours-day { font-weight: 500; color: var(--text-primary); font-size: 0.84rem; }
.hours-time { color: var(--text-secondary); font-size: 0.84rem; }
.hours-note { font-size: 0.78rem; color: var(--primary); font-weight: 500; margin-top: 6px; }

.clinic-map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; min-height: 420px; position: relative; }
.map-overlay { position: relative; width: 100%; height: 100%; min-height: 420px; }
.map-buttons-overlay {
  position: absolute; bottom: 20px; left: 20px; right: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.btn-map-naver, .btn-map-kakao {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px; border-radius: var(--radius-md); font-weight: 700; font-size: 0.95rem;
  transition: var(--transition); box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-map-naver { background: #03C75A; color: white; }
.btn-map-naver:hover { background: #02b351; transform: translateY(-2px); }
.btn-map-kakao { background: #FFEB00; color: #3C1E1E; }
.btn-map-kakao:hover { background: #fada00; transform: translateY(-2px); }
.map-icon {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  border-radius: 4px; font-weight: 900; font-size: 0.8rem;
}
.btn-map-naver .map-icon { border: 1.5px solid white; }
.btn-map-kakao .map-icon { border: 1.5px solid #3C1E1E; }

/* ============================================
   8. FINAL CTA
   ============================================ */
.final-cta { padding: 120px 0; background: var(--primary-gradient); text-align: center; position: relative; overflow: hidden; }
.final-cta-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.final-cta-title { font-family: var(--font-serif); font-size: 2.5rem; font-weight: 700; color: white; margin-bottom: 16px; line-height: 1.35; }
.final-cta-desc { font-size: 1.1rem; color: rgba(255,255,255,0.85); margin-bottom: 40px; }
.final-cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn-white {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
  font-size: 1rem; font-weight: 600; color: var(--primary); background: white;
  border-radius: var(--radius-full); box-shadow: 0 4px 20px rgba(0,0,0,0.1); transition: var(--transition);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(0,0,0,0.15); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
  font-size: 1rem; font-weight: 600; color: white; border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full); transition: var(--transition);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.8); }

/* ============================================
   9. FLOATING BOTTOM BAR
   ============================================ */
.floating-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(20px);
  border-top: 1px solid var(--border); padding: 12px 24px;
  transform: translateY(100%); transition: transform 0.4s ease;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.floating-bar.visible { transform: translateY(0); }
.floating-bar .container { display: flex; align-items: center; justify-content: space-between; }
.floating-bar-text { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.floating-bar-text strong { color: var(--text-primary); }
.floating-bar-actions { display: flex; gap: 10px; }
.floating-bar .btn-sm { padding: 10px 22px; font-size: 0.85rem; font-weight: 600; border-radius: var(--radius-full); transition: var(--transition); }
.floating-bar .btn-sm-primary { color: white; background: var(--primary-gradient); box-shadow: 0 2px 10px rgba(14,165,160,0.3); }

/* ============================================
   10. FOOTER
   ============================================ */
.footer { padding: 48px 0 28px; background: var(--dark-bg); color: rgba(255,255,255,0.5); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .footer-logo { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-logo-icon { width:32px; height:32px; background:var(--primary-gradient); border-radius:var(--radius-sm); display:flex; align-items:center; justify-content:center; color:white; font-size:0.8rem; font-weight:800; }
.footer-logo-text { font-size: 1rem; font-weight: 700; color: white; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 300px; }
.footer-section-title { font-size: 0.8rem; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.4); }
.footer-links a:hover { color: var(--primary); }
.footer-contact li { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 0.85rem; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); text-align:center;}
.footer-copyright { font-size: 0.75rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-main-copy { font-size: 2.6rem; }
  .product-block { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .product-block.reverse .product-visual { order: 1; }
  .product-block.reverse .product-info { order: 2; }
  .trust-stats { grid-template-columns: repeat(2, 1fr); }
  .clinic-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doctor-profile { grid-template-columns: 1fr; text-align: center; }
  .doctor-avatar { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; }
  .nav-toggle { display: flex; }
  .hero-main-copy { font-size: 2rem; }
  .problem-cards { grid-template-columns: 1fr; gap: 16px; }
  .solution-transition-title { font-size: 2rem; }
  .product-block { padding: 28px; gap: 28px; }
  .trust-stats { grid-template-columns: 1fr 1fr; gap: 16px; }
  .final-cta-buttons { flex-direction: column; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .floating-bar .container { flex-direction: column; gap: 8px; text-align: center; }
  .floating-bar-actions { width: 100%; }
  .floating-bar .btn-sm { flex: 1; justify-content: center; }
}

/* ============================================
   11. SURVEY MODAL (CRM FORM)
   ============================================ */
.survey-modal {
  border: none; background: transparent; padding: 0;
  position: fixed; inset: 0; z-index: 2000;
  width: 100vw; height: 100vh;
  display: none; align-items: center; justify-content: center;
}
.survey-modal[open], .survey-modal.active { display: flex; }
.survey-modal-overlay {
  position: absolute; inset: 0; background: rgba(10,14,23,0.8); backdrop-filter: blur(4px);
}
.survey-modal-content {
  position: relative; z-index: 1; background: white; border-radius: var(--radius-xl);
  width: 90%; max-width: 500px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-xl);
  animation: modalFadeUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modalFadeUp {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.survey-close {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border-radius: 50%; background: var(--bg-secondary); color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  transition: var(--transition); z-index: 10; cursor: pointer; border: none;
}
.survey-close:hover { background: var(--border); color: var(--text-primary); transform: rotate(90deg); }

.survey-header { padding: 32px 32px 0; }
.survey-title { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; margin-bottom: 24px; color: var(--text-primary); text-align: center; }
.survey-progress { height: 4px; background: var(--bg-secondary); border-radius: 2px; overflow: hidden; margin-bottom: 8px; }
.progress-bar { height: 100%; background: var(--primary); transition: width 0.4s ease; }

.survey-body { padding: 0 32px 32px; overflow-y: auto; overflow-x: hidden; max-height: calc(90vh - 120px); }
.survey-step { display: none; padding-top: 24px; animation: fadeIn 0.4s ease; }
.survey-step.active { display: block; }
@keyframes fadeIn { from { opacity:0; transform: translateX(10px); } to { opacity:1; transform: translateX(0); } }

.step-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); border-bottom: 2px solid var(--primary-light); padding-bottom: 8px; display: inline-block;}
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.req { color: #EF4444; }
.form-input { width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-md); font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--bg-secondary); }
.form-input:focus { outline: none; border-color: var(--primary); background: white; box-shadow: 0 0 0 3px var(--primary-light); }
.input-row { display: flex; gap: 12px; }

/* Custom Radio & Checkbox */
.radio-card-group { display: flex; gap: 10px; }
.radio-card-group.flex-col { flex-direction: column; gap: 8px; }
.radio-card { flex: 1; position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.rc-label { display: block; padding: 14px; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-md); font-size: 0.95rem; font-weight: 500; color: var(--text-secondary); transition: var(--transition); background: white; }
.radio-card input:checked + .rc-label { border-color: var(--primary); color: var(--primary); background: var(--bg-cream); box-shadow: 0 4px 12px var(--primary-light); }
.radio-card-group.flex-col .rc-label { text-align: left; padding: 12px 16px; }

.checkbox-group { display: flex; flex-direction: column; gap: 10px; background: var(--bg-secondary); padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--border-light); }
.checkbox-group label { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 0.95rem; cursor: pointer; color: var(--text-secondary); margin: 0 !important;}
.checkbox-group input { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

.survey-actions { margin-top: 32px; }
.survey-actions.multi { display: flex; gap: 12px; }
.survey-actions.multi .btn-prev { flex: 1; justify-content: center; }
.survey-actions.multi .btn-submit { flex: 2; justify-content: center; }
.w-100 { width: 100%; justify-content: center; }

.form-error { color: #EF4444; font-size: 0.85rem; margin-top: 12px; min-height: 20px; font-weight: 500; }

/* Admin Base styles */
.admin-login-section input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.crm-table th, .crm-table td { padding: 16px; border-bottom: 1px solid var(--border-light); }
.crm-table tr:hover { background: var(--bg-secondary); }
.status-badge { padding: 6px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; }
.status-pending { background: #FEF08A; color: #854D0E; }
.status-done { background: #BBF7D0; color: #166534; }
.detail-btn { padding: 6px 12px; border-radius: 6px; font-size: 0.85rem; font-weight: 600; background: var(--primary-light); color: var(--primary-dark); border: none; cursor: pointer; transition: 0.2s; }
.detail-btn:hover { background: var(--primary); color: white; }
.admin-detail-row { display: flex; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.admin-detail-lbl { width: 140px; font-weight: 600; color: var(--text-secondary); font-size: 0.9rem; }
.admin-detail-val { flex: 1; font-weight: 500; color: var(--text-primary); font-size: 0.95rem; }

/* ============================================
   12. COMMUNITY / BLOG UI
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: white; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid var(--border-light);
  transition: var(--transition); cursor: pointer; display: flex; flex-direction: column;
}
.blog-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }

.blog-card-thumb { width:100%; height:220px; border-bottom:1px solid var(--border-light); overflow:hidden; background:#F1F5F9; }
.blog-card-thumb img { width:100%; height:100%; object-fit:cover; transition: 0.6s ease; }
.blog-card:hover .blog-card-thumb img { scale: 1.05; }

.blog-card-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat { display:inline-block; font-size: 0.75rem; font-weight: 700; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.blog-card-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-light); display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: var(--text-tertiary); }

/* Filter Buttons */
.filter-btn {
  padding: 10px 24px; border-radius: var(--radius-full); background: white; border: 1px solid var(--border);
  font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 4px 12px var(--primary-light); }

/* Reading View */
.blog-reading-view { padding: 40px; overflow-y: auto; flex: 1; }
.blog-reading-view img { max-width: 100%; height: auto; border-radius: 12px; margin-bottom: 32px; }
.blog-read-cat { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; display: block; }
.blog-read-title { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--text-primary); margin-bottom: 24px; line-height: 1.3; }
.blog-read-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--border-light); font-size: 0.9rem; color: var(--text-tertiary); }
.blog-read-content { font-size: 1.05rem; line-height: 1.9; color: var(--text-secondary); white-space: pre-wrap; }

/* Admin Tabs */
.admin-tab-btn { padding: 12px 24px; font-size: 0.95rem; font-weight: 600; color: var(--text-tertiary); border: none; background: none; cursor: pointer; transition: 0.2s; position: relative; }
.admin-tab-btn.active { color: var(--primary); }
.admin-tab-btn.active::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--primary); }
.admin-tab-pane { display: none; }
.admin-tab-pane.active { display: block; animation: fadeIn 0.3s ease; }

.admin-blog-item { display: flex; justify-content: space-between; align-items: center; padding: 16px; background: #F8FAFC; border-radius: 8px; border: 1px solid #E2E8F0; }
.admin-blog-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.admin-blog-info span { font-size: 0.8rem; color: var(--text-tertiary); }

/* ============================================
   14. KAKAO TALK FLOATING BUTTON
   ============================================ */
.kakao-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2005;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  background: #FEE500;
  color: #3C1E1E;
  border-radius: var(--radius-full);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.kakao-chat-btn:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  background: #fada00;
}

.kakao-chat-icon {
  width: 44px;
  height: 44px;
  background: #FEE500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kakao-chat-icon svg {
  width: 26px;
  height: 26px;
}

.kakao-chat-label {
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Adjust position when floating footer bar is visible */
.kakao-chat-btn.shifted {
  bottom: 84px;
}

@media (max-width: 768px) {
  .kakao-chat-btn {
    bottom: 20px;
    right: 20px;
    padding: 8px;
  }
  .kakao-chat-label {
    display: none; /* Icon only on small mobile to save space */
  }
  .kakao-chat-icon {
    width: 50px;
    height: 50px;
  }
  .kakao-chat-btn.shifted {
    bottom: 140px; /* More clearance for mobile floating bar */
  }
}
