/*
  PeptideFlow — Premium B&W Flow-State Scroll Design System
  Mixed white/black aesthetic with micro-animations
*/

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

/* ====== TOKENS ====== */
:root {
  --white: #ffffff;
  --off-white: #f5f5f5;
  --black: #000000;
  --near-black: #0a0a0a;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ====== RESET ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { cursor: none; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
/* Ensure interactive elements also hide default cursor */
a, button, select, input, [role="button"] {
  cursor: none !important;
}


/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--near-black); }
::-webkit-scrollbar-thumb { background: var(--gray-600); border-radius: 3px; }

/* ====== CURSOR GLOW ====== */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.05s linear;
}
.cursor-circle {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid var(--black);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transform-origin: center;
}
/* Mixed B&W cursor colors depending on section light/dark style */
body.in-dark-section .cursor-dot {
  background: var(--white);
}
body.in-dark-section .cursor-circle {
  border-color: var(--white);
}
body.in-dark-section .cursor-glow {
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
}


/* ====== CONTAINER ====== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ====== HEADER ====== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition: all 0.4s var(--ease-out);
}
header.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.65);
  border-bottom-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

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

.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px;
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--black);
}
.logo-text span { color: var(--gray-400); }

#desktopNav { display: flex; gap: 1.5rem; }
#desktopNav a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
  position: relative;
  padding: 0.2rem 0;
  transition: color 0.3s;
}
#desktopNav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0;
  height: 1.5px;
  background: var(--black);
  transition: width 0.3s var(--ease-out);
}
#desktopNav a:hover { color: var(--black); }
#desktopNav a:hover::after { width: 100%; }
#desktopNav a.active { color: var(--black); }
#desktopNav a.active::after { width: 100%; }
.mobile-nav a.active { color: var(--black); font-weight: 600; border-bottom-color: var(--black); }

/* Hamburger */
.hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 28px; height: 20px;
  position: relative;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 100%; height: 2px;
  background: var(--black);
  position: absolute; left: 0;
  transition: all 0.3s var(--ease-out);
}
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }
.hamburger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 0.5rem 2rem 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--gray-100);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--black); }

/* ====== REVEAL ANIMATION ====== */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ====== SECTIONS ====== */
.section { padding: 7rem 0; position: relative; }

.section--hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  background: radial-gradient(circle at 15% 50%, rgba(243, 244, 246, 1), transparent 25%),
              radial-gradient(circle at 85% 30%, rgba(229, 231, 235, 1), transparent 25%),
              var(--white);
}

.section--white { background: var(--off-white); }
.section--black { background: var(--near-black); color: var(--white); }

/* Section Headers */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.section-tag--light { color: var(--gray-500); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--black);
}
.section-title--light { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 3rem;
}
.section-desc--light { color: var(--gray-400); }

.section-header { margin-bottom: 1rem; }

/* Selection Guide Header Layout with video */
.section-header--guide {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.section-header-content {
  flex: 1;
}
.section-header-content .section-desc {
  margin-bottom: 0;
}
.section-header-video {
  width: 250px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: visible;
  border: none !important;
  box-shadow: none !important;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  left: -90px;
}
.section-header-video video {
  width: 100%;
  height: auto;
  display: block;
  transform: rotate(90deg);
  border: none !important;
  outline: none !important;
}

@media (max-width: 768px) {
  .section-header--guide {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
  }
  .section-header-video {
    left: 0;
  }
}

/* ====== HERO ====== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: center;
  min-height: 80vh;
}

.hero-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--black);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-500);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

/* Buttons */
.btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.8rem 1.8rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn--primary:hover {
  background: transparent;
  color: var(--black);
}
.btn--ghost {
  background: transparent;
  color: var(--gray-600);
  border-color: var(--gray-300);
}
.btn--ghost:hover {
  border-color: var(--black);
  color: var(--black);
}

/* Hero Visual Wrapper */
.hero-visual {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  margin-top: -60px;
}
.hero-video-wrapper {
  width: 100%;
  max-width: 420px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  border: none !important;
}
.hero-visual--mobile {
  display: none;
  position: relative;
  width: calc(100% - 80px);
  max-width: 380px;
  margin: 0 auto 3.5rem 60px;
}
.hero-video {
  width: 100%;
  height: auto;
  display: block;
  border: none !important;
  outline: none !important;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 2.5rem;
}
.stat-item { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.3rem;
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-media-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  border: 2px dashed var(--gray-300);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: border-color 0.3s;
}
.hero-media-placeholder:hover { border-color: var(--gray-400); }

.media-icon { color: var(--gray-400); }
.media-label {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Floating Cards */
.float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  animation: floatBounce 4s ease-in-out infinite;
  z-index: 2;
}
.float-card--1 { top: -10px; right: -20px; animation-delay: 0s; }
.float-card--2 { bottom: 20%; left: -30px; animation-delay: 1.3s; }
.float-card--3 { bottom: -10px; right: 10%; animation-delay: 2.6s; }

.fc-icon { font-size: 1.1rem; }
.fc-text { font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; }
.fc-tag {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

/* Scroll Indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-bottom: 1rem;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-300), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.65rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ====== MARQUEE ====== */
.marquee-strip {
  background: var(--near-black);
  color: var(--white);
  padding: 1rem 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.marquee-track {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  animation: marqueeScroll 25s linear infinite;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
}
.marquee-track span { flex-shrink: 0; }
@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== CATEGORY CARDS ====== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.cat-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
  cursor: default;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}
.cat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}
.cat-media-placeholder {
  width: 100%;
  height: 120px;
  background: var(--gray-100);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
  border: 1.5px dashed var(--gray-200);
}
.cat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.cat-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.55;
  margin-bottom: 1rem;
}
.cat-compounds { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.chip {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--gray-100);
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  border: 1px solid var(--gray-200);
}

/* ====== GOAL SELECTOR ====== */
.goal-selector {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.goal-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: var(--gray-400);
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.goal-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.goal-btn.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ====== RECOMMENDATION CAPSULES ====== */
.reco-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}
.minimal-capsule {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.5rem;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.minimal-capsule:hover {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.capsule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.capsule-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}
.capsule-risk {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--gray-400);
}
.risk-low { border-color: rgba(34,197,94,0.4); color: #22c55e; }
.risk-moderate { border-color: rgba(234,179,8,0.4); color: #eab308; }
.risk-high { border-color: rgba(239,68,68,0.4); color: #ef4444; }

.capsule-tagline {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
  flex-grow: 1;
}
.capsule-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--gray-500);
  font-weight: 500;
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.capsule-plus {
  color: var(--white);
  opacity: 0.5;
  transition: all 0.3s ease;
}
.minimal-capsule:hover .capsule-plus {
  opacity: 1;
  transform: scale(1.1);
}

/* ====== PEPTIDE MODAL ====== */
.peptide-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.peptide-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.peptide-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
}
.peptide-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  background: rgba(15, 15, 15, 0.65);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1001;
  padding: 3rem;
  color: var(--gray-300);
  transform: translateY(20px) scale(0.98);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: none;
}
.peptide-modal.active .peptide-modal-content {
  transform: translateY(0) scale(1);
}
.peptide-modal-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--gray-400);
  cursor: none;
  padding: 0.5rem;
  transition: color 0.3s;
}
.peptide-modal-close:hover { color: var(--white); }

/* Modal Inner Styles */
.modal-header { margin-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 1.5rem; }
.modal-category { font-size: 0.7rem; letter-spacing: 2px; color: var(--gray-500); text-transform: uppercase; }
.modal-header h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--white); margin: 0.5rem 0; }
.modal-synonyms { font-size: 0.9rem; color: var(--gray-400); font-style: italic; }

.modal-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.modal-main h3, .modal-warnings h3 {
  font-family: var(--font-heading); font-size: 1.1rem; color: var(--white); margin-bottom: 1rem; border-left: 2px solid var(--gray-600); padding-left: 0.75rem;
}
.modal-main p, .modal-warnings p { font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; }
.modal-benefits { list-style: none; margin-bottom: 2rem; }
.modal-benefits li { position: relative; padding-left: 1.5rem; margin-bottom: 0.75rem; font-size: 0.95rem; }
.modal-benefits li::before { content: '→'; position: absolute; left: 0; color: var(--gray-500); }

.review-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; padding: 1.25rem; margin-bottom: 1rem; }
.review-head { display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.reviewer { font-weight: 600; color: var(--gray-300); font-size: 0.85rem; }
.rating { color: var(--white); font-size: 0.8rem; }
.review-box p { margin: 0; font-size: 0.9rem; color: var(--gray-400); font-style: italic; }

/* ====== AI ASSISTANT CHAT ====== */
.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chat-history {
  height: 450px;
  min-height: 0;
  padding: 2rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.chat-message {
  display: flex;
  gap: 1rem;
  max-width: 85%;
}
.bot-message {
  align-self: flex-start;
}
.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  flex-shrink: 0;
}
.user-message .msg-avatar {
  background: var(--gray-200);
  color: var(--gray-700);
}
.msg-content {
  background: var(--white);
  padding: 1rem 1.25rem;
  border-radius: 12px;
  border-top-left-radius: 2px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}
.user-message .msg-content {
  background: var(--black);
  color: var(--white);
  border-top-left-radius: 12px;
  border-top-right-radius: 2px;
  border-color: var(--black);
}
.chat-input-area {
  display: flex;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-top: 1px solid var(--gray-200);
}
.chat-input-area input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.chat-input-area input:focus {
  border-color: var(--black);
}
.chat-compound-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(243, 244, 246, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--gray-300);
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  margin: 0.25rem;
  transition: all 0.2s;
}
.chat-compound-btn:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.loading-dots {
  display: flex;
  gap: 4px;
  padding: 0.5rem;
}
.loading-dots div {
  width: 6px;
  height: 6px;
  background: var(--gray-500);
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.loading-dots div:nth-child(1) { animation-delay: -0.32s; }
.loading-dots div:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ====== STORE & SOURCING VIEW ====== */
.btn-source {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: none;
  transition: all 0.2s;
  color: var(--white);
}
.btn-source:hover {
  background: var(--white);
  color: var(--black);
}

.store-warning {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1rem 0 3rem 0;
  text-align: center;
}
.store-warning strong {
  display: block;
  color: #ef4444;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.store-warning p {
  color: var(--gray-700);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.store-header {
  text-align: center;
  margin-bottom: 3rem;
}
.store-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.store-header p {
  color: var(--gray-500);
  font-size: 1.1rem;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.vendor-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.vendor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

.vendor-badge {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1rem;
  align-self: flex-start;
}

.vendor-name {
  font-size: 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.vendor-trust {
  color: var(--gray-500);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.vendor-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.vendor-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
}

.vendor-buy-btn {
  margin-top: auto;
  padding-top: 1.5rem;
}
.vendor-buy-btn a {
  display: block;
  text-align: center;
  background: var(--black);
  color: var(--white);
  text-decoration: none;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.vendor-buy-btn a:hover {
  opacity: 0.8;
}
.sidebar-block { background: rgba(255,255,255,0.02); padding: 1.25rem; border-radius: 8px; border-left: 1px solid rgba(255,255,255,0.1); }
.sidebar-label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-500); margin-bottom: 0.5rem; }
.sidebar-block p { font-size: 0.9rem; color: var(--white); margin: 0; font-weight: 500; }

.risk-block.risk-low { border-left-color: #22c55e; background: rgba(34,197,94,0.05); }
.risk-block.risk-moderate { border-left-color: #eab308; background: rgba(234,179,8,0.05); }
.risk-block.risk-high { border-left-color: #ef4444; background: rgba(239,68,68,0.05); }

.modal-warnings { background: rgba(239,68,68,0.05); border: 1px solid rgba(239,68,68,0.2); border-radius: 12px; padding: 2rem; }
.modal-warnings h3 { color: #ef4444; border-color: #ef4444; }
.modal-side-effects { list-style: disc; padding-left: 1.5rem; color: var(--gray-400); font-size: 0.9rem; }
.modal-side-effects li { margin-bottom: 0.4rem; }

@media (max-width: 768px) {
  .reco-panel { grid-template-columns: 1fr; }
  .modal-grid { grid-template-columns: 1fr; gap: 2rem; }
  .peptide-modal-content { padding: 1.5rem; width: 95%; }
}

/* Wide media placeholder */
.wide-media-placeholder {
  width: 100%;
  height: 200px;
  background: rgba(255,255,255,0.03);
  border: 2px dashed rgba(255,255,255,0.1);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}
.wide-media-placeholder .media-icon { color: rgba(255,255,255,0.15); }
.wide-media-placeholder .media-label { color: rgba(255,255,255,0.2); }

/* ====== SCIENCE CARDS ====== */
.science-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.science-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
}
.science-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
  border-color: var(--gray-300);
}
.sc-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--gray-100);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}
.sc-media-placeholder {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  color: var(--gray-400);
}
.science-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.science-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ====== SAFETY CARDS ====== */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.safety-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.4s var(--ease-out);
}
.safety-card:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.05);
}
.safety-level {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  display: inline-block;
}
.safety-card--green .safety-level { background: rgba(34,197,94,0.15); color: var(--green); }
.safety-card--amber .safety-level { background: rgba(245,158,11,0.15); color: var(--amber); }
.safety-card--red .safety-level { background: rgba(239,68,68,0.15); color: var(--red); }

.safety-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.safety-card p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.safety-media-placeholder {
  width: 100%;
  height: 70px;
  background: rgba(255,255,255,0.03);
  border: 1.5px dashed rgba(255,255,255,0.08);
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.safety-media-placeholder .media-label { color: rgba(255,255,255,0.15); font-size: 0.65rem; }

/* Disclaimer */
.disclaimer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: 14px;
  padding: 1.5rem;
}
.disclaimer-icon { font-size: 1.5rem; flex-shrink: 0; }
.disclaimer strong {
  font-size: 0.9rem;
  color: var(--red);
  display: block;
  margin-bottom: 0.3rem;
}
.disclaimer p {
  font-size: 0.82rem;
  color: var(--gray-400);
  line-height: 1.55;
}

/* Browse CTA */
.db-browse-cta {
  text-align: center;
  margin-bottom: 2.5rem;
}
.btn--browse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gray-400);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 0.7rem 1.6rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: none;
  transition: all 0.35s var(--ease-out);
  letter-spacing: 0.3px;
}
.btn--browse:hover {
  color: var(--white);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn--browse svg {
  transition: transform 0.3s ease;
}
.btn--browse:hover svg {
  transform: translateX(3px);
}

/* ====== DATABASE / ENCYCLOPEDIA SECTION ====== */

/* Full-page database view */
.db-page {
  min-height: 100vh;
  padding-top: 8rem;
}
.db-page .section-header-video {
  width: 180px;
}
.db-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.1rem;
  border-radius: 100px;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  margin-bottom: 2.5rem;
}
.db-back-btn:hover {
  color: var(--white);
  border-color: var(--white);
}
.db-back-btn svg {
  transition: transform 0.3s ease;
}
.db-back-btn:hover svg {
  transform: translateX(-3px);
}

/* Search */
.db-search-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.db-search {
  flex: 1;
  position: relative;
  max-width: 480px;
}
.db-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}
.db-search input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.3s var(--ease-out);
  cursor: none;
}
.db-search input::placeholder { color: var(--gray-600); }
.db-search input:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.06);
}
.db-count {
  font-size: 0.75rem;
  color: var(--gray-500);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* Category Tabs */
.db-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.db-tab {
  padding: 0.45rem 1rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  background: transparent;
  color: var(--gray-400);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: none;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.db-tab:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--white);
}
.db-tab.active {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* Compound Grid */
.db-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.db-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: none;
  transition: all 0.35s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.06);
}
.db-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.db-card.active-card {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}
.db-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}
.db-card-top-left {
  flex: 1;
}
.db-card-top-left h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
  line-height: 1.3;
}
.db-card-preview-chart {
  width: 80px;
  height: 40px;
  flex-shrink: 0;
  opacity: 1;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease, transform 0.3s ease;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  padding: 2px;
}
.db-card-preview-chart:hover {
  opacity: 1;
  transform: scale(1.05);
  border-color: rgba(255,255,255,0.15);
}
.chart-expand-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.db-card-preview-chart:hover .chart-expand-icon {
  opacity: 1;
}
.db-card-cat {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.db-card-tagline {
  font-size: 0.8rem;
  color: var(--gray-400);
  line-height: 1.5;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.db-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--gray-500);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 0.75rem;
  margin-top: auto;
}
.db-card-risk {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.15);
}
.db-card-footer-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.db-card-graph-btn {
  color: var(--gray-500);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.db-card-graph-btn:hover {
  color: var(--white);
  transform: scale(1.1);
}
.db-card-arrow {
  color: var(--gray-600);
  transition: all 0.3s ease;
}
.db-card:hover .db-card-arrow {
  color: var(--white);
  transform: translateX(2px);
}

/* Detail Overlay Modal */
.db-detail-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.db-detail-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.db-detail-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
}
.db-detail-inner {
  position: relative;
  z-index: 1101;
  width: 92%;
  max-width: 920px;
  max-height: 88vh;
  background: var(--near-black);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 2.5rem;
  color: var(--gray-300);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.6);
  cursor: none;
}
.db-detail-overlay.open .db-detail-inner {
  transform: translateY(0) scale(1);
}

/* Chart Modal Overlay */
.chart-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.chart-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.chart-modal-backdrop {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
}
.chart-modal-inner {
  position: relative;
  z-index: 1201;
  width: 95%;
  max-width: 1200px;
  height: 85vh;
  background: var(--near-black);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
}
.chart-modal-overlay.open .chart-modal-inner {
  transform: translateY(0) scale(1);
}
.chart-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.chart-modal-header h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
}
.chart-modal-body {
  flex: 1;
  position: relative;
  min-height: 400px;
}

/* Detail Header */
.db-det-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.db-det-title-area {
  flex: 1;
}
.db-det-cat {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}
.db-det-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin: 0.3rem 0;
  line-height: 1.1;
}
.db-det-synonyms {
  font-size: 0.85rem;
  color: var(--gray-400);
  font-style: italic;
  margin-top: 0.4rem;
}
.db-det-close {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--gray-400);
  cursor: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 1.5rem;
}
.db-det-close:hover {
  color: var(--white);
  border-color: var(--white);
}

/* Detail Body Grid */
.db-det-body {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
}

/* Graph Preview */
.db-det-graph-preview {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.db-det-graph-preview:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
}
.db-det-graph-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.db-det-graph-header h3 {
  margin: 0 !important;
  border-left: none !important;
  padding-left: 0 !important;
}
.db-det-graph-expand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}
.db-det-graph-preview:hover .db-det-graph-expand {
  color: var(--white);
}
.db-det-canvas-wrap {
  position: relative;
  height: 160px;
  width: 100%;
}
.db-det-main h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(255,255,255,0.2);
}
.db-det-main p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 1.5rem;
}
.db-det-benefits {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}
.db-det-benefits li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--gray-300);
}
.db-det-benefits li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--gray-500);
}

/* Online Community Opinion Box */
.db-opinion-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.db-opinion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.db-opinion-stars {
  font-size: 0.85rem;
}
.db-opinion-sources {
  font-size: 0.65rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.db-opinion-box p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.7;
  margin: 0 !important;
  font-style: italic;
}

/* Sidebar Info Blocks */
.db-det-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.db-info-block {
  background: rgba(255,255,255,0.02);
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 1rem 1.25rem;
  border-radius: 8px;
}
.db-info-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-500);
  margin-bottom: 0.4rem;
}
.db-info-block p {
  font-size: 0.85rem;
  color: var(--white);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
}

/* Risk Meter */
.db-risk-meter {
  margin-top: 0.5rem;
}
.db-risk-bar-bg {
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}
.db-risk-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s var(--ease-out);
}
.db-risk-bar-fill.risk-low { background: #22c55e; }
.db-risk-bar-fill.risk-moderate { background: #eab308; }
.db-risk-bar-fill.risk-high { background: #ef4444; }
.db-risk-text {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Warnings & Side Effects */
.db-det-warnings {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.db-det-warnings h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(239,68,68,0.4);
}
.db-det-warnings p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.db-side-effects {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 1.5rem;
}
.db-side-effects li {
  font-size: 0.8rem;
  color: var(--gray-400);
  padding-left: 1.2rem;
  position: relative;
}
.db-side-effects li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: rgba(239,68,68,0.5);
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--black);
  color: var(--gray-500);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-brand .logo-mark {
  width: 28px; height: 28px;
  font-size: 0.6rem;
  background: var(--gray-800);
  color: var(--gray-400);
}
.footer-brand .logo-text { font-size: 1.1rem; color: var(--gray-400); }
.footer-brand .logo-text span { color: var(--gray-600); }
.footer-note { font-size: 0.75rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--white); }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { display: none; }
  .hero-visual--mobile { display: block; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .reco-panel { grid-template-columns: repeat(2, 1fr); }
  .safety-grid { grid-template-columns: 1fr; }
  .science-grid { grid-template-columns: 1fr; }
  .db-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4rem 0; }

  #desktopNav { display: none; }
  .hamburger { display: block; }

  .hero-grid { min-height: auto; padding-top: 2rem; }
  .hero-title { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  .hero-stats { gap: 1.5rem; }
  .stat-num { font-size: 1.5rem; }

  .cat-grid { grid-template-columns: 1fr; }
  .reco-panel { grid-template-columns: 1fr; }
  .goal-selector { gap: 0.35rem; }
  .goal-btn { font-size: 0.72rem; padding: 0.5rem 0.9rem; }

  .float-card--1 { right: -5px; top: -5px; }
  .float-card--2 { left: -10px; }
  .float-card--3 { right: 5%; }

  .db-grid { grid-template-columns: 1fr; }
  .db-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; }
  .db-tabs::-webkit-scrollbar { height: 0; }
  .db-det-body { grid-template-columns: 1fr; }
  .db-detail-inner { padding: 1.5rem; width: 95%; }
  .db-det-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .db-det-header h2 { font-size: 1.5rem; }
  .db-side-effects { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; text-align: center; }
  .db-grid { grid-template-columns: 1fr; }
  .db-search-wrap { flex-direction: column; align-items: stretch; }
  .db-detail-inner { padding: 1rem; }
  .db-det-close { position: absolute; top: 1rem; right: 1rem; }
}

/* ====== VIEW TRANSITIONS ====== */
#mainView, #databaseView {
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 1;
}

.view-enter {
  opacity: 0 !important;
  transform: translateY(15px) !important;
}

.view-exit {
  opacity: 0 !important;
  transform: translateY(-15px) !important;
}
