/* ============================================================
   PEPTIDE DADDY — Premium Design System
   Colors: Amber #D4880F | Ink #0A1628 | Green #2E7D32 | Blue #1565C0
   Background: #FAFAF8 | Font: Inter
   ============================================================ */

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

:root {
  --amber: #D4880F;
  --amber-light: #F0A030;
  --amber-dark: #B87010;
  --amber-subtle: rgba(212,136,15,0.08);
  --ink: #0A1628;
  --ink-muted: rgba(10,22,40,0.65);
  --ink-faint: rgba(10,22,40,0.08);
  --ink-xfaint: rgba(10,22,40,0.04);
  --green: #2E7D32;
  --green-light: #E8F5E9;
  --blue: #1565C0;
  --blue-light: #E3F2FD;
  --bg: #FAFAF8;
  --surface: #F8F6F2;
  --surface-2: #F5F3EF;
  --surface-3: #FAF8F4;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(10,22,40,0.06);
  --shadow-md: 0 10px 30px rgba(10,22,40,0.08), 0 1px 3px rgba(10,22,40,0.06);
  --shadow-lg: 0 10px 30px rgba(10,22,40,0.08), 0 20px 60px rgba(10,22,40,0.12), 0 1px 3px rgba(10,22,40,0.06);
  --shadow-xl: 0 20px 60px rgba(10,22,40,0.12), 0 40px 80px rgba(10,22,40,0.16), 0 1px 3px rgba(10,22,40,0.06);
  --shadow-amber: 0 8px 30px rgba(212,136,15,0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --transition: cubic-bezier(0.4, 0, 0.2, 1) 400ms;
  --transition-fast: cubic-bezier(0.4, 0, 0.2, 1) 200ms;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.08; }
h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.015em; line-height: 1.15; }
h3 { font-size: clamp(22px, 2.5vw, 32px); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 18px; font-weight: 600; line-height: 1.35; }
h5 { font-size: 16px; font-weight: 600; }
p { color: var(--ink-muted); }
a { color: var(--amber); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--amber-dark); }
strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   LOGO
   ============================================================ */
.pd-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pd-logo-mark {
  display: flex; align-items: center; gap: 3px;
  padding: 6px;
}
.hex-node {
  width: 10px; height: 10px;
  background: var(--amber);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.hex-node:nth-child(2) { transform: translateY(-3px); }
.hex-node:nth-child(3) { width: 7px; height: 7px; }
.pd-logo-text { font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.pd-logo-accent { color: var(--amber); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.pd-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(250,250,248,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}
.pd-nav.scrolled {
  border-color: var(--ink-xfaint);
  box-shadow: 0 4px 20px rgba(10,22,40,0.06);
}
.pd-nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  height: 68px;
}
.pd-nav-links { display: flex; align-items: center; gap: 8px; flex: 1; }
.pd-nav-link {
  padding: 8px 14px;
  font-size: 15px; font-weight: 500; color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}
.pd-nav-link:hover, .pd-nav-link.active { color: var(--ink); background: var(--ink-xfaint); }
.pd-nav-actions { display: flex; align-items: center; gap: 10px; }
.pd-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
}
.pd-hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all var(--transition-fast); }
.pd-mobile-menu {
  display: none; flex-direction: column;
  padding: 16px 0 24px; border-top: 1px solid var(--ink-xfaint);
  max-height: 0; overflow: hidden; transition: max-height var(--transition);
}
.pd-mobile-menu.open { max-height: 600px; }
.pd-mobile-link {
  padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-xfaint);
  min-height: 44px; display: flex; align-items: center;
}
.pd-mobile-link:hover { color: var(--ink); }
.pd-mobile-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.pd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 24px;
  font-size: 15px; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
  letter-spacing: -0.01em;
}
.pd-btn-primary {
  background: var(--amber);
  color: white;
  box-shadow: 0 4px 14px rgba(212,136,15,0.3);
}
.pd-btn-primary:hover {
  background: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,136,15,0.4);
  color: white;
}
.pd-btn-primary:active { transform: translateY(0); }
.pd-btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink-faint);
}
.pd-btn-ghost:hover {
  background: var(--ink-xfaint);
  color: var(--ink);
  border-color: rgba(10,22,40,0.12);
}
.pd-btn-outline-amber {
  background: transparent;
  color: var(--amber);
  border: 1.5px solid var(--amber);
}
.pd-btn-outline-amber:hover {
  background: var(--amber);
  color: white;
}
.pd-btn-lg { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); }
.pd-btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============================================================
   CARDS — 3D Floating System
   ============================================================ */
.pd-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}
.pd-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}
.pd-card-surface {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pd-card-surface:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.pd-badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em;
  border-radius: 100px;
  text-transform: uppercase;
}
.pd-badge-green { background: var(--green-light); color: var(--green); }
.pd-badge-blue { background: var(--blue-light); color: var(--blue); }
.pd-badge-amber { background: rgba(212,136,15,0.1); color: var(--amber-dark); }
.pd-badge-ink { background: var(--ink-xfaint); color: var(--ink-muted); }
.pd-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px;
  font-size: 13px; font-weight: 500;
  border-radius: 100px;
  border: 1px solid;
}
.pd-chip-green { background: var(--green-light); color: var(--green); border-color: rgba(46,125,50,0.2); }
.pd-chip-blue { background: var(--blue-light); color: var(--blue); border-color: rgba(21,101,192,0.2); }
.pd-chip-amber { background: rgba(212,136,15,0.08); color: var(--amber-dark); border-color: rgba(212,136,15,0.2); }
.pd-chip-gray { background: var(--surface); color: var(--ink-muted); border-color: var(--ink-faint); }

/* Evidence strength */
.evidence-high { background: var(--green-light); color: var(--green); }
.evidence-moderate { background: var(--blue-light); color: var(--blue); }
.evidence-preliminary { background: rgba(212,136,15,0.1); color: var(--amber-dark); }
.evidence-emerging { background: var(--surface-2); color: var(--ink-muted); }

/* ============================================================
   SECTIONS & LAYOUT
   ============================================================ */
.pd-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.pd-section { padding: 100px 0; }
.pd-section-sm { padding: 64px 0; }
.pd-section-lg { padding: 140px 0; }
.section-label {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.section-title { color: var(--ink); margin-bottom: 20px; }
.section-subtitle { font-size: 18px; color: var(--ink-muted); max-width: 600px; line-height: 1.65; }

/* ============================================================
   LANDING PAGE HERO
   ============================================================ */
.pd-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 50%, var(--surface-2) 100%);
}
.pd-hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 70% 40%, rgba(212,136,15,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(21,101,192,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.pd-hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.pd-hero-content { position: relative; z-index: 2; }
.pd-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--ink-xfaint);
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.pd-hero-eyebrow-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); animation: pulse-amber 2s infinite; }
@keyframes pulse-amber {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.pd-hero-title { color: var(--ink); margin-bottom: 24px; }
.pd-hero-title .highlight {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pd-hero-sub {
  font-size: 19px; color: var(--ink-muted);
  line-height: 1.65; margin-bottom: 40px;
  max-width: 520px;
}
.pd-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.pd-trust-strip {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.pd-trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
}
.pd-trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

/* Hero visual side */
.pd-hero-visual { position: relative; }
.pd-hero-card-stack { position: relative; height: 520px; }
.pd-hero-card-main {
  position: absolute; top: 40px; left: 20px; right: 20px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-xl);
  padding: 32px; overflow: hidden;
}
.pd-hero-card-back1 {
  position: absolute; top: 20px; left: 30px; right: 10px;
  height: 100px; border-radius: var(--radius-2xl);
  background: var(--surface); border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md); z-index: -1;
}
.pd-hero-card-back2 {
  position: absolute; top: 10px; left: 40px; right: 0px;
  height: 80px; border-radius: var(--radius-2xl);
  background: var(--surface-2); border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-sm); z-index: -2;
}
.pd-compound-preview { margin-top: 20px; }
.pd-compound-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--ink-xfaint);
}
.pd-compound-row:last-child { border-bottom: none; }
.pd-compound-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.pd-compound-cat { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }
.pd-ai-response {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-lg); padding: 16px;
  margin-top: 16px;
}
.pd-ai-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }
.pd-ai-text { font-size: 14px; color: var(--ink-muted); line-height: 1.6; }
.pd-typing-cursor {
  display: inline-block; width: 2px; height: 14px;
  background: var(--amber); margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   LANDING PAGE SECTIONS
   ============================================================ */

/* Problem section */
.pd-problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }

/* Numbered feature cards */
.pd-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.pd-feature-card {
  padding: 36px 32px;
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pd-feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pd-feature-num {
  font-size: 60px; font-weight: 800; letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--amber) 0%, rgba(212,136,15,0.3) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1; margin-bottom: 20px;
}
.pd-feature-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.pd-feature-desc { font-size: 15px; color: var(--ink-muted); line-height: 1.65; }

/* Categories grid */
.pd-categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; }
.pd-category-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl); aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-md);
}
.pd-category-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-xl); }
.pd-category-bg {
  position: absolute; inset: 0;
  transition: transform var(--transition);
}
.pd-category-card:hover .pd-category-bg { transform: scale(1.05); }
.pd-category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.8) 0%, rgba(10,22,40,0.2) 60%, transparent 100%);
}
.pd-category-content { position: relative; z-index: 2; }
.pd-category-label { font-size: 13px; font-weight: 700; color: white; letter-spacing: 0.03em; }
.pd-category-count { font-size: 12px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* How it works */
.pd-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.pd-step { text-align: center; }
.pd-step-num {
  font-size: 120px; font-weight: 800; letter-spacing: -0.05em;
  color: var(--amber); opacity: 0.15;
  line-height: 1; margin-bottom: -20px;
}
.pd-step-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.pd-step-desc { font-size: 15px; color: var(--ink-muted); line-height: 1.65; }

/* Pricing */
.pd-pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; }
.pd-pricing-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.pd-pricing-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.pd-pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 10px 40px rgba(212,136,15,0.15), var(--shadow-lg);
}
.pd-pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: 0; right: 0;
  background: var(--amber); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 0 var(--radius-2xl) 0 var(--radius-md);
}
.pd-pricing-name { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); margin-bottom: 12px; }
.pd-pricing-price { font-size: 52px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.pd-pricing-period { font-size: 15px; font-weight: 400; color: var(--ink-muted); }
.pd-pricing-desc { font-size: 15px; color: var(--ink-muted); margin: 16px 0 28px; }
.pd-pricing-features { list-style: none; margin-bottom: 32px; }
.pd-pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  font-size: 15px; color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-xfaint);
}
.pd-pricing-features li:last-child { border-bottom: none; }
.pd-pricing-check { color: var(--green); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.pd-pricing-x { color: #C62828; font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* FAQ */
.pd-faq-list { max-width: 780px; margin: 60px auto 0; }
.pd-faq-item {
  border-bottom: 1px solid var(--ink-xfaint);
  overflow: hidden;
}
.pd-faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; background: none; border: none; cursor: pointer;
  text-align: left; font-family: inherit;
  font-size: 17px; font-weight: 600; color: var(--ink);
  min-height: 44px;
  gap: 20px;
}
.pd-faq-question:hover { color: var(--amber); }
.pd-faq-chevron {
  width: 24px; height: 24px; flex-shrink: 0;
  border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-muted);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.pd-faq-item.open .pd-faq-chevron { transform: rotate(180deg); background: var(--amber); color: white; }
.pd-faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}
.pd-faq-item.open .pd-faq-answer { max-height: 300px; }
.pd-faq-answer-inner { padding: 0 0 24px; font-size: 16px; color: var(--ink-muted); line-height: 1.7; }

/* Trust section */
.pd-trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.pd-trust-card {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
}
.pd-trust-num { font-size: 48px; font-weight: 800; color: var(--green); letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }

/* Waitlist */
.pd-waitlist-form { display: flex; gap: 12px; max-width: 480px; }
.pd-input {
  flex: 1; padding: 13px 18px;
  font-family: inherit; font-size: 15px;
  background: var(--white);
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}
.pd-input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(212,136,15,0.1);
}
.pd-input::placeholder { color: var(--ink-muted); }
.pd-select {
  padding: 13px 18px;
  font-family: inherit; font-size: 15px;
  background: var(--white);
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%230A1628' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 40px; cursor: pointer;
}
.pd-select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,136,15,0.1); }
.pd-textarea {
  padding: 13px 18px;
  font-family: inherit; font-size: 15px;
  background: var(--white);
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius-md);
  color: var(--ink);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  resize: vertical; min-height: 120px; width: 100%;
}
.pd-textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,136,15,0.1); }

/* ============================================================
   COMPOUND LIBRARY
   ============================================================ */
.pd-library-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 32px; align-items: start;
}
.pd-filter-sidebar {
  position: sticky; top: 88px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 28px; overflow: hidden;
}
.pd-filter-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
.pd-filter-list { display: flex; flex-direction: column; gap: 4px; }
.pd-filter-btn {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  text-align: left; min-height: 44px;
  width: 100%;
}
.pd-filter-btn:hover { background: var(--surface); color: var(--ink); }
.pd-filter-btn.active { background: var(--amber-subtle); color: var(--amber-dark); font-weight: 600; }
.pd-filter-count {
  font-size: 11px; font-weight: 700;
  background: var(--surface); color: var(--ink-muted);
  padding: 2px 7px; border-radius: 100px;
}
.pd-filter-btn.active .pd-filter-count { background: rgba(212,136,15,0.15); color: var(--amber-dark); }
.pd-search-wrapper { position: relative; margin-bottom: 24px; }
.pd-search-input {
  width: 100%; padding: 12px 16px 12px 44px;
  font-family: inherit; font-size: 15px;
  background: var(--surface); border: 1.5px solid transparent;
  border-radius: var(--radius-lg); color: var(--ink);
  transition: all var(--transition-fast); min-height: 44px;
}
.pd-search-input:focus { outline: none; background: var(--white); border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,136,15,0.1); }
.pd-search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--ink-muted); font-size: 16px; pointer-events: none;
}
.pd-compounds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pd-compound-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.pd-compound-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); color: inherit; }
.pd-compound-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.pd-compound-card-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.pd-compound-card-skus { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.pd-compound-card-brief { font-size: 14px; color: var(--ink-muted); line-height: 1.6; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-compound-card-footer { display: flex; align-items: center; justify-content: space-between; }
.pd-deep-dive-btn {
  font-size: 13px; font-weight: 600; color: var(--amber);
  background: rgba(212,136,15,0.08); border: none;
  padding: 8px 16px; border-radius: var(--radius-sm);
  cursor: pointer; transition: all var(--transition-fast);
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px;
}
.pd-deep-dive-btn:hover { background: var(--amber); color: white; }

/* ============================================================
   COMPOUND DETAIL PAGE
   ============================================================ */
.pd-detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.pd-detail-toc {
  position: sticky; top: 88px;
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.pd-toc-title { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }
.pd-toc-list { list-style: none; }
.pd-toc-link {
  display: block; padding: 8px 12px;
  font-size: 13px; font-weight: 500; color: var(--ink-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast); min-height: 36px;
}
.pd-toc-link:hover, .pd-toc-link.active { color: var(--amber); background: var(--amber-subtle); }
.pd-detail-section {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 40px; margin-bottom: 20px;
}
.pd-detail-section-title { font-size: 15px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--amber); margin-bottom: 20px; }
.pd-data-table { width: 100%; border-collapse: collapse; }
.pd-data-table th { text-align: left; padding: 12px 16px; background: var(--surface); font-size: 13px; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--ink-xfaint); }
.pd-data-table td { padding: 14px 16px; font-size: 15px; color: var(--ink-muted); border-bottom: 1px solid var(--ink-xfaint); vertical-align: top; }
.pd-data-table tr:last-child td { border-bottom: none; }
.pd-disclaimer-box {
  background: rgba(212,136,15,0.06);
  border: 1px solid rgba(212,136,15,0.2);
  border-radius: var(--radius-lg);
  padding: 20px 24px; margin-top: 24px;
  font-size: 14px; color: var(--ink-muted); line-height: 1.65;
}
.pd-disclaimer-box strong { color: var(--amber-dark); }

/* ============================================================
   GLOSSARY
   ============================================================ */
.pd-glossary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin-top: 40px; }
.pd-glossary-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.pd-glossary-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pd-glossary-term { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pd-glossary-def { font-size: 14px; color: var(--ink-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pd-glossary-related { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

/* ============================================================
   APP DASHBOARD (Main Research Interface)
   ============================================================ */
.pd-app-layout {
  display: grid;
  grid-template-columns: 260px 1fr 300px;
  height: 100vh; overflow: hidden;
  background: var(--bg);
}
.pd-sidebar {
  background: var(--white);
  border-right: 1px solid var(--ink-xfaint);
  display: flex; flex-direction: column;
  overflow: hidden; height: 100vh;
}
.pd-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--ink-xfaint);
  flex-shrink: 0;
}
.pd-sidebar-section { padding: 16px 12px 8px; }
.pd-sidebar-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-muted);
  padding: 0 8px; margin-bottom: 8px;
}
.pd-sidebar-scroll { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.pd-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 500; color: var(--ink-muted);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
  min-height: 44px;
}
.pd-sidebar-link:hover { color: var(--ink); background: var(--surface); }
.pd-sidebar-link.active { color: var(--amber-dark); background: var(--amber-subtle); font-weight: 600; }
.pd-sidebar-conv-title { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-new-chat-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 11px 16px;
  background: var(--amber);
  color: white; font-size: 14px; font-weight: 600; font-family: inherit;
  border: none; border-radius: var(--radius-md); cursor: pointer;
  transition: all var(--transition-fast); min-height: 44px;
}
.pd-new-chat-btn:hover { background: var(--amber-dark); }

/* Chat area */
.pd-chat-area {
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  position: relative;
}
.pd-chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--ink-xfaint);
  background: var(--white);
  display: flex; align-items: center; gap: 16px; flex-shrink: 0;
}
.pd-chat-messages {
  flex: 1; overflow-y: auto;
  padding: 32px 24px;
  display: flex; flex-direction: column; gap: 20px;
}
.pd-message { display: flex; gap: 14px; }
.pd-message.user { flex-direction: row-reverse; }
.pd-message-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; flex-shrink: 0;
}
.pd-message-avatar.ai { background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%); color: white; }
.pd-message-avatar.user { background: var(--ink); color: white; }
.pd-message-bubble {
  max-width: 72%;
  border-radius: var(--radius-xl);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  line-height: 1.65;
}
.pd-message.user .pd-message-bubble {
  background: var(--ink);
  color: rgba(255,255,255,0.9);
  border-bottom-right-radius: 6px;
  font-size: 15px;
}
.pd-message.ai .pd-message-bubble {
  background: var(--white);
  border: 1px solid var(--ink-xfaint);
  border-bottom-left-radius: 6px;
  font-size: 15px; color: var(--ink);
}
.pd-message-disclaimer {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(212,136,15,0.05);
  border: 1px solid rgba(212,136,15,0.15);
  border-radius: var(--radius-md);
  font-size: 12px; color: var(--ink-muted);
  font-style: italic;
}
.pd-message-actions { display: flex; gap: 8px; margin-top: 10px; }
.pd-msg-action-btn {
  font-size: 12px; color: var(--ink-muted);
  background: none; border: none; cursor: pointer;
  padding: 4px 10px; border-radius: 100px;
  transition: all var(--transition-fast); min-height: 28px;
}
.pd-msg-action-btn:hover { background: var(--surface); color: var(--ink); }

/* Chat input */
.pd-chat-input-area {
  padding: 16px 24px 20px;
  background: var(--white);
  border-top: 1px solid var(--ink-xfaint);
  flex-shrink: 0;
}
.pd-command-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.pd-cmd {
  font-size: 12px; font-weight: 600; color: var(--ink-muted);
  background: var(--surface); border: 1px solid var(--ink-faint);
  padding: 5px 12px; border-radius: 100px; cursor: pointer;
  transition: all var(--transition-fast); font-family: monospace;
  min-height: 28px; display: flex; align-items: center;
}
.pd-cmd:hover { background: var(--amber-subtle); color: var(--amber-dark); border-color: rgba(212,136,15,0.2); }
.pd-input-wrapper {
  display: flex; gap: 10px; align-items: flex-end;
}
.pd-chat-textarea {
  flex: 1; padding: 14px 18px;
  font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface);
  border: 1.5px solid transparent;
  border-radius: var(--radius-lg); resize: none;
  min-height: 52px; max-height: 200px;
  line-height: 1.5;
  transition: all var(--transition-fast);
}
.pd-chat-textarea:focus { outline: none; background: var(--white); border-color: var(--amber); box-shadow: 0 0 0 3px rgba(212,136,15,0.1); }
.pd-chat-send {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  background: var(--amber); color: white;
  border: none; cursor: pointer; font-size: 18px;
  transition: all var(--transition-fast); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}
.pd-chat-send:hover { background: var(--amber-dark); transform: scale(1.05); }
.pd-chat-hint { font-size: 12px; color: var(--ink-muted); text-align: center; margin-top: 10px; }

/* Context panel */
.pd-context-panel {
  background: var(--surface);
  border-left: 1px solid var(--ink-xfaint);
  overflow-y: auto;
  height: 100vh; padding: 24px 20px;
}
.pd-context-section { margin-bottom: 28px; }
.pd-context-title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px;
}
.pd-context-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}
.pd-context-text { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }

/* ============================================================
   SETUP SCREEN
   ============================================================ */
.pd-setup-bg {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 60%, var(--surface-2) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 40px;
  position: relative; overflow: hidden;
}
.pd-setup-bg::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 900px 700px at 50% 50%, rgba(212,136,15,0.06) 0%, transparent 70%);
}
.pd-setup-card {
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-xl);
  padding: 56px 52px;
  max-width: 580px; width: 100%;
  position: relative; z-index: 2;
}
.pd-setup-header { text-align: center; margin-bottom: 40px; }
.pd-form-group { margin-bottom: 24px; }
.pd-form-label {
  display: block; font-size: 14px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.pd-form-helper { font-size: 13px; color: var(--ink-muted); margin-top: 6px; line-height: 1.5; }
.pd-char-count { font-size: 12px; color: var(--ink-muted); text-align: right; margin-top: 6px; }
.pd-check-group { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.pd-checkbox-item { display: flex; align-items: flex-start; gap: 12px; }
.pd-checkbox {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
  accent-color: var(--amber); cursor: pointer;
}
.pd-checkbox-label { font-size: 14px; color: var(--ink-muted); line-height: 1.5; cursor: pointer; }
.pd-checkbox-label a { color: var(--amber); }
.pd-setup-actions { display: flex; flex-direction: column; gap: 10px; }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.pd-auth-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 100px 24px 40px;
  position: relative; overflow: hidden;
}
.pd-auth-page::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 600px at 50% 40%, rgba(212,136,15,0.05) 0%, transparent 70%);
}
.pd-auth-card {
  background: var(--white);
  border-radius: 28px;
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-xl);
  padding: 52px 48px;
  max-width: 480px; width: 100%;
  position: relative; z-index: 2;
}
.pd-auth-header { text-align: center; margin-bottom: 36px; }
.pd-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0;
}
.pd-divider::before, .pd-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ink-xfaint);
}
.pd-divider span { font-size: 13px; color: var(--ink-muted); font-weight: 500; white-space: nowrap; }
.pd-social-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px; background: var(--white);
  border: 1.5px solid var(--ink-faint);
  border-radius: var(--radius-md); cursor: pointer; font-family: inherit;
  font-size: 15px; font-weight: 600; color: var(--ink);
  transition: all var(--transition-fast); min-height: 44px;
  margin-bottom: 10px;
}
.pd-social-btn:hover { background: var(--surface); border-color: rgba(10,22,40,0.15); }
.pd-google-g {
  width: 20px; height: 20px;
  background: linear-gradient(135deg, #4285F4 25%, #EA4335 25%, #EA4335 50%, #FBBC04 50%, #FBBC04 75%, #34A853 75%);
  border-radius: 50%; display: inline-block; flex-shrink: 0;
}

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.pd-admin-layout { display: flex; min-height: 100vh; }
.pd-admin-sidebar {
  width: 240px; background: var(--ink); color: white;
  padding: 24px 16px; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.pd-admin-logo { color: white; margin-bottom: 32px; padding: 0 8px; }
.pd-admin-logo .pd-logo-text { color: white; }
.pd-admin-nav { flex: 1; }
.pd-admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px;
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.65);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast); text-decoration: none;
  min-height: 44px;
}
.pd-admin-nav-link:hover { color: white; background: rgba(255,255,255,0.1); }
.pd-admin-nav-link.active { color: white; background: var(--amber); }
.pd-admin-main { flex: 1; padding: 40px; overflow-y: auto; }
.pd-admin-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 28px; margin-bottom: 20px;
}
.pd-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.pd-stat-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-md);
  padding: 24px;
}
.pd-stat-val { font-size: 36px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.pd-stat-label { font-size: 13px; color: var(--ink-muted); font-weight: 500; margin-top: 4px; }
.pd-stat-delta { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 6px; }

/* ============================================================
   LEGAL / CONTENT PAGES
   ============================================================ */
.pd-legal-content {
  max-width: 780px; margin: 0 auto;
  padding: 100px 24px 80px;
}
.pd-legal-content h1 { margin-bottom: 16px; }
.pd-legal-content .meta { font-size: 14px; color: var(--ink-muted); margin-bottom: 48px; }
.pd-legal-content h2 { font-size: 22px; margin: 40px 0 16px; }
.pd-legal-content h3 { font-size: 18px; margin: 28px 0 12px; }
.pd-legal-content p { margin-bottom: 16px; font-size: 16px; line-height: 1.7; }
.pd-legal-content ul, .pd-legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.pd-legal-content li { margin-bottom: 8px; font-size: 16px; line-height: 1.65; color: var(--ink-muted); }
.pd-warning-box {
  background: rgba(212,136,15,0.06);
  border: 2px solid rgba(212,136,15,0.3);
  border-radius: var(--radius-xl);
  padding: 28px 32px; margin: 32px 0;
}
.pd-warning-box strong { color: var(--amber-dark); display: block; font-size: 15px; font-weight: 700; margin-bottom: 8px; }

/* ============================================================
   RECONSTITUTION CALCULATOR
   ============================================================ */
.pd-calc-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-xl);
  padding: 48px; max-width: 600px; margin: 0 auto;
}
.pd-calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.pd-calc-result {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border-radius: var(--radius-xl); padding: 28px;
  text-align: center; margin-top: 24px;
}
.pd-calc-result-val { font-size: 52px; font-weight: 800; color: var(--amber); letter-spacing: -0.03em; }
.pd-calc-result-unit { font-size: 18px; color: var(--ink-muted); margin-top: 4px; }

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.pd-compare-table { width: 100%; border-collapse: collapse; }
.pd-compare-table th {
  background: var(--surface);
  padding: 16px 20px;
  font-size: 14px; font-weight: 700;
  color: var(--ink); text-align: left;
  border-bottom: 2px solid var(--ink-xfaint);
  position: sticky; top: 0;
}
.pd-compare-table th.compound-col {
  background: linear-gradient(135deg, var(--amber-subtle) 0%, rgba(212,136,15,0.05) 100%);
  color: var(--amber-dark);
}
.pd-compare-table td {
  padding: 16px 20px;
  font-size: 14px; color: var(--ink-muted);
  border-bottom: 1px solid var(--ink-xfaint);
  vertical-align: top; line-height: 1.6;
}
.pd-compare-table tr:last-child td { border-bottom: none; }
.pd-compare-table tr:hover td { background: var(--surface); }
.pd-compare-table td.row-label { font-weight: 600; color: var(--ink); font-size: 13px; white-space: nowrap; }

/* ============================================================
   FOOTER
   ============================================================ */
.pd-footer {
  background: var(--ink);
  padding: 72px 0 0;
  margin-top: 0;
}
.pd-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 80px; padding-bottom: 60px;
}
.pd-footer .pd-logo-text { color: white; }
.pd-footer .pd-logo-accent { color: var(--amber); }
.pd-footer-tagline { font-size: 15px; color: rgba(255,255,255,0.5); margin: 16px 0 20px; max-width: 300px; line-height: 1.6; }
.pd-footer-links {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pd-footer-col h4 { color: rgba(255,255,255,0.4); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.pd-footer-col a {
  display: block; color: rgba(255,255,255,0.65);
  font-size: 15px; margin-bottom: 12px;
  transition: color var(--transition-fast); text-decoration: none;
}
.pd-footer-col a:hover { color: white; }
.pd-footer-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 24px;
  max-width: 1280px; margin: 0 auto;
}
.pd-footer-disclaimer p { font-size: 12px; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 900px; }
.pd-footer-copy { margin-top: 16px !important; font-size: 13px; color: rgba(255,255,255,0.3); }

/* ============================================================
   MODAL
   ============================================================ */
.pd-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition-fast);
}
.pd-modal-overlay.open { opacity: 1; pointer-events: all; }
.pd-modal {
  background: var(--white);
  border-radius: 24px;
  border: 1px solid var(--ink-xfaint);
  box-shadow: var(--shadow-xl);
  padding: 48px 44px;
  max-width: 500px; width: 100%;
  transform: translateY(20px) scale(0.98);
  transition: transform var(--transition);
  position: relative;
}
.pd-modal-overlay.open .pd-modal { transform: translateY(0) scale(1); }
.pd-modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); border: none; cursor: pointer;
  font-size: 18px; color: var(--ink-muted);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition-fast);
}
.pd-modal-close:hover { background: var(--ink); color: white; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.pd-cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  max-width: 680px; margin: 0 auto;
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  display: flex; align-items: center; gap: 20px;
  z-index: 1500;
  box-shadow: var(--shadow-xl);
}
.pd-cookie-inner {
  display: flex; align-items: center; gap: 20px; width: 100%; flex-wrap: wrap;
}
.pd-cookie-banner p { font-size: 14px; color: rgba(255,255,255,0.7); flex: 1; min-width: 200px; margin: 0; }
.pd-cookie-banner a { color: var(--amber); }
.pd-cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ============================================================
   AGE GATE
   ============================================================ */
.pd-age-gate {
  position: fixed; inset: 0;
  background: rgba(10,22,40,0.95);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.pd-age-gate-card {
  background: var(--white);
  border-radius: 28px;
  padding: 56px 52px;
  max-width: 500px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-xl);
}
.pd-age-num {
  font-size: 100px; font-weight: 800; color: var(--amber); opacity: 0.15;
  line-height: 1; margin-bottom: -20px;
}
.pd-age-gate-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 32px; }

/* ============================================================
   MISC
   ============================================================ */
.pd-page-header {
  padding: 120px 0 60px;
  text-align: center;
  background: linear-gradient(to bottom, var(--surface) 0%, var(--bg) 100%);
}
.pd-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--ink-muted); margin-bottom: 20px; justify-content: center;
}
.pd-breadcrumb a { color: var(--amber); }

/* 404 */
.pd-404 { text-align: center; padding: 160px 24px; }
.pd-404-num {
  font-size: 160px; font-weight: 800; color: var(--amber); opacity: 0.12;
  line-height: 1; letter-spacing: -0.05em;
}
.pd-404-title { font-size: 32px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.pd-404-desc { font-size: 18px; color: var(--ink-muted); margin-bottom: 32px; }

/* Tabs */
.pd-tabs { display: flex; gap: 4px; background: var(--surface); border-radius: var(--radius-md); padding: 4px; margin-bottom: 28px; }
.pd-tab {
  flex: 1; padding: 10px 16px; background: none; border: none;
  font-family: inherit; font-size: 14px; font-weight: 500; color: var(--ink-muted);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition-fast); min-height: 40px;
}
.pd-tab.active { background: var(--white); color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.pd-tab:hover:not(.active) { color: var(--ink); }

/* Progress bar */
.pd-progress { height: 4px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.pd-progress-bar { height: 100%; background: linear-gradient(90deg, var(--amber) 0%, var(--amber-light) 100%); border-radius: 100px; transition: width 0.5s ease; }

/* Animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.animate-fade-up { animation: fadeInUp 0.6s ease forwards; }
.animate-fade { animation: fadeIn 0.4s ease forwards; }
.pd-skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .pd-categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .pd-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .pd-hero-visual { display: none; }
  .pd-problem-grid, .pd-features-grid, .pd-steps-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .pd-library-layout { grid-template-columns: 1fr; }
  .pd-filter-sidebar { position: static; }
  .pd-detail-layout { grid-template-columns: 1fr; }
  .pd-detail-toc { position: static; }
  .pd-app-layout { grid-template-columns: 220px 1fr; }
  .pd-context-panel { display: none; }
  .pd-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-footer-inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  .pd-nav-links, .pd-nav-actions { display: none; }
  .pd-hamburger { display: flex; }
  .pd-mobile-menu { display: flex; }
  .pd-problem-grid, .pd-features-grid, .pd-steps-grid,
  .pd-trust-grid, .pd-categories-grid { grid-template-columns: 1fr; }
  .pd-footer-links { grid-template-columns: 1fr; gap: 20px; }
  .pd-app-layout { grid-template-columns: 1fr; }
  .pd-sidebar { display: none; }
  .pd-chat-area { height: 100dvh; }
  .pd-auth-card, .pd-setup-card { padding: 36px 28px; }
  .pd-admin-layout { flex-direction: column; }
  .pd-admin-sidebar { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .pd-setup-card { padding: 36px 24px; }
  .pd-calc-inputs { grid-template-columns: 1fr; }
  .pd-waitlist-form { flex-direction: column; }
  .pd-hero-ctas { flex-direction: column; }
  .pd-section { padding: 64px 0; }
  .pd-section-lg { padding: 80px 0; }
}
@media (max-width: 480px) {
  .pd-glossary-grid { grid-template-columns: 1fr; }
  .pd-compounds-grid { grid-template-columns: 1fr; }
  .pd-pricing-grid { padding: 0; }
  .pd-hero { padding-top: 100px; }
}

/* Print */
@media print {
  .pd-nav, .pd-footer, .pd-cookie-banner, .pd-sidebar, .pd-context-panel { display: none !important; }
  .pd-detail-layout { grid-template-columns: 1fr; }
}
