﻿/**
 * NovaCell Chakra Bio Points Interactive Application Styles
 * Dark Cyber-Medical Aesthetic, Responsive Two-Column Layout,
 * Interactive Hotspot Pins, Floating Information Card, and 528Hz Timer.
 */

:root {
  --bg: #030712;
  --panel: #0a1120;
  --panel-elevated: #0f1c34;
  --card: #08142c;
  --card-hover: #0e2246;
  --line: rgba(56, 189, 248, 0.2);
  --line-strong: rgba(56, 189, 248, 0.45);
  --text: #f8fafc;
  --muted: #94a3b8;
  --subtext: #cbd5e1;
  --cyan: #38bdf8;
  --cyan-bright: #00f0ff;
  --cyan-soft: rgba(56, 189, 248, 0.15);
  --blue-primary: #0284c7;
  --blue-glow: rgba(2, 132, 199, 0.45);
  --navy-dark: #050d1a;
  --navy-base: #08142c;
  --navy-card: #091a38;
  --navy-light: #0f2b54;
  --amber: #f59e0b;
  --red: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --font-system: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-system);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Header Navigation
   ========================================================================== */
.circuit-header {
  height: 64px;
  background: rgba(5, 13, 26, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
}

.brand-mark {
  color: var(--cyan);
  font-size: 20px;
  filter: drop-shadow(0 0 8px var(--cyan));
}

.brand strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.brand small {
  display: block;
  font-size: 10.5px;
  color: var(--cyan);
  font-weight: 700;
  letter-spacing: 1.2px;
}

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

.header-actions a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.header-actions a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.header-actions a.active {
  color: var(--cyan-bright);
  background: var(--cyan-soft);
  border-color: var(--line);
}

.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  color: #e2e8f0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.lang-toggle-btn:hover {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--cyan);
}

.lang-opt {
  color: var(--muted);
  transition: color 0.2s ease;
}

.lang-opt.active {
  color: var(--cyan-bright);
  font-weight: 800;
}

.lang-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 11px;
}

/* ==========================================================================
   Main Shell & Two-Column Grid
   ========================================================================== */
.bio-shell {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: calc(100vh - 64px);
}

/* Left Sidebar */
.bio-sidebar {
  background: #060d1b;
  border-right: 1px solid var(--line);
  padding: 24px 20px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
  max-height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}

.sidebar-heading .eyebrow {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 6px 0;
}

.sidebar-heading h1 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.sidebar-heading .accent-title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--subtext);
  margin-top: 4px;
}

.sidebar-intro {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
  margin: 0;
}

/* View Segmented Control */
.view-segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(15, 28, 52, 0.6);
  padding: 5px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}

.segmented-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 8px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
}

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

.segmented-btn.active {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.35) 0%, rgba(56, 189, 248, 0.22) 100%);
  color: #ffffff;
  border-color: var(--line-strong);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Sidebar List Meta */
.list-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
}

.list-meta-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.view-item-count {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: 12px;
}

/* Chakra Cards List */
.chakra-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.chakra-item-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--card);
  border: 1.5px solid rgba(56, 189, 248, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.chakra-item-card:hover {
  background: var(--card-hover);
  border-color: var(--cyan);
  transform: translateX(3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.chakra-item-card.active {
  background: linear-gradient(135deg, rgba(8, 20, 44, 0.95) 0%, rgba(14, 34, 70, 0.9) 100%);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.32), inset 0 0 12px rgba(56, 189, 248, 0.1);
}

.chakra-card-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--c-accent, var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--c-accent, var(--cyan));
}

.chakra-num {
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
}

.chakra-card-body {
  flex: 1;
  min-width: 0;
}

.chakra-card-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chakra-card-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chakra-meridian {
  font-size: 11px;
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chakra-organ {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chakra-arrow {
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.chakra-item-card.active .chakra-arrow {
  color: var(--cyan-bright);
  transform: translateX(3px);
}

/* Sidebar Details Accordions */
.sidebar-drawer {
  background: rgba(10, 20, 40, 0.5);
  border: 1px solid rgba(56, 189, 248, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.sidebar-drawer h3 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--cyan);
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar-drawer p {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   Right Main Stage
   ========================================================================== */
.bio-main-stage {
  padding: 24px 28px 60px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1360px;
}

/* Topline Header */
.stage-topline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.topline-info .eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin: 0 0 4px 0;
}

.topline-info h2 {
  font-size: 26px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.topline-info .topline-sub {
  font-size: 13.5px;
  color: var(--subtext);
  margin: 0;
}

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

.stage-quick-toggles {
  display: flex;
  gap: 6px;
  background: rgba(15, 28, 52, 0.5);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.stage-toggle-btn {
  padding: 5px 11px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.stage-toggle-btn.active {
  background: var(--cyan-soft);
  color: var(--cyan-bright);
}

.source-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-soft);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ==========================================================================
   Figure Stage (Human Body Diagram & Live Floating Card)
   ========================================================================== */
.figure-stage-wrapper {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.stage-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.stage-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-header-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

.stage-view-badge {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.stage-view-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-left: 6px;
}

/* Image Canvas Area */
.stage-canvas-area {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: auto;
  padding: 16px 20px;
  background: #ffffff;
  overflow: hidden;
}

.bio-figure-wrapper {
  position: relative;
  display: inline-block;
  line-height: 0;
  max-width: 100%;
  margin: 0 auto;
}

.figure-body-img {
  max-height: 680px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* Hotspot Pins (Locked 1:1 on bio-figure-wrapper) */
.stage-pins-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.chakra-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chakra-pin:hover {
  transform: translate(-50%, -50%) scale(1.25);
}

.chakra-pin.active {
  transform: translate(-50%, -50%) scale(1.35);
  z-index: 25;
}

.pin-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pin-color, #0284c7);
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.pin-dot b {
  font-size: 9.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.pin-pulse {
  position: absolute;
  top: -6px;
  left: -6px;
  right: -6px;
  bottom: -6px;
  border-radius: 50%;
  background: var(--pin-color, #0284c7);
  opacity: 0;
  z-index: 1;
}

.chakra-pin.active .pin-pulse {
  animation: pinPulseAnim 2s infinite ease-out;
}

@keyframes pinPulseAnim {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* Floating Live Active Chakra Card (Fixed to Bottom-Left Corner) */
.floating-point-card {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 280px;
  max-width: 44%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16), 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: 25;
  pointer-events: auto;
}

.floating-point-header {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 14px 11px 14px;
}

.floating-point-badge {
  display: block;
  margin-bottom: 7px;
  font-size: 11.5px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

.floating-point-title {
  display: block;
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-point-sub {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-point-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #ffffff;
}

.floating-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.floating-row span {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.floating-row strong {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.4;
}

.stage-figcaption {
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  padding: 12px 18px;
  line-height: 1.55;
  border-top: 1px solid #e2e8f0;
  margin: 0;
}

/* ==========================================================================
   528Hz Cellular Voltage Healing Timer
   ========================================================================== */
.timer-card {
  background: linear-gradient(180deg, #091a38 0%, #061124 100%);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(56, 189, 248, 0.2);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.timer-icon-freq {
  color: var(--cyan-bright);
  font-size: 22px;
  filter: drop-shadow(0 0 6px var(--cyan));
}

.timer-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.timer-subtitle {
  margin: 2px 0 0 0;
  font-size: 11.5px;
  color: var(--cyan);
  font-weight: 600;
}

.timer-status-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--subtext);
}

.timer-status-badge.running {
  background: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.35);
}

.timer-status-badge.finished {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--amber);
  color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.timer-presets {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.preset-btn {
  padding: 6px 14px;
  background: rgba(15, 28, 52, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  color: #ffffff;
  border-color: var(--cyan);
}

.preset-btn.active {
  background: var(--blue-primary);
  border-color: var(--cyan-bright);
  color: #ffffff;
  box-shadow: 0 0 12px var(--blue-glow);
}

/* Time Display & Bar */
.timer-display-wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.timer-time-text {
  font-family: "Courier New", Courier, monospace, var(--font-system);
  font-size: 42px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
}

.freq-indicator {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--cyan);
  font-weight: 700;
}

.freq-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan);
}

.freq-pulse-dot.pulsing {
  animation: pulseDot 1.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.6); opacity: 1; filter: drop-shadow(0 0 10px var(--cyan-bright)); }
}

.timer-progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.timer-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 50%, #00f0ff 100%);
  border-radius: 4px;
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.3s linear;
}

/* Timer Action Buttons & Volume */
.timer-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timer-start-btn {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
  transition: all 0.2s ease;
}

.timer-start-btn:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.55);
}

.timer-start-btn.paused {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  border-color: var(--amber);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.4);
}

.timer-sub-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  background: rgba(15, 28, 52, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--subtext);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.timer-sub-btn:hover {
  color: #ffffff;
  border-color: var(--cyan);
  background: rgba(15, 28, 52, 1);
}

.timer-sub-btn.muted {
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.15);
}

.volume-control-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 28, 52, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.vol-icon {
  font-size: 14px;
  color: var(--cyan);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 5px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cyan-bright);
  cursor: pointer;
  box-shadow: 0 0 6px var(--cyan);
}

.timer-note {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.timer-note strong {
  color: var(--cyan);
}

/* ==========================================================================
   Clinical Protocol Guide Card
   ========================================================================== */
.clinical-protocol-guide {
  background: linear-gradient(180deg, #091730 0%, #050e20 100%);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 26px 26px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.protocol-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

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

.proto-badge-main {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-bright);
  background: var(--cyan-soft);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.proto-badge-link {
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 3px 8px;
  border-radius: 4px;
}

.protocol-title {
  margin: 0 0 4px 0;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.protocol-sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* Parameters Row */
.clinical-params-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.param-box {
  background: rgba(15, 28, 52, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.param-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}

.param-value {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
}

/* Treatment Sequence */
.clinical-sequence-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sequence-heading {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sequence-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.clinical-step-box {
  background: rgba(8, 20, 44, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.clinical-step-box:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
}

.step-check { border-top: 3px solid #38bdf8; }
.step-supply { border-top: 3px solid #f43f5e; }
.step-muscle { border-top: 3px solid #10b981; }

.step-num-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.step-target {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
}

.step-desc {
  font-size: 12px;
  color: var(--subtext);
  line-height: 1.55;
  margin: 0;
}

/* Clinical Pearls Card */
.clinical-pearls-card {
  background: rgba(15, 28, 52, 0.6);
  border: 1.5px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}

.pearls-header {
  font-size: 14px;
  font-weight: 800;
  color: var(--amber);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clinical-pearls-card ul {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.clinical-pearls-card li {
  font-size: 12.5px;
  color: var(--subtext);
  line-height: 1.6;
}

.clinical-pearls-card li strong {
  color: #ffffff;
}

/* Circuit Pairs & Principles Section */
.pairs-principles-section {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.circuit-pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.pair-item-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.pair-item-card:hover {
  background: var(--card-hover);
  border-color: var(--cyan);
}

.pair-code-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-bright);
  background: var(--cyan-soft);
  border: 1px solid var(--line);
  padding: 3px 6px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.pair-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pair-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pair-emotion {
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Principles Grid */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.principle-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
}

.principle-num {
  font-size: 15px;
  font-weight: 900;
  color: var(--cyan);
  flex-shrink: 0;
}

.principle-body h4 {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.principle-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Evidence Disclaimer */
.evidence-note {
  background: rgba(10, 20, 40, 0.6);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.evidence-note strong {
  display: block;
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 4px;
}

.evidence-note p {
  margin: 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1100px) {
  .bio-shell {
    grid-template-columns: 310px 1fr;
  }
  .clinical-params-row,
  .sequence-steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .header-actions a {
    display: none !important;
  }
  .bio-shell {
    grid-template-columns: 1fr;
  }
  .bio-sidebar {
    position: static;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .bio-main-stage {
    padding: 16px 12px;
  }
  .stage-canvas-area {
    padding: 12px 8px;
    min-height: auto;
  }
  .figure-body-img {
    max-height: min(65vh, 520px);
  }
  .floating-point-card {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-top: 14px;
  }
}

/* Floating Draggable Member Chip Override */
.nc-member-chip {
  top: 14px !important;
  right: 18px !important;
  bottom: auto !important;
  cursor: grab !important;
}
.nc-member-chip.dragging {
  cursor: grabbing !important;
}

/* ==========================================================================
   Smartphone Quick Navigation Bar (v45)
   ========================================================================== */
.mobile-quick-nav-bar {
  display: none;
}

@media (max-width: 860px) {
  .mobile-quick-nav-bar {
    display: block;
    position: sticky;
    top: 50px;
    z-index: 85;
    background: rgba(6, 17, 28, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 221, 236, 0.22);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
    padding: 7px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .mobile-quick-nav-bar::-webkit-scrollbar {
    display: none;
  }
  
  .mobile-quick-nav-track {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 100%;
  }
  
  .mobile-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(13, 27, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
    -webkit-tap-highlight-color: transparent;
  }
  
  .mobile-quick-pill:hover,
  .mobile-quick-pill:active {
    background: rgba(0, 221, 236, 0.12);
    border-color: rgba(0, 221, 236, 0.4);
    color: #e2e8f0;
  }
  
  .mobile-quick-pill.active {
    background: linear-gradient(135deg, rgba(0, 221, 236, 0.22), rgba(14, 165, 233, 0.3));
    border-color: #00ddec;
    color: #22d3ee;
    box-shadow: 0 0 12px rgba(0, 221, 236, 0.25);
  }
  
  .mobile-quick-pill .m-pill-icon {
    font-size: 13px;
    line-height: 1;
  }
  
  .mobile-quick-pill.active .m-pill-icon {
    color: #38bdf8;
  }
  
  .mobile-quick-pill .m-pill-text {
    line-height: 1.2;
  }
}

/* ==========================================================================
   Universal Header & Navigation System (Desktop + Mobile)
   ========================================================================== */

/* Desktop Header Actions Clearance for User Member Chip */
@media (min-width: 901px) {
  .header-actions {
    padding-right: 140px !important;
  }
}

/* Official Website Shortcut Link (novacell.kr) */
.header-actions a.nav-official-home,
.header-cover-btn.nav-official-home {
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  background: rgba(56, 189, 248, 0.12) !important;
  border-radius: 9999px !important;
  padding: 6px 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  font-size: 12.5px !important;
  flex-shrink: 0 !important;
}

.header-actions a.nav-official-home:hover,
.header-cover-btn.nav-official-home:hover {
  background: rgba(56, 189, 248, 0.28) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-1px) !important;
}

/* Mobile Quick Nav Bar Official Home Pill */
.mobile-quick-pill.m-nav-home {
  background: rgba(14, 165, 233, 0.16) !important;
  border: 1px solid rgba(56, 189, 248, 0.45) !important;
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

.mobile-quick-pill.m-nav-home:hover,
.mobile-quick-pill.m-nav-home:active {
  background: rgba(14, 165, 233, 0.3) !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
}

/* Language Switcher Button (Shared across all 3 pages) */
.lang-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  flex-shrink: 0;
}
.lang-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
}
.lang-toggle-btn .lang-opt {
  transition: color 0.15s ease;
}
.lang-toggle-btn .lang-opt.active {
  color: #38bdf8;
  font-weight: 700;
}
.lang-toggle-btn .lang-divider {
  opacity: 0.35;
  font-size: 0.72rem;
}

/* Mobile Hamburger Toggle Button */
.mobile-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 9px;
  background: rgba(11, 32, 48, 0.9);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(0, 221, 236, 0.2);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 2147483640 !important;
}
.mobile-menu-toggle svg {
  width: 20px;
  height: 20px;
}

/* Mobile Hamburger Navigation Drawer Overlay & Panel */
.mobile-menu-overlay[hidden] {
  display: none !important;
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  background: rgba(2, 7, 17, 0.75);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 360px);
  height: 100%;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px 16px calc(24px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, #0d1a2c 0%, #07111f 100%);
  border-left: 1px solid #1d5265;
  box-shadow: -16px 0 45px rgba(0, 0, 0, 0.7);
  color: #eafcff;
}
.mobile-menu-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 15px;
  border-bottom: 1px solid #284154;
}
.mobile-menu-kicker {
  display: block;
  color: #2be7f1;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
}
.mobile-menu-head h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.25;
  color: #ffffff;
}
.mobile-menu-close {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #42566b;
  border-radius: 50%;
  background: #162437;
  color: #e9f9ff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-links {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}
.mobile-menu-links a,
.mobile-menu-links button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #1d3a4d;
  border-radius: 12px;
  background: #0b1d2e;
  color: #eafcff;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}
.mobile-menu-links a:hover,
.mobile-menu-links button:hover {
  background: #11314d;
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.mobile-menu-links a span,
.mobile-menu-links button span {
  font-size: 18px;
  color: #38bdf8;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.mobile-menu-links strong {
  font-size: 14px;
  line-height: 1.35;
  display: block;
  color: #f1f5f9;
}
.mobile-menu-links small {
  color: #92aebe;
  font-size: 11px;
  line-height: 1.35;
  display: block;
}
.mobile-menu-links a.drawer-official-home {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(56, 189, 248, 0.45);
}
.mobile-menu-links a.drawer-official-home strong {
  color: #38bdf8;
}
body.mobile-menu-open {
  overflow: hidden !important;
}

/* Mobile Strict Rules (<= 900px) */
@media (max-width: 900px) {
  /* Hide desktop header links, star button, status badge on mobile */
  .header-actions a,
  .header-actions a.nav-official-home,
  .header-cover-btn,
  .header-cover-btn.nav-official-home,
  #open-cover-btn,
  .header-status-badge {
    display: none !important;
  }

  .header-actions {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: auto !important;
    padding-right: 0 !important;
  }

  .lang-toggle-btn {
    display: inline-flex !important;
    height: 30px !important;
    padding: 3px 8px !important;
    font-size: 11px !important;
    margin-left: 0 !important;
    flex-shrink: 0 !important;
    z-index: 2147483630 !important;
  }

  .mobile-menu-toggle {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    flex-shrink: 0 !important;
  }

  .nc-member-chip {
    top: 10px !important;
    bottom: auto !important;
    right: 125px !important;
    height: 30px !important;
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    max-width: 95px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    z-index: 2147482000 !important;
  }
}