/* ==========================================================================
   BioDeeptech Intelligence — Design System & Stylesheet (v2.4)
   Aesthetic: Stripe Press / Linear Dark Mode / Glassmorphism
   ========================================================================== */

:root {
  /* Core Palette */
  --bg-obsidian: #090d16;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.8);
  
  /* Text */
  --text-pure: #ffffff;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Accents */
  --primary: #6366f1;       /* Electric Indigo */
  --primary-hover: #4f46e5;
  --cyan: #38bdf8;          /* Cyber Cyan */
  --violet: #a855f7;        /* Neon Violet */
  --emerald: #10b981;       /* Validated Emerald */
  --amber: #f59e0b;         /* Caution Amber */
  --rose: #f43f5e;

  /* Glassmorphism & Borders */
  --border-glass: rgba(255, 255, 255, 0.1);
  --border-glass-strong: rgba(255, 255, 255, 0.18);
  --glass-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --card-radius: 16px;
  --btn-radius: 10px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Pretendard', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  animation: pulse-ambient 8s ease-in-out infinite alternate;
}
.glow-1 {
  top: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
}
.glow-2 {
  top: 40%;
  right: -150px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  animation-delay: -4s;
}
.glow-3 {
  bottom: 0;
  left: 20%;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
  animation-delay: -2s;
}

@keyframes pulse-ambient {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.15) translate(30px, -20px); }
}

/* Typography Helpers */
.text-gradient-electric {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-emerald { color: var(--emerald); }
.text-indigo { color: var(--primary); }

/* Sticky Navbar */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(9, 13, 22, 0.82);
  border-bottom: 1px solid var(--border-glass);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  user-select: none;
}

.brand-logo-hex {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
}
.brand-badge {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav Tabs */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(15, 23, 42, 0.6);
  padding: 0.25rem;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: #ffffff;
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.tab-icon {
  width: 16px;
  height: 16px;
}

.tab-chip {
  font-size: 0.7rem;
  background: rgba(56, 189, 248, 0.15);
  color: var(--cyan);
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  font-weight: 700;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.db-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse-ring 1.8s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.live-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  letter-spacing: 0.05em;
}

.btn-glow-primary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.15rem;
  border-radius: var(--btn-radius);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.35);
  transition: all 0.2s;
}
.btn-glow-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

/* App Main Views Routing Container */
#app-root {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

.app-view {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.app-view.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   VIEW 1: HOME / DISCOVERY HUB
   ========================================================================== */

.hero-wrapper {
  text-align: center;
  padding: 3rem 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-glass-strong);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.pill-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}

.hero-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 3.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  max-width: 900px;
  color: var(--text-pure);
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn-hero-main {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
  transition: all 0.25s;
}
.btn-hero-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.6);
}

.btn-hero-secondary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main);
  border: 1px solid var(--border-glass-strong);
  padding: 0.9rem 1.8rem;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-hero-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* 3D Scientific Visual Showcase Banner */
.hero-visual-banner-card {
  width: 100%;
  max-width: 1000px;
  margin-bottom: 3.5rem;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-glass-strong);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9), 0 0 40px rgba(99, 102, 241, 0.25);
  position: relative;
  background: #020617;
}

.banner-media-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-render-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-visual-banner-card:hover .hero-render-img {
  transform: scale(1.06);
}

.banner-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(9, 13, 22, 0.2) 0%, rgba(9, 13, 22, 0.85) 100%);
  pointer-events: none;
}

/* Floating Holographic Chips */
.floating-data-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  z-index: 2;
  text-align: left;
}
.chip-top-left {
  top: 24px;
  left: 24px;
}
.chip-bottom-right {
  bottom: 24px;
  right: 24px;
}

.chip-dot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-ring 1.5s infinite;
}
.chip-icon-dna {
  font-size: 1.4rem;
}
.floating-data-chip strong {
  display: block;
  font-size: 0.9rem;
  color: #ffffff;
  font-weight: 700;
}
.floating-data-chip p {
  font-size: 0.75rem;
  color: var(--cyan);
  margin: 0;
}

/* Product Visual Image Covers */
.product-image-container {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
}
.product-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.catalog-card:hover .product-cover-img {
  transform: scale(1.08);
}
.product-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
}

/* Metric Glass Bar */
.metric-glass-bar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  max-width: 950px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 1.25rem 2rem;
  backdrop-filter: blur(12px);
  margin-bottom: 3.5rem;
  box-shadow: var(--glass-glow);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.metric-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-pure);
}
.metric-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}
.metric-divider {
  width: 1px;
  height: 40px;
  background: var(--border-glass);
}

/* Hero Interactive Card */
.hero-interactive-card {
  width: 100%;
  max-width: 1000px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-glass-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(20px);
  text-align: left;
}

.card-glass-header {
  background: rgba(30, 41, 59, 0.6);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.window-controls {
  display: flex;
  gap: 6px;
}
.ctrl {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.ctrl.red { background: #ef4444; }
.ctrl.yellow { background: #eab308; }
.ctrl.green { background: #22c55e; }

.card-title-tab {
  font-size: 0.875rem;
  color: var(--text-main);
  font-weight: 600;
}
.header-status {
  font-size: 0.75rem;
  color: var(--emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.card-glass-body {
  padding: 2rem;
}

.radar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.radar-target-box {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.25rem;
}

.target-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.target-symbol {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}
.target-full {
  display: block;
  font-family: 'Pretendard', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}
.target-score-badge {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}
.target-score-badge.high {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.score-bars-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.score-bar-row {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}
.score-name {
  color: var(--text-muted);
}
.score-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.fill-cyan { background: linear-gradient(90deg, #0ea5e9, #38bdf8); }
.fill-indigo { background: linear-gradient(90deg, #6366f1, #818cf8); }
.fill-violet { background: linear-gradient(90deg, #a855f7, #c084fc); }
.fill-amber { background: linear-gradient(90deg, #d97706, #fbbf24); }
.fill-emerald { background: linear-gradient(90deg, #059669, #34d399); }

.score-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-main);
  text-align: right;
  font-weight: 600;
}

.card-footer-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
}
.footer-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.btn-micro-cta {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-micro-cta:hover {
  color: #fff;
  text-decoration: underline;
}

/* Sections & Comparison */
.section-container {
  padding: 4rem 0 2rem;
}

.section-header-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-pure);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.compare-card {
  border-radius: 18px;
  padding: 2.5rem;
  position: relative;
}
.compare-card.old-way {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.compare-card.new-way {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.12);
}

.card-status-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1.25rem;
}
.badge-red { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-emerald { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-indigo { background: rgba(99, 102, 241, 0.2); color: #818cf8; }
.badge-amber { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

.compare-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.compare-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.compare-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.icon-cross {
  color: #ef4444;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}
.icon-check {
  color: #10b981;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1.2;
}
.compare-list strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.compare-list p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transition: transform 0.2s, border-color 0.2s;
}
.step-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glass-strong);
}
.step-num {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: rgba(99, 102, 241, 0.25);
  margin-bottom: 0.5rem;
}
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   VIEW 2: TARGET INTELLIGENCE MATRIX TABLE
   ========================================================================== */

.matrix-header-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 2rem;
}
.matrix-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 0.25rem;
}
.matrix-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Disease Switcher Pill Bar */
.disease-switch-bar {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.d-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.d-pill:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}
.d-pill.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(56, 189, 248, 0.2) 100%);
  color: #ffffff;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.reader-disease-select {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass-strong);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  outline: none;
  cursor: pointer;
}

.badge-violet { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.badge-cyan { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }

.matrix-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
}
.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-dim);
}
.search-input-wrapper input {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass-strong);
  border-radius: 10px;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}
.search-input-wrapper input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.filter-pill-group {
  display: flex;
  gap: 0.5rem;
}
.filter-pill {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover {
  color: #fff;
  background: rgba(51, 65, 85, 0.8);
}
.filter-pill.active {
  background: rgba(99, 102, 241, 0.2);
  color: #818cf8;
  border-color: rgba(99, 102, 241, 0.5);
}

.table-glass-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--glass-glow);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.matrix-table th {
  background: rgba(15, 23, 42, 0.85);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}
.matrix-table td {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border-glass);
  font-size: 0.9rem;
  color: var(--text-main);
}
.matrix-table tr {
  cursor: pointer;
  transition: background 0.15s;
}
.matrix-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

.symbol-cell {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #38bdf8;
}
.score-badge-table {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-table-action {
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: #818cf8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-table-action:hover {
  background: var(--primary);
  color: #fff;
}

/* ==========================================================================
   VIEW 3: REPORT CATALOG GRID
   ========================================================================== */

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.catalog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s;
}
.catalog-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glass-strong);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}
.catalog-card.active-product {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.15);
}

.catalog-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  white-space: nowrap;
}
.product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
}
.product-price small {
  font-size: 0.75rem;
  font-weight: 500;
}

.product-visual-preview {
  margin-bottom: 1.5rem;
}
.mini-deck-cover {
  height: 140px;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cover-parkinson {
  background: linear-gradient(135deg, #1e293b 0%, #064e3b 100%);
  border-color: rgba(16, 185, 129, 0.3);
}
.cover-cancer {
  background: linear-gradient(135deg, #311b92 0%, #4a044e 100%);
  border-color: rgba(217, 70, 239, 0.3);
}

.deck-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}
.deck-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.deck-tag-row {
  display: flex;
  gap: 0.35rem;
}
.tag-chip {
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #e2e8f0;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.product-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.product-feature-list li {
  font-size: 0.85rem;
  color: #cbd5e1;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.check-emerald {
  color: var(--emerald);
  font-weight: 700;
}

.product-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-primary-full {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.2s;
}
.btn-primary-full:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.45);
}

.btn-secondary-full {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-glass-strong);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-secondary-full:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ==========================================================================
   VIEW 4: 16:9 SLIDE READER / DECK VIEWER
   ========================================================================== */

.reader-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.reader-main-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff;
}

.reader-actions-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slide-indicator {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.8);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.btn-nav-slide {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-nav-slide:hover {
  background: rgba(51, 65, 85, 0.9);
  color: #fff;
}

.btn-unlock-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 800;
  border: none;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s;
}
.btn-unlock-gold:hover {
  transform: translateY(-1px);
}

/* 16:9 Display Aspect Box */
.deck-viewer-viewport {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border: 1px solid var(--border-glass-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  position: relative;
}

.deck-slide {
  display: none;
  width: 100%;
  height: 100%;
  padding: 3rem 4rem;
  background: #090d16;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.15), transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.12), transparent 30%);
}

.deck-slide.active {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-inner-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}
.slide-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.slide-logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.slide-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 1.5rem 0;
}

.slide-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  flex-grow: 1;
  align-items: stretch;
}

.slide-point-box {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}
.slide-point-box.highlight-box {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.point-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}
.slide-point-box h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
}
.point-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.slide-bottom-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-glass);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* ==========================================================================
   VIEW 5: METHODOLOGY PIPELINE
   ========================================================================== */

.db-pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.db-source-card {
  flex: 1;
  min-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.2s;
}
.db-source-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
}
.db-icon {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}
.db-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}
.db-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.db-tag {
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--text-dim);
  font-weight: 700;
}

/* ==========================================================================
   MODAL & DRAWER OVERLAYS
   ========================================================================== */

.drawer-overlay, .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.drawer-overlay.active, .modal-backdrop.active {
  display: flex;
  opacity: 1;
}

/* Drawer */
.drawer-overlay {
  justify-content: flex-end;
}
.drawer-panel {
  width: 100%;
  max-width: 480px;
  height: 100%;
  background: #0f172a;
  border-left: 1px solid var(--border-glass-strong);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.drawer-overlay.active .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1.25rem;
}
.drawer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.drawer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0.3rem 0;
}
.drawer-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.drawer-close-btn, .modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
}

.dossier-score-summary {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.dossier-score-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 75px;
  height: 75px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 2px solid var(--emerald);
}
.circle-val {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #34d399;
}
.circle-lbl {
  font-size: 0.6rem;
  color: var(--text-muted);
}
.dossier-desc-text {
  font-size: 0.85rem;
  color: var(--text-main);
  line-height: 1.5;
}

.dossier-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}
.datatype-score-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.dt-row {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
}

/* Modal */
.modal-backdrop {
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
}
.modal-container {
  width: 100%;
  max-width: 520px;
  background: #0f172a;
  border: 1px solid var(--border-glass-strong);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 1rem;
}
.polar-logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffffff;
}
.modal-secure-badge {
  font-size: 0.75rem;
  color: var(--emerald);
  margin-left: 0.75rem;
}

.order-summary-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.order-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 0.75rem;
}
.order-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}
.order-item-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.order-item-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.order-calc-table {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.calc-row {
  display: flex;
  justify-content: space-between;
}
.calc-row.total {
  font-weight: 700;
  color: #ffffff;
  border-top: 1px solid var(--border-glass);
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.form-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.8);
  border: 1px solid var(--border-glass-strong);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.9rem;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
}

.payment-method-selector {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pay-method {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-glass);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}
.pay-method.active {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.12);
}

.btn-checkout-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
  color: white;
  border: none;
  padding: 0.95rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.5rem;
}

.payment-success-box {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1rem;
}
.success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.payment-success-box h4 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #34d399;
  margin-bottom: 0.5rem;
}
.payment-success-box p {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1.25rem;
}
.btn-download-pdf {
  display: inline-block;
  background: var(--emerald);
  color: #000;
  font-weight: 800;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* App Footer */
.app-footer {
  border-top: 1px solid var(--border-glass);
  padding: 3rem 1.5rem;
  background: rgba(2, 6, 23, 0.9);
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  color: var(--text-dim);
  gap: 0.25rem;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  .hero-headline { font-size: 2.4rem; }
  .radar-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .comparison-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .deck-viewer-viewport { aspect-ratio: auto; height: 500px; }
  .slide-content-grid { grid-template-columns: 1fr; }
}
