/* Project 1: Shanghai Aesthetic - Japanese Luxury Clinical Aesthetic Style (muuuuu.org inspired) */
:root {
  --bg-porcelain: #FAF9F6;
  --surface-card: rgba(255, 255, 255, 0.92);
  --surface-card-solid: #FFFFFF;
  --text-main: #1F2937;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --accent-rose: #0F766E; /* Aligned with Taiwan Jade Green tokens */
  --brand-tw: #0F766E;
  --brand-tw-dark: #115E59;
  --accent-gold: #D97706;
  --accent-soft: #F0FDFA;
  --border-subtle: rgba(229, 231, 235, 0.8);
  --border-card: #F3F4F6;
  --shadow-soft: 0 10px 30px -5px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 35px -10px rgba(15, 118, 110, 0.12);
  --radius-card: 16px;
  --radius-btn: 9999px;
  --font-serif: "Noto Serif TC", "Shippori Mincho", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", "Segoe UI", Roboto, sans-serif;
}

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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-porcelain);
  color: var(--text-main);
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

@media (max-width: 640px) {
  .studio-controls-panel {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Header */
.p1-header {
  position: sticky;
  top: 0;
  background: rgba(250, 249, 246, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 14px 28px;
}
.p1-header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.p1-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}
.p1-brand-logo {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #CCFBF1, #99F6E4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-rose);
  font-weight: 800;
  font-size: 1.1rem;
}
.p1-brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}
.p1-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-family: var(--font-serif);
}
.p1-brand-tag {
  font-size: 0.72rem;
  color: var(--accent-rose);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}
.p1-nav {
  display: flex;
  gap: 14px;
  align-items: center;
  list-style: none;
}
.p1-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}
.p1-nav a:hover { color: #0F766E; }
.p1-btn-primary {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: white !important;
  padding: 7px 16px;
  border-radius: var(--radius-btn);
  font-weight: 700 !important;
  font-size: 0.84rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(15, 118, 110, 0.25);
  transition: all 0.2s;
}
.p1-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.35);
}

/* Hero Section - 2-Column Luxury Medical Layout */
.p1-hero {
  max-width: 1280px;
  margin: 30px auto 50px;
  padding: 0 24px;
}
.p1-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}
@media (max-width: 960px) {
  .p1-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .p1-hero-right {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}
.p1-hero-left {
  text-align: left;
}
.p1-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--brand-tw, #0F766E);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid #CCFBF1;
  margin-bottom: 20px;
  max-width: 100%;
}
.p1-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 900;
  line-height: 1.32;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.p1-title-highlight {
  color: #0E6E66;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.desktop-br {
  display: block;
}
@media (max-width: 640px) {
  .desktop-br {
    display: none;
  }
}
.p1-sub-clinical-row {
  font-size: 0.98rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.p1-quote-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0FDFA;
  border-left: 3px solid #0F766E;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.88rem;
  color: #0F766E;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.5;
}
.p1-hero p.lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 0 28px;
  line-height: 1.85;
}
.p1-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero Right Visual Anchor Card */
.p1-hero-right {
  display: flex;
  justify-content: center;
}
.p1-hero-visual-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 168, 128, 0.45);
  box-shadow: 0 20px 45px -10px rgba(15, 118, 110, 0.15);
  max-width: 440px;
  width: 100%;
}
.p1-doc-slide {
  display: none;
  position: relative;
  animation: p1DocFade 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.p1-doc-slide.active {
  display: block;
}
@keyframes p1DocFade {
  from { opacity: 0; transform: scale(0.985); }
  to { opacity: 1; transform: scale(1); }
}
.p1-doc-slide-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  background: #F8F9FA;
}
.p1-doc-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #F5E6D3;
  border: 1px solid rgba(197, 168, 128, 0.45);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}
.p1-doc-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.6) 65%, transparent 100%);
  padding: 24px 18px 12px;
  color: #FFFFFF;
  z-index: 2;
}
.p1-doc-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.p1-doc-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}
.p1-doc-title-badge {
  font-size: 0.72rem;
  color: #C5A880;
  font-weight: 700;
  background: rgba(197, 168, 128, 0.18);
  border: 1px solid rgba(197, 168, 128, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}
.p1-doc-tags {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.p1-doc-tag {
  font-size: 0.7rem;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 4px;
}
.p1-doc-tabs {
  display: flex;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  padding: 10px 12px;
  gap: 8px;
}
.p1-doc-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-align: left;
}
.p1-doc-tab-btn.active {
  background: #F0FDFA;
  border-color: #0F766E;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}
.p1-doc-tab-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(197, 168, 128, 0.5);
  flex-shrink: 0;
}
.p1-doc-tab-text {
  display: flex;
  flex-direction: column;
}
.p1-doc-tab-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}
.p1-doc-tab-role {
  font-size: 0.66rem;
  color: #64748B;
  line-height: 1.2;
}
.p1-doc-tab-btn.active .p1-doc-tab-role {
  color: #0F766E;
  font-weight: 600;
}
.p1-hero-visual-footer {
  padding: 0;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
}

/* 3 Pillars Cards */
.p1-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 60px;
}
.p1-pillar-card {
  background: var(--surface-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.p1-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #CCFBF1;
}
.p1-pillar-num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: #CCFBF1;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}
.p1-pillar-icon {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--accent-rose);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.p1-pillar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 12px;
}
.p1-pillar-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}
.p1-pillar-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  background: #F3F4F6;
  color: #4B5563;
  padding: 3px 10px;
  border-radius: 6px;
}

/* Interactive Pillow Face Self-Checker Widget */
.p1-diagnostic-box {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F6 100%);
  border: 1px solid #FFE4E6;
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 15px 40px -10px rgba(225, 29, 72, 0.07);
  margin: 50px auto 80px;
  max-width: 860px;
  text-align: left;
}
.p1-diag-header {
  text-align: center;
  margin-bottom: 32px;
}
.p1-diag-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 8px;
}
.p1-diag-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.p1-diag-step {
  margin-bottom: 24px;
  background: white;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  padding: 20px 24px;
}
.p1-diag-question {
  font-weight: 800;
  font-size: 0.98rem;
  color: #1F2937;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.p1-diag-question span.q-badge {
  background: var(--accent-rose);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.p1-diag-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.p1-diag-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: #374151;
  transition: all 0.2s;
}
.p1-diag-opt:hover {
  border-color: var(--accent-rose);
  background: #FFF1F2;
}
.p1-diag-opt input[type="radio"] {
  accent-color: var(--accent-rose);
}
.p1-diag-result {
  display: none;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  animation: fadeIn 0.3s ease;
}
.p1-diag-result-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #92400E;
  margin-bottom: 8px;
}
.p1-diag-result-body {
  font-size: 0.9rem;
  color: #78350F;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Mobile Sticky Bar - Safe Area Aware, Compact Single-Line */
.p1-sticky-mobile {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 9999;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.p1-sticky-mobile-inner {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
  align-items: center;
}
.p1-sticky-btn-line,
.p1-sticky-btn-diag {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 10px 8px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
}
.p1-sticky-btn-line {
  background: #0F766E;
  color: white !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
}
.p1-sticky-btn-line:hover {
  background: #115E59;
}
.p1-sticky-btn-diag {
  background: #0F172A;
  color: white !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.p1-sticky-btn-diag:hover {
  background: #1E293B;
}

/* Nav Responsive: at 1140px and below, automatically switch to drawer menu to prevent language wrap */
@media (max-width: 1140px) {
  .p1-nav { display: none !important; }
  .p1-mobile-menu-btn { display: flex !important; }
}

@media (max-width: 768px) {
  .p1-header { padding: 10px 16px; }
  .p1-brand img { height: 34px !important; max-width: 190px !important; }
  .p1-sticky-mobile { display: block !important; }
  body { padding-bottom: 74px; }
  .p1-pillars { grid-template-columns: 1fr; }
  /* Completely hide secondary floating live chat launcher on mobile to eliminate double button collision */
  .tw-chat-launcher { display: none !important; }
  .p1-floating-pill { display: none !important; }
}

/* Mobile Navigation Hamburger & Drawer (ZW-09) */
.p1-mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 10px;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  transition: all 0.2s ease;
}
.p1-mobile-menu-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}
.p1-mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #0F172A;
  border-radius: 2px;
  transition: all 0.2s ease;
}
.p1-mobile-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-bottom: 2px solid #0F766E;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.15);
  padding: 16px 20px 24px;
  z-index: 1000;
}
.p1-mobile-drawer.open {
  display: block;
}
.p1-mobile-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.p1-mobile-nav-list a {
  text-decoration: none;
  color: #1E293B;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  display: block;
  transition: all 0.2s;
}
.p1-mobile-nav-list a:hover {
  background: #F0FDFA;
  color: #0F766E;
}
.p1-mobile-nav-list .mobile-cta-btn {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF !important;
  text-align: center;
  padding: 12px;
  font-weight: 800;
  border-radius: 8px;
  margin-top: 6px;
}
@media (max-width: 768px) {
  .p1-mobile-menu-btn {
    display: flex !important;
  }
}

/* ========================================================================= */
/* Universal Comprehensive Global Multi-Channel Footer Styles (Embedded)     */
/* ========================================================================= */
.tw-global-footer {
  background: #0B132B !important;
  color: #E2E8F0 !important;
  padding: 60px 20px 30px !important;
  border-top: 2px solid #1E293B !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang TC", "Noto Sans TC", sans-serif !important;
  margin-top: 60px !important;
  text-align: left !important;
}
.tw-gf-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1.5fr;
  gap: 32px;
}
@media (max-width: 980px) {
  .tw-gf-container {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 600px) {
  .tw-gf-container {
    grid-template-columns: 1fr;
  }
}
.tw-gf-brand {
  font-size: 1.15rem;
  color: #FFFFFF;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tw-gf-logo-dot {
  width: 10px;
  height: 10px;
  background: #0F766E;
  border-radius: 50%;
  display: inline-block;
}
.tw-gf-desc {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.65;
  margin-bottom: 16px;
}
.tw-gf-hub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tw-gf-tag {
  background: #1E293B;
  color: #CBD5E1;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #334155;
}
.tw-gf-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #F8FAFC;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #1E293B;
  padding-bottom: 8px;
}
.tw-gf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tw-gf-link-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 0.85rem;
  text-align: left;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  line-height: 1.5;
}
.tw-gf-link-btn:hover {
  color: #38BDF8;
}
.tw-gf-link-btn code {
  background: #1E293B;
  padding: 2px 6px;
  border-radius: 4px;
  color: #FBBF24;
  font-family: monospace;
}
.tw-gf-link {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.85rem;
  line-height: 1.6;
  transition: color 0.15s;
}
.tw-gf-link:hover {
  color: #38BDF8;
}
.tw-gf-office {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.55;
  margin-bottom: 12px;
}
.tw-gf-office strong {
  color: #E2E8F0;
}
.tw-gf-bottom {
  max-width: 1140px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid #1E293B;
}
.tw-gf-disclaimer {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.7;
  margin-bottom: 14px;
}
.tw-gf-copyright {
  font-size: 0.8rem;
  color: #94A3B8;
  text-align: center;
}

/* ========================================================================= */
/* XX Specialist Packaging & Landing Page Modern Enhancements         */
/* ========================================================================= */

/* 3-Second Quick-Scan Strip in Hero */
.xx-hero-quickscan {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1080px;
  margin: 32px auto 0;
  text-align: left;
}
.quickscan-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(225, 29, 72, 0.15);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quickscan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.12);
}
.quickscan-card .qs-badge {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-rose);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}
.quickscan-card .qs-title {
  font-weight: 800;
  font-size: 0.96rem;
  color: #0F172A;
}
.quickscan-card .qs-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.5;
}

/* Doctors Section Packaging - Refined Compact Proportions */
.xx-doc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .xx-doc-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
.doc-card-v2 {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.doc-card-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
  border-color: #CCFBF1;
}
.doc-card-header {
  position: relative;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  padding: 16px 18px 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-bottom: 1px solid #F1F5F9;
}
.doc-avatar-wrap {
  position: relative;
  width: 96px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
  background: #F8FAFC !important;
}
.doc-avatar-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: top center !important;
  border-radius: 0 !important;
  border: none !important;
  display: block !important;
  transition: transform 0.3s ease;
}
.doc-card-v2:hover .doc-avatar-wrap img,
.p1-doc-card:hover .doc-avatar-wrap img {
  transform: scale(1.05);
}
.doc-exp-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%) !important;
  color: #FFFFFF !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  text-align: center;
  padding: 8px 0 3px !important;
  letter-spacing: 0.02em;
  backdrop-filter: blur(2px);
}
.doc-title-info {
  flex: 1;
}
.doc-title-info h3 {
  font-size: 1.18rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.doc-title-tag {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #CCFBF1;
}
.doc-title-sub {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0F766E;
  margin-bottom: 4px;
}
.doc-dept {
  font-size: 0.76rem;
  color: #64748B;
}
.doc-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.doc-section-title {
  font-size: 0.84rem;
  font-weight: 800;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.doc-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  background: #F1F5F9;
  color: #334155;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
}
.doc-philosophy {
  background: #FFF1F2;
  border-left: 3px solid var(--accent-rose);
  padding: 10px 14px;
  border-radius: 0 8px 8px 0;
  font-size: 0.84rem;
  color: #881337;
  line-height: 1.6;
}
.doc-credentials-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
}
.doc-credentials-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.doc-credentials-list li span.bullet {
  color: #0F766E;
  font-weight: 900;
}
.doc-award-gallery {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.doc-award-thumb {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}
.doc-award-thumb:hover {
  transform: scale(1.05);
}
.doc-award-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doc-award-banner {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #B45309;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.doc-award-banner:hover {
  background: #FEF3C7;
  border-color: #F59E0B;
}

/* 3D Simulations Progressive Disclosure */
.sim-details-toggle {
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.sim-details-toggle summary {
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #2DD4BF;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s;
  user-select: none;
}
.sim-details-toggle summary::-webkit-details-marker {
  display: none;
}
.sim-details-toggle summary::after {
  content: "▾";
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}
.sim-details-toggle[open] summary::after {
  transform: rotate(180deg);
}
.sim-details-toggle summary:hover {
  background: rgba(255, 255, 255, 0.06);
}
.sim-details-content {
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #CBD5E1;
  line-height: 1.6;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.25);
}

/* Compact Unified Consultation Form */
.consult-chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.consult-chip-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
}
.consult-chip-label:hover {
  border-color: #0F766E;
  background: #F0FDFA;
}
.consult-chip-label input[type="radio"],
.consult-chip-label input[type="checkbox"] {
  accent-color: #0F766E;
  transform: scale(1.15);
}
.doc-card-footer {
  margin-top: auto;
  padding: 16px 24px 22px;
  border-top: 1px solid #F1F5F9;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.doc-safety-note {
  font-size: 0.74rem;
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}
.doc-book-btn {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 8px 18px;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(15, 118, 110, 0.25);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}
.doc-book-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.35);
}

/* 4 Featured Package Solutions */
.xx-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.package-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.package-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08);
}
.package-card.featured-hot {
  border: 2px solid var(--accent-rose);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF5F7 100%);
}
.package-card.featured-vip {
  border: 2px solid var(--accent-gold);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFBEB 100%);
}
.pkg-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.ribbon-rose {
  background: var(--accent-rose);
  color: white;
}
.ribbon-gold {
  background: var(--accent-gold);
  color: white;
}
.pkg-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 6px;
}
.pkg-target {
  font-size: 0.8rem;
  color: #64748B;
  min-height: 38px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.pkg-price-wrap {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F1F5F9;
}
.pkg-price-rmb {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--accent-rose);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.pkg-price-rmb span.currency {
  font-size: 1rem;
}
.pkg-price-twd {
  font-size: 0.84rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 2px;
}
.pkg-price-old {
  font-size: 0.78rem;
  color: #94A3B8;
  text-decoration: line-through;
  margin-top: 2px;
}
.pkg-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.84rem;
  color: #334155;
  margin-bottom: 24px;
  flex: 1;
}
.pkg-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}
.pkg-features-list li .check-icon {
  color: #059669;
  font-weight: 900;
  flex-shrink: 0;
}
.pkg-cta-btn {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.pkg-btn-rose {
  background: var(--accent-rose);
  color: white !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}
.pkg-btn-rose:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
}
.pkg-btn-outline {
  background: white;
  border: 1.5px solid #CBD5E1;
  color: #1E293B !important;
}
.pkg-btn-outline:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose) !important;
  background: #FFF1F2;
}

/* 17-SKU Interactive Specialty Matrix & Table */
.sku-matrix-wrap {
  margin-top: 36px;
}
.sku-filter-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}
.sku-pill {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sku-pill:hover {
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}
.sku-pill.active {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.25);
}

.sku-table-container {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: var(--shadow-soft);
}
.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  text-align: left;
}
.sku-table thead {
  background: #F8FAFC;
  border-bottom: 2px solid #E2E8F0;
}
.sku-table th {
  padding: 16px 18px;
  font-weight: 800;
  color: #1E293B;
  white-space: nowrap;
}
.sku-table tbody tr {
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s;
}
.sku-table tbody tr:hover {
  background: #FFF9FA;
}
.sku-table td {
  padding: 14px 18px;
  vertical-align: middle;
}
.sku-id-tag {
  font-family: monospace;
  font-size: 0.74rem;
  color: #64748B;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}
.sku-name-cell {
  font-weight: 700;
  color: #0F172A;
  font-size: 0.92rem;
}
.sku-comp-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.4;
  margin-top: 3px;
}
.sku-doc-badge {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.sku-doc-ding {
  background: #FFE4E6;
  color: #BE123C;
}
.sku-doc-wang {
  background: #CCFBF1;
  color: #0F766E;
}
.sku-doc-yan {
  background: #FEF3C7;
  color: #B45309;
}
.sku-price-sh {
  font-weight: 900;
  color: var(--accent-rose);
  font-size: 1rem;
  white-space: nowrap;
}
.sku-price-twd {
  font-size: 0.76rem;
  color: #64748B;
  display: block;
}
.sku-bench-foreign {
  font-size: 0.78rem;
  color: #94A3B8;
  line-height: 1.4;
}
.sku-rule-note {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.sku-action-btn {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #1E293B;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.sku-action-btn:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: white;
}

/* Original Camera Photo Upload Zone */
.camera-upload-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 10px;
}
.camera-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}
.camera-dropzone:hover {
  border-color: var(--accent-rose);
  background: #FFF5F7;
}
.camera-dropzone.has-file {
  border-color: #10B981;
  background: #ECFDF5;
}
.camera-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 5;
}
.camera-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: var(--accent-rose);
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.camera-zone-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1E293B;
  margin-bottom: 4px;
}
.camera-zone-tip {
  font-size: 0.74rem;
  color: #64748B;
  line-height: 1.4;
}
.camera-preview-thumb {
  max-width: 100%;
  max-height: 100px;
  border-radius: 8px;
  object-fit: cover;
  margin-top: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;
}
.camera-guide-alert {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.8rem;
  color: #1E40AF;
  line-height: 1.6;
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* Deposit Tier Selector */
.deposit-selector-wrap {
  margin-top: 10px;
}
.deposit-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.deposit-tier-card {
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  background: #FFFFFF;
  transition: all 0.2s ease;
  position: relative;
  text-align: left;
}
.deposit-tier-card:hover {
  border-color: var(--accent-rose);
}
.deposit-tier-card.active {
  border-color: var(--accent-rose);
  background: #FFF5F7;
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.12);
}
.deposit-tier-card input[type="radio"] {
  position: absolute;
  top: 12px;
  right: 12px;
  accent-color: var(--accent-rose);
}
.deposit-amt-title {
  font-weight: 900;
  font-size: 1.05rem;
  color: #0F172A;
  margin-bottom: 2px;
}
.deposit-amt-sub {
  font-size: 0.74rem;
  color: #64748B;
  margin-bottom: 6px;
}
.deposit-scope {
  font-size: 0.76rem;
  color: #334155;
  line-height: 1.35;
}

/* Refund Guarantee Badge */
.refund-guarantee-banner {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1.5px solid #6EE7B7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.refund-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #059669;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.refund-text-main {
  font-weight: 900;
  font-size: 0.88rem;
  color: #065F46;
}
.refund-text-sub {
  font-size: 0.76rem;
  color: #047857;
  line-height: 1.4;
  margin-top: 2px;
}

/* PIPL Consent Row & Checkbox */
.pipl-consent-row {
  margin-top: 14px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pipl-consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-rose);
  cursor: pointer;
  flex-shrink: 0;
}
.pipl-consent-label {
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.5;
  cursor: pointer;
}
.pipl-link-btn {
  color: var(--accent-rose);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.82rem;
}

/* PIPL Modern Modal Dialog */
.xx-dialog {
  border: none;
  border-radius: 20px;
  padding: 0;
  max-width: 620px;
  width: 90vw;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin: auto;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  background: #FFFFFF;
}
.xx-dialog::backdrop {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
}
.dialog-header {
  padding: 20px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-close-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #64748B;
  padding: 4px;
  line-height: 1;
}
.dialog-body {
  padding: 24px;
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dialog-body h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 6px;
}
.dialog-footer {
  padding: 16px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ========================================================================= */
/* Mobile 390px Viewport Optimization                                        */
/* ========================================================================= */
@media (max-width: 480px) {
  body {
    padding-bottom: 84px;
  }
  .p1-hero {
    margin: 16px auto 32px;
    padding: 0 16px;
  }
  .p1-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .p1-hero-left {
    width: 100% !important;
    min-width: 0 !important;
  }
  .p1-badge {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    font-size: 0.74rem;
    padding: 5px 12px;
    margin-bottom: 12px;
    line-height: 1.4;
  }
  .p1-hero h1 {
    font-size: 1.75rem;
    line-height: 1.28;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-bottom: 12px;
  }
  .p1-sub-clinical-row {
    font-size: 0.86rem;
    line-height: 1.5;
  }
  .p1-quote-box {
    font-size: 0.82rem;
    padding: 8px 12px;
  }
  .p1-hero p.lead {
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 20px;
  }
  .p1-hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .p1-hero-actions a,
  .p1-hero-actions button {
    width: 100% !important;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    white-space: normal !important;
    word-break: break-word !important;
    line-height: 1.35 !important;
    padding: 12px 14px !important;
  }
  .p1-trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .p1-hero-right {
    width: 100%;
    max-width: 100%;
  }
  .p1-hero-visual-card {
    max-width: 100%;
    width: 100%;
  }
  .p1-doc-slide-img {
    height: 260px;
  }
  .xx-hero-quickscan {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .xx-doc-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .doc-card-header {
    flex-direction: column;
    text-align: center;
  }
  .doc-avatar-wrap {
    width: 108px;
    height: 108px;
  }
  .doc-title-info h3 {
    justify-content: center;
  }
  .xx-package-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .camera-upload-container {
    grid-template-columns: 1fr;
  }
  .deposit-tier-grid {
    grid-template-columns: 1fr;
  }
  .p1-sticky-mobile-inner {
    gap: 8px;
  }
  .p1-sticky-btn-line {
    font-size: 0.85rem;
    padding: 10px 0;
  }
  .p1-sticky-btn-diag {
    font-size: 0.8rem;
    padding: 10px 0;
  }
  #bookingForm {
    padding: 40px 16px !important;
  }
  #bookingForm > div {
    padding: 24px 18px !important;
  }
}

/* ==========================================================================
   IMAGE 2.5 CLINICAL 3D SIMULATION SHOWCASE - DEEP JADE LUXURY GALLERY
   ========================================================================== */
.p1-simulations-section {
  padding: 56px 20px;
  background: linear-gradient(180deg, #0F172A 0%, #0B1218 100%);
  color: #F8FAFC;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.sim-header-wrap {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}

.sim-badge-lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 168, 128, 0.15);
  color: #F5E6D3;
  border: 1px solid rgba(197, 168, 128, 0.4);
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.sim-title-main {
  font-size: 1.85rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-top: 4px;
  letter-spacing: -0.01em;
}

.sim-desc-main {
  color: #94A3B8;
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: 8px;
}

/* 4-column desktop layout: tight, harmonious, side-by-side */
.sim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}

.sim-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sim-card:hover {
  transform: translateY(-4px);
  border-color: rgba(197, 168, 128, 0.55);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.6);
}

/* Prominent facial change preview: enlarged height, no distortion */
.sim-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  max-height: 210px;
  overflow: hidden;
  background: #0B1218;
  cursor: pointer;
}

.sim-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s ease;
}

.sim-card:hover .sim-img {
  transform: scale(1.05);
}

.sim-overlay-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(4, 47, 46, 0.88);
  backdrop-filter: blur(6px);
  color: #CCFBF1;
  border: 1px solid rgba(45, 212, 191, 0.35);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.sim-overlay-model {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 118, 110, 0.92);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.64rem;
  font-weight: 800;
  border: 1px solid rgba(45, 212, 191, 0.4);
  z-index: 2;
}

.sim-split-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(2, 28, 27, 0.95) 100%);
  padding: 16px 10px 4px;
  display: flex;
  justify-content: space-between;
  font-size: 0.66rem;
  font-weight: 700;
  z-index: 2;
}

.sim-split-before {
  color: #CBD5E1;
}

.sim-split-after {
  color: #5EEAD4;
}

.sim-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #E2E8F0;
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 3;
}

.sim-body,
.sim-card-body {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.sim-doc-tagline,
.sim-card-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.sim-doc-pill,
.sim-tag-doc {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 700;
}

.sim-tag-proc {
  font-size: 0.66rem;
  color: #FDE68A;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-doc-ding,
.sim-doc-wang,
.sim-doc-yan {
  background: rgba(15, 118, 110, 0.25);
  color: #5EEAD4;
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.sim-proc-title,
.sim-card-title {
  font-size: 0.96rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.35;
  margin-top: 2px;
}

.sim-clinical-box,
.sim-card-desc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: #CBD5E1;
}

.sim-clinical-box strong {
  color: #F1F5F9;
}

.sim-metrics-grid,
.sim-metrics-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.sim-metric-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 6px 2px;
  text-align: center;
}

.sim-metric-val {
  font-size: 0.92rem;
  font-weight: 900;
  color: #5EEAD4;
}

.sim-metric-lbl {
  font-size: 0.64rem;
  color: #94A3B8;
  margin-top: 1px;
}

.sim-footer,
.sim-card-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sim-price-wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.sim-price-rmb {
  font-size: 1.05rem;
  font-weight: 900;
  color: #F8FAFC;
}

.sim-price-twd {
  font-size: 0.72rem;
  color: #94A3B8;
}

.sim-cta-btn,
.sim-btn-book {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF !important;
  border: none;
  padding: 7px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
}

.sim-cta-btn:hover,
.sim-btn-book:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* 1v1 Consultation Intent Chips (Medical Teal Pill Design) */
.intent-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.intent-chip {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  padding: 9px 18px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
}
.intent-chip:hover {
  border-color: #0F766E;
  color: #0F766E;
  background: #F0FDFA;
}
.intent-chip.active {
  background: #F0FDFA;
  border-color: #0F766E;
  color: #0F766E;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.15);
}
.intent-chip .chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #CBD5E1;
  transition: background 0.2s;
}
.intent-chip.active .chip-dot {
  background: #0F766E;
}

@media (max-width: 1100px) {
  .sim-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .sim-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sim-img-wrap {
    height: 170px;
    max-height: 170px;
  }
}

/* ==========================================================================
   P1 TRAVEL SUBSIDY & FLIGHT/HOTEL PACKAGES (3-TIER SCARCITY PROGRAM)
   ========================================================================== */
.p1-travel-section {
  padding: 44px 20px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.p1-travel-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.p1-travel-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 24px;
}

.p1-travel-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #BFDBFE;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.p1-travel-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #0F172A;
  line-height: 1.3;
}

.p1-travel-desc {
  font-size: 0.88rem;
  color: #64748B;
  margin-top: 6px;
  line-height: 1.6;
}

.p1-quota-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF2F2;
  border: 1.5px solid #FECDD3;
  color: #BE123C;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 8px;
  margin-top: 10px;
}

.p1-travel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .p1-travel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.travel-tier-card {
  border-radius: 14px;
  padding: 22px 18px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.travel-tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.tier-card-vip {
  background: linear-gradient(180deg, #FFFDF5 0%, #FFFFFF 100%);
  border-color: #F59E0B;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}

.tier-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  width: fit-content;
}

.tier-badge-gold {
  background: #FEF3C7;
  color: #B45309;
  border: 1px solid #FDE68A;
}

.tier-badge-rose {
  background: #FFE4E6;
  color: #BE123C;
  border: 1px solid #FECDD3;
}

.tier-badge-slate {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}

.tier-title {
  font-size: 1.1rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 4px;
}

.tier-subsidy-val {
  font-size: 1.25rem;
  font-weight: 900;
  color: #0F766E;
  margin-bottom: 8px;
}

.tier-target {
  font-size: 0.78rem;
  color: #64748B;
  margin-bottom: 12px;
  line-height: 1.45;
  padding-bottom: 10px;
  border-bottom: 1px solid #F1F5F9;
}

.tier-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
  color: #334155;
  line-height: 1.45;
  margin-bottom: 16px;
  flex: 1;
}

.tier-perks li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.tier-perks li span.icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.tier-btn {
  width: 100%;
  padding: 9px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  border: none;
  display: block;
}

.tier-btn-primary {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF !important;
}

.tier-btn-outline {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #1E293B !important;
}

.tier-btn-outline:hover {
  border-color: #0F766E;
  color: #0F766E !important;
}

/* Desktop Direction-Aware Floating Pill CTA (Single Accent Jade/Gold) */
.p1-floating-pill {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(140%);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(197, 168, 128, 0.35);
  border-radius: 9999px;
  padding: 8px 10px 8px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  z-index: 990;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  color: #F1F5F9;
}
.p1-floating-pill.p1-pill-show {
  transform: translateX(-50%) translateY(0);
}
.p1-pill-text {
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #CBD5E1;
  white-space: nowrap;
}
.p1-pill-text strong {
  color: #FFFFFF;
}
.p1-pill-btn {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.35);
  transition: transform 0.18s, box-shadow 0.18s;
}
.p1-pill-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 118, 110, 0.45);
}
@media (max-width: 768px) {
  .p1-floating-pill {
    display: none !important; /* Mobile uses dedicated thumb bar */
  }
}

/* =========================================================================
   1. 項目 1 醫療合規「不展示價格 / 專科面診定制」雙模系統 (Medical Compliance Mode)
   ========================================================================= */
.p1-price-control-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  padding: 8px 16px;
  border-radius: 9999px;
  margin: 0 auto 24px;
  max-width: 440px;
  font-size: 0.82rem;
  color: #475569;
}
.p1-price-toggle-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  color: #0F766E;
  transition: all 0.2s;
}
.p1-price-toggle-btn:hover {
  background: #F1F5F9;
  border-color: #0F766E;
}

/* 默認/隱價模式 (body.p1-price-hidden 或默認生效) */
body.p1-price-hidden .price-raw-box,
body.p1-price-hidden .pkg-price-raw,
body.p1-price-hidden .sim-price-raw,
body.p1-price-hidden .sku-price-raw {
  display: none !important;
}

body.p1-price-hidden .pkg-price-bespoke,
body.p1-price-hidden .sim-price-bespoke,
body.p1-price-hidden .sku-price-bespoke {
  display: block !important;
}

/* 展示價格模式 */
body.p1-price-visible .price-raw-box,
body.p1-price-visible .pkg-price-raw,
body.p1-price-visible .sim-price-raw,
body.p1-price-visible .sku-price-raw {
  display: block !important;
}

body.p1-price-visible .pkg-price-bespoke,
body.p1-price-visible .sim-price-bespoke,
body.p1-price-visible .sku-price-bespoke {
  display: none !important;
}

/* 透明價格模式專屬卡片樣式 */
.pkg-price-raw {
  margin-bottom: 12px;
}
.pkg-raw-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: #0F766E;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pkg-raw-sub {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 600;
  margin-top: 4px;
}

/* 定制方案卡片高雅徽章 */
.pkg-price-bespoke {
  margin-bottom: 12px;
}
.pkg-bespoke-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #0F766E;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.01em;
}
.pkg-bespoke-sub {
  font-size: 0.82rem;
  color: #64748B;
  font-weight: 500;
  margin-top: 4px;
}

.sim-price-bespoke {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sim-price-badge {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.15), rgba(17, 94, 89, 0.25));
  color: #0F766E;
  border: 1px solid rgba(15, 118, 110, 0.3);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}
.sim-price-note {
  font-size: 0.74rem;
  color: #94A3B8;
}

.sku-bespoke-tag {
  font-weight: 800;
  color: #0F766E;
  font-size: 0.92rem;
}
.sku-bespoke-sub {
  display: block;
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

/* =========================================================================
   2. 醫生高清肖像與可換背景系統 (Interchangeable Doctor Backgrounds)
   ========================================================================= */
.doc-avatar-wrap {
  position: relative;
  overflow: hidden;
  background: #F8FAFC !important;
  border-radius: 8px !important;
}
.doc-avatar-wrap img {
  transition: opacity 0.35s ease, transform 0.4s ease;
  object-fit: cover !important;
  object-position: top center !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
.doc-bg-switcher {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  z-index: 5;
  cursor: pointer;
  transition: all 0.2s;
}
.doc-bg-switcher:hover {
  background: rgba(15, 118, 110, 0.9);
  border-color: #5EEAD4;
}
.doc-bg-switcher span {
  font-size: 0.68rem;
  font-weight: 700;
  color: #E2E8F0;
  user-select: none;
}

/* =========================================================================
   3. 專科 17 項卡片網格與 560px 側邊抽屜層 (V4 Synthesis - Anti-Ugly Certified)
   ========================================================================= */
.sku-view-toggle-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
}
.sku-view-pill {
  padding: 8px 22px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
}
.sku-view-pill.active {
  border-color: #0F766E;
  background: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

.sku-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 30px;
}
.sku-card-v4 {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.sku-card-v4:hover {
  transform: translateY(-3px);
  border-color: #0F766E;
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
}
.sku-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.sku-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
  line-height: 1.4;
}
.sku-card-desc {
  font-size: 0.85rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.sku-card-concern {
  background: #F8FAFC;
  border-left: 3px solid #0F766E;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #334155;
  margin-bottom: 14px;
  line-height: 1.5;
}
.sku-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #F1F5F9;
  padding-top: 14px;
  margin-top: auto;
}
.sku-card-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F766E;
}
.sku-card-price small {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  color: #64748B;
}
.sku-card-btn {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #0F766E;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.sku-card-btn:hover {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
}

/* 560px Side Sheet Drawer (Anti-Ugly Verified) */
.project-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.project-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.project-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(560px, 100vw);
  height: 100vh;
  background: #FFFFFF;
  z-index: 9999;
  box-shadow: -10px 0 36px rgba(15, 23, 42, 0.18);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-drawer.active {
  transform: translateX(0);
}
.drawer-header {
  padding: 20px 26px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
}
.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #475569;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.drawer-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}
.drawer-body {
  padding: 26px 30px;
  overflow-y: auto;
  flex: 1;
}
.drawer-section-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
}
.drawer-section-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F766E;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.drawer-section-content {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.7;
}
.drawer-footer {
  padding: 16px 26px;
  border-top: 1px solid #E2E8F0;
  background: #FFFFFF;
  display: flex;
  gap: 12px;
}
@media (max-width: 640px) {
  .drawer-footer {
    flex-direction: column;
    gap: 8px;
  }
  .sku-cards-grid {
    grid-template-columns: 1fr;
  }
}



/* ========================================================================= */
/* MODERN MULTILINGUAL LAYOUT & REGIONAL SUITE (PERFECT SYNC)                */
/* ========================================================================= */

/* 1. Top Regional Switcher Bar (Deprecated & Hidden) */
.p1-top-bar {
  display: none !important;
  background: #0B1218;
  color: #94A3B8;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 101;
  width: 100%;
}
.p1-top-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.p1-region-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #E2E8F0;
  white-space: nowrap;
}
.p1-pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: p1Pulse 2s infinite;
}
@keyframes p1Pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.p1-lang-links {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.p1-lang-links a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s;
  font-size: 0.78rem;
}
.p1-lang-links a:hover {
  color: #5EEAD4;
}

/* 2. Header & Navigation Aliases */
.p1-header-container,
.p1-header-wrap {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.p1-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p1-nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}
.p1-nav-link:hover {
  color: var(--accent-rose);
}

/* 3. Hero Section Aliases & Grid Tuning */
.p1-hero,
.p1-hero-section {
  max-width: 1280px;
  margin: 30px auto 50px;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}
.p1-hero-container {
  width: 100%;
}
.p1-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
  width: 100%;
}
@media (max-width: 960px) {
  .p1-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
}
.p1-hero-left,
.p1-hero-content {
  text-align: left;
  min-width: 0 !important;
  width: 100%;
}
.p1-badge,
.p1-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-soft);
  color: var(--brand-tw, #0F766E);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 9999px;
  border: 1px solid #CCFBF1;
  margin-bottom: 20px;
  max-width: 100%;
}
.p1-badge-icon {
  color: #0F766E;
}
.p1-hero h1,
.p1-hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 900;
  line-height: 1.32;
  color: #0F172A;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  word-break: normal;
}
.p1-hero p.lead,
.p1-hero-lead {
  font-size: 1.02rem;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 0 28px;
  line-height: 1.85;
}
.p1-hero-actions,
.p1-hero-ctas {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.p1-btn-secondary {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #1E293B;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.p1-btn-secondary:hover {
  border-color: #0F766E;
  color: #0F766E;
  background: #F0FDFA;
}
.p1-trust-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
}
.p1-trust-pill {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.p1-trust-icon {
  font-size: 1.2rem;
  line-height: 1;
}
.p1-trust-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
}
.p1-trust-desc {
  font-size: 0.8rem;
  color: #64748B;
  margin-top: 2px;
}

/* 4. Right Doctor Card Aliases */
.p1-hero-right,
.p1-hero-media {
  display: flex;
  justify-content: center;
  min-width: 0 !important;
  width: 100%;
}
.p1-hero-visual-card,
.p1-doctor-showcase-card {
  position: relative !important;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  border: 1.5px solid rgba(197, 168, 128, 0.45);
  box-shadow: 0 20px 45px -10px rgba(15, 118, 110, 0.15);
  max-width: 440px;
  width: 100%;
  margin: 0 auto;
}
.p1-doc-showcase-img-wrap {
  position: relative !important;
  overflow: hidden;
  width: 100%;
  height: 380px;
  background: #0B1218;
}
.p1-doc-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  animation: p1DocFade 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.p1-doc-slide.active {
  display: block;
}
.p1-doc-slide-img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 10%;
  display: block;
  background: #F8F9FA;
}
.p1-doc-badge-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #F5E6D3;
  border: 1px solid rgba(197, 168, 128, 0.45);
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}
.p1-doc-info-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.6) 65%, transparent 100%);
  padding: 24px 18px 12px;
  color: #FFFFFF;
  z-index: 2;
}
.p1-doc-name-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.p1-doc-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}
.p1-doc-title-badge {
  font-size: 0.72rem;
  color: #C5A880;
  font-weight: 700;
  background: rgba(197, 168, 128, 0.18);
  border: 1px solid rgba(197, 168, 128, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}
.p1-doc-tags,
.p1-doc-tags-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.p1-doc-tag,
.p1-doc-spec-tag {
  font-size: 0.7rem;
  color: #E2E8F0;
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 7px;
  border-radius: 4px;
}
.p1-doc-tabs {
  display: flex;
  background: #FFFFFF;
  border-top: 1px solid #F1F5F9;
  padding: 10px 12px;
  gap: 8px;
}
.p1-doc-tab,
.p1-doc-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  text-align: left;
}
.p1-doc-tab.active,
.p1-doc-tab-btn.active {
  background: #F0FDFA;
  border-color: #0F766E;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.12);
}
.p1-doc-tab.active .p1-doc-tab-role,
.p1-doc-tab-btn.active .p1-doc-tab-role {
  color: #0F766E;
  font-weight: 600;
}
.p1-doc-tab img,
.p1-doc-tab-btn img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(197, 168, 128, 0.5);
  flex-shrink: 0;
}
.p1-doc-tab-name {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.2;
}
.p1-doc-tab-role {
  font-size: 0.66rem;
  color: #64748B;
  line-height: 1.2;
}

/* 5. Section & Container Structure */
.p1-section {
  padding: 60px 24px;
}
.p1-container {
  max-width: 1200px;
  margin: 0 auto;
}
.p1-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 36px;
}
.p1-section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.p1-section-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0F172A;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.p1-section-desc {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.7;
}

/* 6. Doctors Grid & Cards */
.p1-doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.p1-doc-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.p1-doc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
  border-color: #CCFBF1;
}
.p1-doc-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.p1-doc-avatar,
.doc-avatar-img {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: top center !important;
  border: none !important;
  display: block !important;
  flex-shrink: 0;
}
.p1-doc-card-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}
.doc-title-tag {
  font-size: 0.78rem;
  color: #64748B;
  margin-top: 2px;
}
.doc-spec-box {
  margin-bottom: 16px;
}
.doc-spec-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
}
.doc-spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.doc-tag-pill {
  font-size: 0.75rem;
  background: #F1F5F9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.doc-philosophy-quote {
  background: #F8FAFC;
  border-left: 3px solid #0F766E;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  font-style: italic;
}
.doc-credentials-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.8;
  flex-grow: 1;
}
.doc-credentials-list li {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.doc-credentials-list .bullet {
  color: #0F766E;
  font-weight: 800;
}
.doc-card-footer {
  margin-top: auto;
}

/* 7. Clinical Simulations Grid & Cards */
.p1-simulations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.p1-sim-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.p1-sim-card:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.4);
}
.p1-sim-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.sim-doc-credit {
  font-size: 0.72rem;
  color: #C5A880;
  font-weight: 700;
  margin-bottom: 4px;
}
.p1-sim-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 8px;
  line-height: 1.4;
}
.p1-sim-card-desc {
  font-size: 0.82rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 14px;
  flex-grow: 1;
}
.sim-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 14px;
}
.sim-metric-item {
  display: flex;
  flex-direction: column;
}
.metric-val {
  font-size: 0.95rem;
  font-weight: 800;
}
.metric-lbl {
  font-size: 0.68rem;
  color: #94A3B8;
  margin-top: 2px;
}


/* Additional Multilingual Components */
body.p1-body {
  background-color: var(--bg-porcelain);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100vw;
}

.p1-doctors-section {
  background: #F8FAFC;
}

.p1-doc-card-meta {
  font-size: 0.82rem;
  color: #64748B;
}

.doc-cred-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.8;
}

.p1-pkg-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p1-pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sim-state-indicator {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5EEAD4;
}

.stage-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.p-num {
  font-weight: 800;
  color: #0F766E;
  margin-right: 6px;
}
.p-tag {
  font-size: 0.72rem;
  background: #E0F2FE;
  color: #0369A1;
  padding: 2px 6px;
  border-radius: 4px;
}
.p-title {
  font-weight: 700;
  color: #0F172A;
}


/* Trust Strip in TW & Aliases */
.p1-trust-strip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 20px;
}
.p1-trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.p1-trust-sub {
  font-size: 0.8rem;
  color: #64748B;
  margin-left: 20px;
}

/* Packages Grid in MN */
.p1-packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.p1-pkg-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0F766E;
  margin-bottom: 6px;
}
.p1-pkg-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
}
.p1-pkg-price {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0F766E;
  margin-bottom: 18px;
}
.p1-pkg-currency {
  font-size: 0.8rem;
  font-weight: 500;
  color: #94A3B8;
}
.p1-pkg-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.8;
  flex-grow: 1;
}

/* Studio Metric Pills in MN */
.metric-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 8px;
}
.m-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: #5EEAD4;
}
.m-lbl {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}


/* ========================================================================= */
/* FIX 2026-10-03: BRAND LOGO, MOBILE STICKY DESKTOP HIDING, METRICS WRAP   */
/* ========================================================================= */

/* 1. Brand Logo Responsive Sizing */
.p1-brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  flex-shrink: 0 !important;
  transition: opacity 0.2s ease;
}
.p1-brand:hover {
  opacity: 0.92;
}
.p1-brand img {
  height: 38px !important;
  width: auto !important;
  max-width: 240px !important;
  object-fit: contain !important;
  display: block !important;
  transition: all 0.2s ease;
}
@media (max-width: 1024px) {
  .p1-brand img {
    height: 36px !important;
    max-width: 215px !important;
  }
}
@media (max-width: 768px) {
  .p1-brand img {
    height: 34px !important;
    max-width: 195px !important;
  }
}
@media (max-width: 480px) {
  .p1-brand img {
    height: 32px !important;
    max-width: 180px !important;
  }
}
@media (max-width: 360px) {
  .p1-brand img {
    height: 29px !important;
    max-width: 160px !important;
  }
}


/* 2. Mobile Sticky Bottom Bar (STRICTLY HIDDEN ON DESKTOP) */
.p1-sticky-mobile {
  display: none !important;
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  padding: 10px 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25) !important;
  z-index: 9999 !important;
}
.p1-sticky-mobile-inner {
  display: flex !important;
  gap: 10px !important;
  max-width: 480px !important;
  margin: 0 auto !important;
  width: 100% !important;
}
.p1-sticky-btn-primary,
.p1-sticky-btn-secondary {
  flex: 1 !important;
  text-align: center !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: #FFFFFF !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}
.p1-sticky-btn-secondary {
  background: #0F766E !important;
}
@media (max-width: 768px) {
  .p1-sticky-mobile {
    display: block !important;
  }
  body.p1-body,
  body {
    padding-bottom: 74px !important;
  }
}

/* 3. Clinical Metrics Grid - Fluid Text Wrap (Prevents Cyrillic & Word Overflow) */
.sim-metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  padding: 8px 6px !important;
  border-radius: 8px !important;
  text-align: center !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.sim-metric-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 2px !important;
  box-sizing: border-box !important;
}
.sim-metric-item .metric-val {
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #5EEAD4 !important;
  max-width: 100% !important;
  white-space: normal !important;
  word-break: break-word !important;
  hyphens: auto !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
.sim-metric-item .metric-lbl {
  font-size: 0.65rem !important;
  color: #94A3B8 !important;
  margin-top: 3px !important;
  line-height: 1.25 !important;
  word-break: break-word !important;
  text-align: center !important;
  max-width: 100% !important;
}

/* 4. Luxury Bespoke Package Pricing Box (Zero Prices Shown) */
.pkg-price-bespoke-box {
  background: rgba(15, 118, 110, 0.07);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pkg-bespoke-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F766E;
  line-height: 1.3;
}
.pkg-bespoke-sub {
  font-size: 0.76rem;
  color: #64748B;
  line-height: 1.35;
}

/* ==============================================================
   知微 V6 看脸画廊 & 3D 临床解剖模拟工作台 (Unified Hub Section)
   ============================================================== */
.unified-hub-section {
  padding: 60px 24px 80px;
  max-width: 1240px;
  margin: 0 auto;
}

.hub-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 36px;
}

.hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  color: #0F766E;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.hub-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hub-subtitle {
  font-size: 0.98rem;
  color: #64748B;
  line-height: 1.7;
  margin: 0;
}

/* View Switcher Tabs */
.view-switcher-bar {
  display: inline-flex;
  background: #E2E8F0;
  padding: 4px;
  border-radius: 9999px;
  margin-top: 24px;
  border: 1px solid #CBD5E1;
}

.view-tab-btn {
  border: none;
  background: transparent;
  padding: 9px 24px;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.view-tab-btn.active {
  background: #FFFFFF;
  color: #0F766E;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Tab 1: Gallery Cards Grid */
.gallery-view-pane {
  display: block;
  transition: opacity 0.3s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

/* Gallery Card */
.gallery-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #CBD5E1;
}

/* Before/After Split Slider Box */
.ba-slider-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.8;
  overflow: hidden;
  background: #0F172A;
  user-select: none;
  touch-action: pan-y;
}

.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #FFFFFF;
  box-shadow: 2px 0 8px rgba(0,0,0,0.3);
  z-index: 2;
}

.ba-before-wrap .ba-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Slider Handle Knob */
.ba-handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  z-index: 3;
  pointer-events: none;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0,0,0,0.5);
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F766E;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid #0F766E;
}

/* Floating State Tags */
.ba-badge-tag {
  position: absolute;
  top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  z-index: 4;
  pointer-events: none;
}

.ba-tag-after {
  right: 10px;
  background: rgba(15, 118, 110, 0.88);
  color: #FFFFFF;
}

.ba-tag-before {
  left: 10px;
  background: rgba(15, 23, 42, 0.78);
  color: #F8FAFC;
}

/* Floating Quick Actions: Favorite & Share */
.ba-float-tools {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 6px;
  z-index: 6;
}

.ba-tool-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
  padding: 0;
}

.ba-tool-btn:hover {
  background: rgba(15, 118, 110, 0.9);
  border-color: #5EEAD4;
  transform: scale(1.08);
}

.ba-tool-btn.favorited {
  background: #E11D48;
  border-color: #FDA4AF;
  color: #FFFFFF;
}

/* Native Range Input for Silky Accessible Drag */
.ba-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
  margin: 0;
  padding: 0;
}

/* Card Details Body */
.card-info-pane {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.card-specialty-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0F766E;
  background: #F0FDFA;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #CCFBF1;
}

.card-doc-sign {
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748B;
}

.card-human-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.4;
}

.card-pain-point {
  font-size: 0.83rem;
  color: #64748B;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
}

/* Metrics Strip */
.card-metrics-strip {
  display: flex;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  padding: 8px 10px;
  gap: 12px;
  margin-bottom: 14px;
}

.m-strip-col {
  flex: 1;
}

.m-strip-val {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F766E;
}

.m-strip-lbl {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}

/* Actions on Card */
.card-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn-ask-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0F766E;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  transition: background 0.15s;
}

.btn-ask-line:hover {
  background: #115E59;
}

.btn-inspect-anatomy {
  background: transparent;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 8px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-inspect-anatomy:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}

.card-legal-disclaimer {
  font-size: 0.68rem;
  color: #94A3B8;
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
}

/* Tab 2: 3D Anatomical Workstation Pane */
.studio-view-pane {
  display: none;
  margin-top: 10px;
  border-radius: 20px;
  overflow: hidden;
}

.studio-view-pane.active {
  display: block;
}

/* Interactive Toast */
.gallery-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}

.gallery-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   2026-10-04 UPGRADE: HERO SLOGAN CAROUSEL, AESTHETIC HUD,
   FLOATING SELF-ASSESSMENT DIAGNOSTIC BAR & SIDE-BY-SIDE CASE WALL CAROUSEL
   ========================================================================== */

/* --- 1. Hero Slogan Carousel --- */
.p1-slogan-carousel {
  position: relative;
  min-height: 160px;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.p1-slogan-carousel.text-fade-out {
  opacity: 0;
  transform: translateY(6px);
}
.p1-slogan-carousel.text-fade-in {
  animation: p1TextFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes p1TextFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .p1-slogan-carousel {
    min-height: 200px;
  }
}
.p1-slogan-slide {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.p1-slogan-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.p1-slogan-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 18px 0 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.p1-slogan-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.p1-slogan-tab {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}
.p1-slogan-tab:hover {
  border-color: #0F766E;
  color: #0F766E;
  background: #F0FDFA;
}
.p1-slogan-tab.active {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* --- 2. Right Aesthetic Video Presentation & Auto-Scan Before/After --- */
.p1-hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}
.p1-stage-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(15, 118, 110, 0.24);
  color: #0F766E;
  font-size: 22px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
  user-select: none;
  z-index: 10;
}
.p1-stage-arrow:hover {
  background: #0F766E;
  color: #FFFFFF;
  border-color: #0F766E;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.25);
}
.p1-stage-arrow:active {
  transform: scale(0.96);
}
@media (max-width: 640px) {
  .p1-hero-stage {
    gap: 8px;
  }
  .p1-stage-arrow {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* --- 2. Right Aesthetic 3D Tilted Perspective Deck (Zero Split Lines, Full Faces) --- */
.p1-tilted-deck {
  perspective: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 380px;
  height: 360px;
}
.p1-tilted-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0B161B;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}
.p1-card-before {
  width: 195px;
  height: 285px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.25);
  transform: perspective(1000px) rotateY(14deg) rotateX(2deg) rotateZ(-3deg) translateZ(-10px);
  z-index: 2;
  filter: brightness(0.92) contrast(0.96);
}
.p1-card-before:hover {
  transform: perspective(1000px) rotateY(4deg) rotateX(1deg) rotateZ(-1deg) translateZ(30px);
  z-index: 6;
  filter: brightness(1) contrast(1);
  box-shadow: 0 20px 45px -8px rgba(15, 23, 42, 0.35);
}
.p1-card-after {
  width: 235px;
  height: 335px;
  margin-left: -48px;
  border: 1.5px solid rgba(197, 168, 128, 0.5);
  box-shadow: 0 24px 50px -10px rgba(15, 118, 110, 0.35), 0 0 1px rgba(0, 0, 0, 0.15);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg) rotateZ(2deg) translateZ(25px);
  z-index: 5;
}
.p1-card-after:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg) rotateZ(1deg) translateZ(40px) scale(1.02);
  z-index: 6;
  box-shadow: 0 28px 60px -10px rgba(15, 118, 110, 0.45);
}
.p1-card-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0B161B;
}
.p1-tilted-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  transition: transform 0.4s ease;
}
.p1-card-before:hover .p1-tilted-img {
  transform: scale(1.04);
}
.p1-tilted-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  display: block;
  transition: opacity 0.35s ease, transform 0.4s ease;
}
.p1-card-after:hover .p1-tilted-video {
  transform: scale(1.03);
}
.p1-tilted-badge {
  position: absolute;
  top: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.p1-badge-before {
  left: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #F8FAFC;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.p1-badge-after {
  right: 12px;
  background: rgba(15, 118, 110, 0.9);
  color: #FFFFFF;
  border: 1px solid #5EEAD4;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.4);
}
.p1-tilted-status {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9999px;
  padding: 5px 12px;
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
}

@media (max-width: 640px) {
  .p1-hero-stage {
    max-width: 100%;
    gap: 6px;
  }
  .p1-tilted-deck {
    width: 290px;
    height: 260px;
  }
  .p1-card-before {
    width: 140px;
    height: 205px;
  }
  .p1-card-after {
    width: 170px;
    height: 245px;
    margin-left: -35px;
  }
  .p1-tilted-status {
    font-size: 0.62rem;
    padding: 4px 8px;
  }
}
.p1-portrait-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 25%;
  display: block;
  transition: opacity 0.4s ease;
}
.p1-aesthetic-hud {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}
.hud-grid {
  stroke: rgba(197, 168, 128, 0.45);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.hud-text {
  fill: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
.hud-accent {
  stroke: #5EEAD4;
  stroke-width: 1.5;
}
.hud-dot {
  fill: #5EEAD4;
  filter: drop-shadow(0 0 4px #5EEAD4);
}
.hud-tag-bg {
  fill: rgba(15, 118, 110, 0.88);
  stroke: #5EEAD4;
  stroke-width: 1;
  rx: 4;
}
.hud-tag-text {
  fill: #FFFFFF;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.hud-box, .hud-circle {
  fill: rgba(94, 234, 212, 0.12);
  stroke: #5EEAD4;
  stroke-width: 1.5;
}
.hud-vector-arrow {
  fill: none;
  stroke: #5EEAD4;
  stroke-width: 2.2;
}
.hud-active-pulse {
  animation: hudPulseAnim 2.2s infinite ease-in-out;
}
@keyframes hudPulseAnim {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}
.p1-portrait-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  padding: 6px 14px;
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}
.p1-portrait-bottom-card {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  border: 1px solid rgba(197, 168, 128, 0.4);
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.p1-portrait-status-col {
  display: flex;
  flex-direction: column;
}
.p1-p-label {
  font-size: 0.68rem;
  color: #0F766E;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.p1-p-name {
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F172A;
  margin-top: 2px;
}
.p1-portrait-score-badge {
  background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
  border: 1px solid #5EEAD4;
  border-radius: 10px;
  padding: 5px 12px;
  text-align: center;
}
.p1-p-score-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F766E;
  display: block;
  line-height: 1;
}
.p1-p-score-lbl {
  font-size: 0.58rem;
  color: #115E59;
  font-weight: 700;
  margin-top: 3px;
  display: block;
}

/* --- 3. Floating Self-Assessment Diagnostic Bar --- */
.p1-diagnostic-fast-bar {
  max-width: 1280px;
  margin: -10px auto 46px;
  padding: 0 24px;
  position: relative;
  z-index: 15;
}
.p1-diag-bar-inner {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FCFC 100%);
  border: 1.5px solid #CCFBF1;
  border-radius: 22px;
  padding: 24px 28px;
  box-shadow: 0 16px 42px -10px rgba(15, 118, 110, 0.14);
}
.p1-diag-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.p1-diag-bar-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.p1-diag-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #CCFBF1, #99F6E4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #0F766E;
  flex-shrink: 0;
}
.p1-diag-bar-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
}
.p1-diag-bar-sub {
  font-size: 0.82rem;
  color: #64748B;
  margin-top: 2px;
}
.p1-quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
}
.p1-quota-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #D97706;
  display: inline-block;
  animation: pulseQuota 1.6s infinite ease-in-out;
}
@keyframes pulseQuota {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.p1-symptoms-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.p1-symptom-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 9999px;
  padding: 8px 16px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}
.p1-symptom-item.checked {
  background: #F0FDFA;
  border-color: #0F766E;
  color: #0F766E;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.12);
}
.symptom-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #CBD5E1;
  color: #FFFFFF;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.p1-symptom-item.checked .symptom-check {
  background: #0F766E;
}
.p1-diag-bar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid #F1F5F9;
  padding-top: 16px;
}
.p1-diag-meter {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.meter-lbl {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
}
.meter-val {
  font-size: 1.55rem;
  font-weight: 900;
  color: #0F766E;
  font-family: var(--font-serif);
}
.meter-max {
  font-size: 0.82rem;
  color: #94A3B8;
  font-weight: 600;
}
.meter-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #D97706;
  background: #FFFBEB;
  border: 1px solid #FEF3C7;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}
.p1-diag-bar-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-diag-generate {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
  transition: all 0.2s ease;
}
.btn-diag-generate:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}
.btn-diag-upload {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-diag-upload:hover {
  border-color: #0F766E;
  color: #0F766E;
  background: #F0FDFA;
}

/* --- 4. Case Wall Horizontal Carousel (16:10 Full Side-by-Side) --- */
.p1-case-wall-section {
  max-width: 1280px;
  margin: 0 auto 70px;
  padding: 0 24px;
}
.p1-case-wall-header {
  margin-bottom: 24px;
}
.p1-case-wall-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: #0F172A;
  margin: 8px 0 6px;
}
.p1-case-wall-sub {
  font-size: 0.96rem;
  color: #64748B;
  max-width: 760px;
  line-height: 1.7;
}
.p1-case-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  gap: 14px;
  flex-wrap: wrap;
}
.p1-case-filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.p1-case-filter-pills::-webkit-scrollbar {
  display: none;
}
.case-filter-pill {
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 9999px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.case-filter-pill:hover {
  border-color: #0F766E;
  color: #0F766E;
}
.case-filter-pill.active {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.2);
}
.p1-case-nav-arrows {
  display: flex;
  gap: 8px;
}
.case-nav-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid #CBD5E1;
  background: #FFFFFF;
  color: #1E293B;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.case-nav-arrow:hover {
  background: #F0FDFA;
  border-color: #0F766E;
  color: #0F766E;
}
.p1-case-carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 4px 24px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.p1-case-carousel-track::-webkit-scrollbar {
  display: none;
}
.p1-case-card {
  flex: 0 0 calc(33.333% - 14px);
  min-width: 330px;
  max-width: 410px;
  scroll-snap-align: start;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.p1-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 118, 110, 0.12);
  border-color: #CBD5E1;
}
.p1-case-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0E1D24;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}
.p1-case-ba-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #0E1D24;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.p1-case-ba-grid.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.p1-case-video-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.p1-case-video-wrap.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.p1-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p1-card-media-switcher {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 10;
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.media-switch-pill {
  background: transparent;
  border: none;
  color: #CBD5E1;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.media-switch-pill:hover {
  color: #FFFFFF;
}
.media-switch-pill.active {
  background: #0F766E;
  color: #FFFFFF;
  font-weight: 800;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.45);
}
.video-grid-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  pointer-events: none;
}
.video-badge-pill {
  background: rgba(15, 23, 42, 0.85);
  color: #5EEAD4;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}
.gallery-media-controller-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 auto 16px;
  max-width: 960px;
  padding: 8px 16px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
}
.gallery-media-mode-toggle {
  display: inline-flex;
  gap: 6px;
  background: #E2E8F0;
  padding: 3px;
  border-radius: 9999px;
}
.gallery-mode-toggle-btn {
  background: transparent;
  border: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
  padding: 5px 14px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-mode-toggle-btn.active {
  background: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3);
}
.gallery-stream-hint {
  color: #0F766E;
  font-size: 0.78rem;
  font-weight: 700;
}
.p1-ba-col {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.p1-ba-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  display: block;
}
.p1-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
  transform: translateX(-50%);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}
.ba-col-tag {
  position: absolute;
  top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.64rem;
  font-weight: 800;
  z-index: 3;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.ba-tag-pre {
  left: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #F8FAFC;
}
.ba-tag-post {
  right: 8px;
  background: rgba(15, 118, 110, 0.88);
  color: #FFFFFF;
}
.p1-case-card-body {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.p1-case-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.p1-case-spec-pill {
  font-size: 0.74rem;
  font-weight: 800;
  color: #0F766E;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  padding: 2px 8px;
  border-radius: 4px;
}
.p1-case-doc-sig {
  font-size: 0.76rem;
  font-weight: 700;
  color: #64748B;
}
.p1-case-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.35;
}
.p1-case-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1;
}
.p1-case-metrics {
  display: flex;
  gap: 10px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 14px;
}
.p1-metric-box {
  flex: 1;
}
.p1-metric-box .m-val {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0F766E;
}
.p1-metric-box .m-lbl {
  display: block;
  font-size: 0.7rem;
  color: #94A3B8;
  margin-top: 1px;
}
.p1-case-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.p1-btn-case-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #0F766E;
  color: #FFFFFF !important;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 0.15s ease;
}
.p1-btn-case-line:hover {
  background: #115E59;
}
.p1-case-actions,
.p1-case-card-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 14px;
  width: 100%;
}
.p1-btn-case-detail,
.btn-case-detail {
  flex: 1;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  min-height: 38px;
}
.p1-btn-case-detail:hover,
.btn-case-detail:hover {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #94A3B8;
}
.p1-btn-case-fav,
.btn-case-fav {
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: #0F766E;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  min-width: 42px;
  min-height: 38px;
}
.p1-btn-case-fav:hover,
.btn-case-fav:hover {
  background: rgba(15, 118, 110, 0.16);
  border-color: #0F766E;
  transform: scale(1.05);
}
.p1-btn-case-fav.favorited,
.btn-case-fav.favorited {
  background: #0F766E;
  border-color: #0F766E;
  color: #FFFFFF;
}
.p1-case-disclaimer {
  font-size: 0.66rem;
  color: #94A3B8;
  margin-top: 10px;
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .p1-case-card {
    flex: 0 0 calc(50% - 10px);
    min-width: 300px;
  }
}
@media (max-width: 640px) {
  .p1-case-card {
    flex: 0 0 88%;
    min-width: 280px;
  }
  .p1-diag-bar-inner {
    padding: 20px 16px;
  }
}

/* --- 5. Diagnostic Modal & Radar Chart --- */
.p1-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.p1-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.p1-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 25, 0.75);
  backdrop-filter: blur(8px);
}
.p1-modal-sheet {
  position: relative;
  background: #FAF9F6;
  border-radius: 24px;
  width: 92%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 2;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.p1-modal.show .p1-modal-sheet {
  transform: translateY(0);
}
.p1-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #EDF0EE;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 5;
}
.p1-sheet-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
}
.p1-sheet-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #64748B;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.p1-sheet-body {
  padding: 24px;
}
.diag-radar-wrap {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.diag-radar-svg {
  width: 280px;
  height: 280px;
}
.diag-score-summary {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.diag-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.diag-hook-box {
  background: linear-gradient(135deg, #F0FDFA, #CCFBF1);
  border: 1.5px solid #5EEAD4;
  border-radius: 14px;
  padding: 16px;
  margin: 18px 0;
  color: #115E59;
  font-size: 0.84rem;
  line-height: 1.6;
}
.diag-rep-code {
  font-family: monospace;
  font-weight: 900;
  background: #0F766E;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 6px;
  margin: 0 4px;
}
.diag-cta-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
.diag-line-btn {
  background: #06C755;
  color: #FFFFFF;
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 13px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.diag-poster-btn {
  background: #FFFFFF;
  border: 1.5px solid #0F766E;
  color: #0F766E;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* --- 6. Case Detail Anatomical Modal --- */
.modal-video-card {
  background: #0E1D24;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 118, 110, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.modal-video-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: rgba(15, 23, 42, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.modal-video-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-video-player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-macro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0 16px;
}
.detail-macro-col {
  background: #0E1D24;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid #E2E8F0;
}
.detail-macro-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-macro-tag {
  position: absolute;
  top: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.macro-tag-pre {
  left: 8px;
  background: rgba(15, 23, 42, 0.8);
  color: #F8FAFC;
}
.macro-tag-post {
  right: 8px;
  background: rgba(15, 118, 110, 0.9);
  color: #FFFFFF;
}
.detail-macro-lbl {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.8);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================================================= */
/* Photo Upload & Anatomical HUD Scanner in Diagnostic Bar                   */
/* ========================================================================= */
.p1-photo-analysis-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  margin: 18px 0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.p1-upload-flex-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  align-items: start;
}
.p1-photo-dropzone {
  border: 2px dashed #CBD5E1;
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
  background: #F8FAFC;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}
.p1-photo-dropzone:hover {
  border-color: #0F766E;
  background: #F0FDFA;
}
.dropzone-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.dropzone-icon {
  font-size: 2.6rem;
  margin-bottom: 12px;
}
.dropzone-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}
.dropzone-desc {
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.5;
  max-width: 260px;
  margin-bottom: 16px;
}
.btn-demo-photo {
  background: #FFFFFF;
  border: 1.5px solid #0F766E;
  color: #0F766E;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.1);
}
.btn-demo-photo:hover {
  background: #0F766E;
  color: #FFFFFF;
}
.dropzone-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.canvas-scanner-wrap {
  position: relative;
  width: 100%;
  max-width: 290px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  background: #0B161B;
}
#faceScanCanvas {
  width: 100%;
  height: auto;
  display: block;
}
.scan-laser-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0) 0%, #5EEAD4 50%, rgba(94, 234, 212, 0) 100%);
  box-shadow: 0 0 10px #5EEAD4, 0 0 20px #0F766E;
  animation: scanLaserAnim 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanLaserAnim {
  0% { top: 2%; opacity: 0.2; }
  50% { top: 96%; opacity: 1; }
  100% { top: 2%; opacity: 0.2; }
}
.scan-status-pill {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  color: #5EEAD4;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(94, 234, 212, 0.3);
}
.btn-reupload {
  margin-top: 12px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-reupload:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* Results panel */
.p1-analysis-results-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.panel-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  color: #0F766E;
  letter-spacing: 0.08em;
  background: #F0FDFA;
  border: 1px solid #CCFBF1;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}
.p1-analysis-results-panel h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
}
.analysis-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.metric-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px;
  transition: all 0.2s ease;
}
.metric-card.active-focus {
  border-color: #0F766E;
  background: #F0FDFA;
}
.metric-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748B;
  margin-bottom: 4px;
}
.metric-val {
  font-size: 1.15rem;
  font-weight: 900;
  color: #0F766E;
  font-family: var(--font-serif);
}
.metric-status {
  font-size: 0.72rem;
  color: #475569;
  margin-top: 4px;
  line-height: 1.3;
}

.matched-doc-box {
  background: #FAF5FF;
  border: 1px solid #E9D5FF;
  border-radius: 12px;
  padding: 16px;
}
.matched-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #6B21A8;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.matched-doc-header strong {
  font-size: 0.95rem;
  color: #581C87;
}
.matched-doc-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.analysis-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.btn-analysis-download {
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-analysis-download:hover {
  border-color: #0F766E;
  color: #0F766E;
  background: #F0FDFA;
}
.btn-analysis-consult {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  border: none;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
  transition: all 0.2s ease;
}
.btn-analysis-consult:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(15, 118, 110, 0.4);
}

.p1-symptoms-filter-row {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #CBD5E1;
}
.symptoms-hint {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 860px) {
  .p1-upload-flex-container {
    grid-template-columns: 1fr;
  }
  .analysis-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero Carousel Pause/Play Control (LIVE-10) */
.p1-hero-controls-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p1-hero-pause-btn {
  background: rgba(15, 23, 42, 0.7);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  line-height: 1;
}
.p1-hero-pause-btn:hover,
.p1-hero-pause-btn:focus {
  background: #0F766E;
  outline: 2px solid #5EEAD4;
}

/* Mobile Progressive Disclosure for Doctors & Packages (LIVE-15) */
.doc-details-toggle-btn,
.pkg-details-toggle-btn {
  display: none;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  color: #0F766E;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  text-align: center;
  transition: background 0.18s ease;
}
.doc-details-toggle-btn:hover,
.pkg-details-toggle-btn:hover {
  background: #F0FDFA;
}
@media (max-width: 768px) {
  .doc-details-toggle-btn,
  .pkg-details-toggle-btn {
    display: block;
  }
  .doc-collapsible-content,
  .pkg-collapsible-content {
    display: none;
  }
  .doc-collapsible-content.expanded,
  .pkg-collapsible-content.expanded {
    display: block;
  }
}

/* Keyboard accessibility outline (LIVE-09) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #0F766E !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   SCREEN 2 DUAL-MODE SWITCHER & VIDEO DEMO ENHANCEMENTS
   ========================================================================== */
.p1-diag-view-switcher {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}
.p1-diag-tab-btn {
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.p1-diag-tab-btn:hover {
  border-color: #0F766E;
  color: #0F766E;
  background: #F0FDFA;
}
.p1-diag-tab-btn.active {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  border-color: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
}
.diag-switch-toast {
  text-align: center;
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  color: #0F766E;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 auto 16px;
  max-width: 640px;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.1);
  animation: fadeInToast 0.3s ease-out;
}
@keyframes fadeInToast {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Demonstration Video Styling inside Dropzone */
.diag-demo-video-wrap {
  position: relative;
  width: 100%;
  max-width: 290px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.16);
  background: #0B161B;
}
.diag-demo-video-wrap video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.diag-video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 118, 110, 0.92);
  color: #5EEAD4;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 2;
  backdrop-filter: blur(4px);
}
.diag-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.65);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  z-index: 2;
}

/* Screen 2 Curated Cases Grid */
.diag-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0;
}
@media (max-width: 1024px) {
  .diag-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .diag-cases-grid {
    grid-template-columns: 1fr;
  }
}
.diag-case-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.diag-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.12);
  border-color: #99F6E4;
}
.diag-case-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #0B161B;
}
.diag-case-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}
.diag-case-ba-toggle {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}
.diag-case-ba-toggle:hover {
  background: #0F766E;
  border-color: #5EEAD4;
}
.diag-case-indicator {
  position: absolute;
  top: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 2;
}
.diag-case-indicator.after {
  background: rgba(15, 118, 110, 0.9);
  color: #5EEAD4;
}
.diag-case-indicator.before {
  background: rgba(100, 116, 139, 0.9);
  color: #F1F5F9;
}
.diag-case-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.diag-case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.diag-case-spec-pill {
  background: #F0FDFA;
  color: #0F766E;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.diag-case-doc-sig {
  font-size: 0.74rem;
  color: #64748B;
  font-weight: 600;
}
.diag-case-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 6px;
  line-height: 1.4;
}
.diag-case-desc {
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0 0 10px;
  flex-grow: 1;
}
.diag-case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.diag-case-metric-box {
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 6px;
  padding: 6px;
  text-align: center;
}
.diag-case-metric-box .metric-num {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0F766E;
  display: block;
}
.diag-case-metric-box .metric-lbl {
  font-size: 0.68rem;
  color: #64748B;
  display: block;
}
.diag-case-btn {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}
.diag-case-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}
.btn-explore-full-cases {
  display: inline-block;
  background: #FFFFFF;
  border: 1.5px solid #0F766E;
  color: #0F766E;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 24px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-explore-full-cases:hover {
  background: #0F766E;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.2);
}

/* ==========================================================================
   P1 Global Omnichannel Contact Matrix (Page Bottom)
   ========================================================================== */
.p1-omnichannel-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  padding: 72px 24px 64px;
  border-top: 1px solid #E2E8F0;
  position: relative;
}
.p1-omnichannel-wrap {
  max-width: 1240px;
  margin: 0 auto;
}
.p1-omnichannel-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 44px;
}
.p1-omnichannel-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #F0FDFA;
  color: #0F766E;
  border: 1px solid #CCFBF1;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.p1-omnichannel-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.p1-omnichannel-subtitle {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.7;
  margin: 0;
}
.p1-omnichannel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto 32px;
  justify-content: center;
}
.p1-channel-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 18px;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.p1-channel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.12);
  border-color: #0F766E;
}
.p1-channel-card.recommended {
  border-color: #0F766E;
  border-width: 2px;
  box-shadow: 0 8px 28px rgba(15, 118, 110, 0.16);
  background: linear-gradient(180deg, #F0FDFA 0%, #FFFFFF 100%);
}
.p1-channel-rec-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(15, 118, 110, 0.3);
}
.p1-channel-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.p1-channel-info-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}
.p1-channel-name {
  font-size: 1.02rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 3px;
}
.p1-channel-account {
  font-size: 0.78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #475569;
  background: #F1F5F9;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  word-break: break-all;
}
.p1-channel-qr-wrap {
  width: 120px;
  height: 120px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.p1-channel-qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.p1-channel-scan-hint {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.p1-channel-btn {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.18s ease;
  cursor: pointer;
  border: none;
  margin-top: auto;
}
.p1-channel-btn-primary {
  background: #0F766E;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.22);
}
.p1-channel-btn-primary:hover {
  background: #115E59;
  transform: translateY(-1px);
}
.p1-channel-btn-outline {
  background: #F8FAFC;
  color: #334155 !important;
  border: 1px solid #CBD5E1;
}
.p1-channel-btn-outline:hover {
  background: #F1F5F9;
  border-color: #0F766E;
  color: #0F766E !important;
}
.p1-omnichannel-notice {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: #475569;
}
@media (max-width: 768px) {
  .p1-omnichannel-section {
    padding: 44px 16px 40px;
  }
  .p1-omnichannel-header {
    margin-bottom: 24px;
  }
  .p1-omnichannel-title {
    font-size: 1.35rem;
  }
  .p1-omnichannel-subtitle {
    font-size: 0.85rem;
    line-height: 1.5;
  }
  .p1-omnichannel-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
  }
  .p1-channel-card {
    padding: 16px 10px 14px;
    border-radius: 14px;
  }
  .p1-channel-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .p1-channel-icon-wrap svg {
    width: 22px;
    height: 22px;
  }
  .p1-channel-name {
    font-size: 0.88rem;
    margin-bottom: 2px;
  }
  .p1-channel-account {
    font-size: 0.7rem;
    padding: 2px 6px;
  }
  /* Mobile: Hide cumbersome QR codes to make tap-action fast & light */
  .p1-channel-qr-wrap,
  .p1-channel-scan-hint {
    display: none !important;
  }
  .p1-channel-btn {
    font-size: 0.78rem;
    padding: 8px 6px;
    border-radius: 6px;
  }
  .p1-omnichannel-notice {
    flex-direction: column;
    text-align: center;
    padding: 14px 16px;
    gap: 10px;
    font-size: 0.8rem;
  }
  .p1-omnichannel-notice button {
    width: 100% !important;
  }
}
@media (max-width: 480px) {
  .p1-omnichannel-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .p1-channel-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 12px 14px;
    gap: 12px;
  }
  .p1-channel-icon-wrap {
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .p1-channel-info-wrap {
    align-items: flex-start;
    margin-bottom: 0;
    flex: 1;
    min-width: 0;
  }
  .p1-channel-name {
    margin-bottom: 0;
  }
  .p1-channel-account {
    margin-top: 2px;
    font-size: 0.68rem;
  }
  .p1-channel-btn {
    width: auto;
    margin-top: 0;
    white-space: nowrap;
    padding: 8px 12px;
    flex-shrink: 0;
  }
  .p1-channel-rec-tag {
    top: 6px;
    right: 8px;
    font-size: 0.6rem;
    padding: 2px 6px;
  }
}

/* ==========================================================================
   SCREEN 3 UNIFIED CASES & SELF-ASSESSMENT WITH AUTO-SWITCHING
   ========================================================================== */
.p1-unified-screen3 {
  padding: 60px 20px 70px;
  background: #FFFFFF;
  border-top: 1px solid var(--border-subtle, #E2E8F0);
  position: relative;
}
.screen3-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.screen3-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 28px;
}
.screen3-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 118, 110, 0.08);
  color: #0F766E;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 16px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 118, 110, 0.2);
}
.screen3-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: #0F172A;
  margin: 12px 0 10px;
  line-height: 1.3;
}
.screen3-sub {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 auto;
}
.screen3-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 22px 0 28px;
  flex-wrap: wrap;
}
.screen3-tabs-group {
  display: inline-flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}
.screen3-tab-btn {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}
.screen3-tab-btn:hover {
  color: #0F766E;
}
.screen3-tab-btn.active {
  background: linear-gradient(135deg, #0F766E 0%, #115E59 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}
.screen3-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0F172A;
  color: #F8FAFC;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 600;
  border: 1px solid rgba(94, 234, 212, 0.3);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  user-select: none;
}
.screen3-timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5EEAD4;
  box-shadow: 0 0 8px #5EEAD4;
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.screen3-progress-track {
  width: 50px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.screen3-progress-bar {
  height: 100%;
  width: 0%;
  background: #5EEAD4;
  border-radius: 2px;
  transition: width 0.1s linear;
}
.screen3-pause-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 0.72rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}
.screen3-pause-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #5EEAD4;
}
.screen3-pane {
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.screen3-pane.fade-in {
  animation: screen3FadeIn 0.35s ease-out forwards;
}
@keyframes screen3FadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.demo-banner-strip {
  background: #F0FDFA;
  border: 1px solid #99F6E4;
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: #0F766E;
  font-weight: 700;
}
@media (max-width: 768px) {
  .screen3-title { font-size: 1.55rem; }
  .screen3-controls-bar { flex-direction: column; gap: 10px; }
  .demo-banner-strip { flex-direction: column; text-align: center; }
}





/* ==========================================================================
   Two-Stage Clinical Repair Journey Roadmap (W-5)
   ========================================================================== */
.p1-two-stage-roadmap {
  margin-top: 50px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 36px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.roadmap-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 32px;
}
.roadmap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 118, 110, 0.1);
  color: #0F766E;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 10px;
}
.roadmap-title {
  font-size: 1.65rem;
  font-weight: 900;
  color: #0F172A;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.roadmap-desc {
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.7;
  margin: 0;
}
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
}
.roadmap-step-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.roadmap-step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.08);
  border-color: #0F766E;
}
.step-phase-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.step-phase-1 { background: #FEF3C7; color: #92400E; }
.step-phase-2 { background: #E0E7FF; color: #3730A3; }
.step-phase-3 { background: #CCFBF1; color: #0F766E; }
.step-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 8px;
}
.step-card-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0F766E;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.step-card-points {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  flex: 1;
}
.step-card-points li {
  font-size: 0.86rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}
.step-card-points li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: 0;
  color: #0F766E;
  font-weight: 900;
  font-size: 1.1rem;
}
.step-card-badge {
  background: #F1F5F9;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.5;
  border-left: 3px solid #0F766E;
}
.roadmap-warning-box {
  margin-top: 24px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.roadmap-warning-icon {
  font-size: 1.4rem;
  line-height: 1;
}
.roadmap-warning-text {
  font-size: 0.86rem;
  color: #92400E;
  line-height: 1.6;
}
.roadmap-warning-text strong {
  color: #78350F;
}
@media (max-width: 900px) {
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}
