/* === COMPOUND PAGE STYLES === */

/* Compound Hero */
.compound-hero {
  padding: 120px 40px 60px;
  background: linear-gradient(135deg, #050505 0%, #000000 60%, rgba(192, 192, 192, 0.02) 100%);
  border-bottom: 1px solid rgba(192, 192, 192, 0.15);
  position: relative;
  overflow: hidden;
}

/* === MOLECULAR STRUCTURE VISUAL === */
/* Hero layout: text left, molecular diagram right */
.compound-hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.compound-hero-text {
  min-width: 0;
}

.molecular-structure {
  width: 280px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.molecular-structure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 0 12px rgba(192, 192, 192, 0.06));
}

.molecular-structure:hover img {
  opacity: 0.75;
}

.molecular-structure::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, rgba(192, 192, 192, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.molecular-structure-label {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(192, 192, 192, 0.3);
  font-family: var(--font-heading);
}

/* Blend pages: slightly smaller structure */
.blend-hero .molecular-structure {
  width: 320px;
  height: 160px;
}

@media (max-width: 1024px) {
  .compound-hero-inner {
    grid-template-columns: 1fr;
  }
  .molecular-structure {
    width: 100%;
    max-width: 360px;
    height: 180px;
    margin: 0 auto;
    order: -1;
  }
  .blend-hero .molecular-structure {
    width: 100%;
    max-width: 400px;
    height: 140px;
  }
}

@media (max-width: 768px) {
  .molecular-structure {
    height: 140px;
    max-width: 300px;
  }
}

.compound-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(192,192,192,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid overlay */
.compound-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192,192,192,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,192,192,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.compound-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  /* grid layout defined above in molecular structure section */
}

.compound-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.compound-breadcrumb a {
  color: var(--accent);
  font-weight: 500;
}

.compound-breadcrumb a:hover {
  color: var(--accent-bright);
  text-decoration: underline;
}

.compound-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.compound-category-badge.cognitive {
  background: var(--purple-light);
  color: var(--purple);
}

.compound-category-badge.immune {
  background: var(--accent-light);
  color: var(--accent);
}

.compound-category-badge.skin {
  background: var(--amber-light);
  color: var(--amber);
}

.compound-category-badge.metabolic {
  background: var(--blue-light);
  color: var(--blue);
}

.compound-category-badge.recovery {
  background: rgba(217, 119, 6, 0.12);
  color: #f59e0b;
}

.compound-category-badge.gh {
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
}

.compound-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px;
}

.compound-tagline {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.compound-meta-bar {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  padding: 24px 32px;
  background: #111111;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 192, 192, 0.2);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  display: inline-flex;
}

.compound-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-bright);
}

.ruo-badge {
  color: var(--accent) !important;
}

/* === CONTENT LAYOUT === */
.compound-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start;
}

.compound-main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* === SECTION CARDS === */
.compound-section-card {
  background: #111111;
  border: 1px solid rgba(192, 192, 192, 0.15);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.compound-section-card:hover {
  box-shadow: 0 0 24px rgba(192,192,192,0.06), 0 8px 24px rgba(0,0,0,0.5);
  border-color: rgba(192, 192, 192, 0.25);
}

.compound-section-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.compound-section-card h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--accent-bright);
  margin-bottom: 16px;
}

.compound-section-card p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}

.compound-section-card p:last-child {
  margin-bottom: 0;
}

.compound-list {
  margin: 16px 0 0 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compound-list li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  padding-left: 20px;
  position: relative;
}

.compound-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--chrome-gradient);
}

/* === ANALOGY BOX === */
.compound-analogy {
  margin-top: 20px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(192,192,192,0.06), rgba(192,192,192,0.02));
  border-left: 3px solid;
  border-image: var(--chrome-gradient) 1;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.analogy-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 10px;
}

.compound-analogy p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0;
  font-style: italic;
}

/* === FUN FACTS === */
.fun-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 8px;
}

.fun-fact {
  background: #0a0a0a;
  border: 1px solid rgba(192, 192, 192, 0.1);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
}

.fun-fact:hover {
  background: #1a1a1a;
  border-color: rgba(192, 192, 192, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.fun-fact-emoji {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.fun-fact p {
  font-size: 0.88rem !important;
  color: var(--text-secondary) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* === COA PLACEHOLDER === */
.coa-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.coa-doc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #0a0a0a;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192, 192, 192, 0.12);
}

.coa-doc-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.coa-doc-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.coa-doc-status {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.coa-doc-status.pending {
  color: var(--amber);
}

.coa-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap var(--transition);
  margin-top: 8px;
}

.coa-link-btn:hover {
  gap: 10px;
  color: var(--accent-bright);
}

/* === SIDEBAR === */
.compound-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: #111111;
  border: 1px solid rgba(192, 192, 192, 0.15);
  border-radius: var(--radius);
  padding: 28px;
}

.sidebar-card-icon {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 10px;
}

.sidebar-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 16px;
}


.purchase-card {
  border-color: rgba(192, 192, 192, 0.12);
}

.purchase-card .btn-secondary {
  width: 100%;
  justify-content: center;
  font-size: 0.88rem;
  padding: 12px 20px;
  position: relative;
}

.coming-soon-inline {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--amber-light);
  color: var(--amber);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

.ruo-card {
  background: #0d0d0a;
  border-color: rgba(201, 168, 76, 0.25);
}

.ruo-card .ruo-icon {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.ruo-card p {
  font-size: 0.82rem !important;
  color: #908070 !important;
  margin-bottom: 0 !important;
}

.ruo-card strong {
  color: var(--amber);
}

/* === RELATED LINKS === */
.related-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.related-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border: 1px solid rgba(192, 192, 192, 0.12);
}

.related-link:hover {
  color: var(--accent-bright);
  border-color: var(--accent);
  background: rgba(192, 192, 192, 0.05);
}

.related-link::before {
  content: '→';
  font-size: 0.75rem;
  color: var(--accent);
}

/* === RESEARCH LIBRARY FULL PAGE === */
.library-hero {
  padding: 120px 40px 60px;
  background: linear-gradient(135deg, #050505 0%, #000000 60%);
  border-bottom: 1px solid rgba(192, 192, 192, 0.15);
}

.library-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.library-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 16px;
  max-width: 700px;
}

.library-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
  margin-bottom: 32px;
}

/* === FILTER BAR === */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding: 20px 24px;
  background: #111111;
  border-radius: var(--radius);
  border: 1px solid rgba(192, 192, 192, 0.15);
}

.filter-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-right: 4px;
}

.filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid rgba(192, 192, 192, 0.2);
  background: transparent;
  color: var(--text-secondary);
  transition: all var(--transition);
  font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(192, 192, 192, 0.07);
}

.filter-btn[data-filter="all"].active {
  background: var(--chrome-gradient);
  color: #000;
  border-color: transparent;
}

/* === COMPOUND COUNT === */
.compound-count {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-left: auto;
}

/* === LIBRARY GRID === */
.library-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.library-compound-card {
  background: #111111;
  border: 1px solid rgba(192, 192, 192, 0.15);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.library-compound-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(192, 192, 192, 0.08), 0 8px 24px rgba(0,0,0,0.5);
  transform: translateY(-3px);
  background: #1a1a1a;
}

.library-compound-card .compound-tag {
  align-self: flex-start;
  margin-bottom: 16px;
}

.library-compound-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.library-compound-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.card-read-more {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap var(--transition);
  margin-top: auto;
}

.library-compound-card:hover .card-read-more {
  gap: 10px;
  color: var(--accent-bright);
}

/* === COMPOUND TAGS (extended) === */
.compound-tag.cognitive {
  background: var(--purple-light);
  color: var(--purple);
}

.compound-tag.immune {
  background: var(--accent-light);
  color: var(--accent);
}

.compound-tag.skin {
  background: var(--amber-light);
  color: var(--amber);
}

.compound-tag.metabolic {
  background: var(--blue-light);
  color: var(--blue);
}

.compound-tag.mitochondrial {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.compound-tag.longevity {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.compound-tag.recovery {
  background: rgba(217, 119, 6, 0.12);
  color: #d97706;
}

.compound-tag.gh {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

/* === LONGEVITY CATEGORY BADGE === */
.compound-category-badge.longevity {
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
}

.compound-category-badge.mitochondrial {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

/* === BLEND STACK PAGE STYLES === */

/* Blend badge */
.compound-category-badge.blend-badge {
  background: linear-gradient(135deg, rgba(192,192,192,0.18), rgba(192,192,192,0.08));
  color: #e0e0e0;
  border: 1px solid rgba(192,192,192,0.25);
}

/* Badge row for blend pages */
.blend-badge-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Dual compound header */
.blend-dual-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.blend-compound-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #1a1a1a;
  border: 1px solid rgba(192,192,192,0.25);
  border-radius: 12px;
  padding: 14px 22px;
  position: relative;
}

.blend-compound-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(192,192,192,0.04), transparent);
  pointer-events: none;
}

.blend-pill-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.blend-pill-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.3px;
}

.blend-plus-symbol {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}

/* Blend hero additional glow */
.blend-hero::before {
  background: radial-gradient(circle, rgba(192,192,192,0.07) 0%, transparent 70%);
}

/* Compound links inside blend pages */
.blend-compound-links-header {
  display: flex;
  align-items: center;
  gap: 0;
}

.blend-compound-links-header .compound-section-icon {
  margin-bottom: 0;
  margin-right: 0;
}

.blend-compound-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.blend-compound-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #0a0a0a;
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
}

.blend-compound-link-card:hover {
  border-color: var(--accent);
  background: #141414;
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.blend-link-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1a1a1a;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(192,192,192,0.12);
}

.blend-link-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.blend-link-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.blend-link-arrow {
  font-size: 1.1rem;
  color: var(--accent);
  margin-left: auto;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.blend-compound-link-card:hover .blend-link-arrow {
  transform: translateX(4px);
}

/* Biohacking category tag */
.compound-tag.biohacking {
  background: linear-gradient(135deg, rgba(192,192,192,0.15), rgba(192,192,192,0.05));
  color: #d0d0d0;
  border: 1px solid rgba(192,192,192,0.2);
}

/* === RELATED COMPOUNDS CARDS (sidebar) === */
.related-compounds-heading {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(192, 192, 192, 0.1);
}

.related-compound-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-compound-card {
  display: block;
  padding: 12px 14px;
  background: #0d0d0d;
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}

.related-compound-card:hover {
  border-color: rgba(192, 192, 192, 0.35);
  background: #151515;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.related-compound-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.related-compound-name {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-bright);
  letter-spacing: -0.2px;
}

.related-compound-card:hover .related-compound-name {
  color: #fff;
}

.sku-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(192, 192, 192, 0.1);
  color: #c0c0c0;
  border: 1px solid rgba(192, 192, 192, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
}

.related-compound-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
}

.related-compound-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.stack-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(192, 192, 192, 0.07);
  color: #a0a0a0;
  border: 1px solid rgba(192, 192, 192, 0.15);
}

.stack-badge-arrow {
  font-size: 0.7rem;
  color: var(--accent);
}

/* === RELATED BLEND STACKS CARD === */
.related-stacks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-stack-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #0d0d0d;
  border: 1px solid rgba(192, 192, 192, 0.12);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all var(--transition);
}

.related-stack-card:hover {
  border-color: rgba(192, 192, 192, 0.35);
  background: #151515;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.related-stack-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.related-stack-info {
  flex: 1;
  min-width: 0;
}

.related-stack-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 2px;
}

.related-stack-compounds {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.related-stack-arrow {
  font-size: 0.9rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.related-stack-card:hover .related-stack-arrow {
  transform: translateX(2px);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 1024px) {
  .compound-content-layout {
    grid-template-columns: 1fr;
  }

  .compound-sidebar {
    position: static;
  }

  .fun-facts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .library-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .compound-hero {
    padding: 100px 24px 48px;
  }

  .compound-meta-bar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
  }

  .compound-section-card {
    padding: 28px 24px;
  }

  .fun-facts-grid {
    grid-template-columns: 1fr;
  }

  .coa-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .library-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    padding: 16px;
  }

  .compound-count {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .compound-hero h1 {
    letter-spacing: -1px;
  }

  .library-hero {
    padding: 100px 24px 48px;
  }
}

/* ======================================================
   MOLECULAR VISUAL UPGRADE PREVIEW — Ipamorelin page
   ====================================================== */

.mol-preview-section {
  padding: 60px 40px;
  background: #060606;
  border-top: 1px solid rgba(192,192,192,0.1);
  border-bottom: 1px solid rgba(192,192,192,0.1);
}

.mol-preview-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.mol-preview-header {
  text-align: center;
  margin-bottom: 40px;
}

.mol-preview-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.25);
  margin-bottom: 16px;
}

.mol-preview-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 10px;
}

.mol-preview-header > p {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* Tab toggle */
.mol-preview-toggle {
  display: inline-flex;
  gap: 0;
  background: #0d0d0d;
  border: 1px solid rgba(192,192,192,0.2);
  border-radius: 10px;
  padding: 4px;
}

.mol-tab {
  padding: 9px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  white-space: nowrap;
}

.mol-tab.active {
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.5);
}

.mol-tab:hover:not(.active) {
  color: var(--accent-bright);
}

/* Panels */
.mol-panel {
  display: none;
}

.mol-panel.active {
  display: block;
}

.mol-panel-label {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(192,192,192,0.1);
}

.mol-panel-label strong {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.mol-panel-label .mol-option-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}

.mol-option-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.mol-option-badge.b {
  background: rgba(99, 102, 241, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.mol-option-badge.c {
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.25);
}

/* Main display layout — visual left, features right */
.mol-display-b {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 40px;
  align-items: center;
}

/* Option B visual wrapper */
.mol-visual-b {
  background: #0a0a0a;
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mol-visual-b::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.mol-visual-b img {
  width: 100%;
  height: auto;
  max-width: 520px;
  opacity: 1;
  filter: none;
  transition: transform 0.4s ease;
}

.mol-visual-b:hover img {
  transform: scale(1.02);
}

/* === HERO: Option C overrides for molecular-structure container === */
/* When the hero contains an Option C animated visual, expand container to fit */
.molecular-structure:has(.mol-visual-c) {
  width: auto;
  max-width: 520px;
  height: auto;
  flex-shrink: 1;
}
/* Fallback for browsers without :has() — explicit class on parent */
.molecular-structure.mol-c-hero {
  width: auto;
  max-width: 520px;
  height: auto;
  flex-shrink: 1;
}
@media (max-width: 1024px) {
  .molecular-structure:has(.mol-visual-c),
  .molecular-structure.mol-c-hero {
    max-width: 440px;
    height: auto;
  }
}
@media (max-width: 768px) {
  .molecular-structure:has(.mol-visual-c),
  .molecular-structure.mol-c-hero {
    max-width: 340px;
    height: auto;
  }
}

/* Option C visual wrapper */
.mol-visual-c {
  background: #050505;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mol-visual-c::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(34,211,238,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.mol-visual-c object {
  width: 100%;
  max-width: 520px;
  height: auto;
  aspect-ratio: 560/380;
}

.mol-c-hint {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(34, 211, 238, 0.5);
  margin-top: 10px;
}

/* Feature list */
.mol-feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mol-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.mol-feature-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: #111111;
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.mol-feature-icon.c-accent {
  color: #22d3ee;
  background: rgba(34,211,238,0.08);
  border-color: rgba(34,211,238,0.2);
}

.mol-feature strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
}

.mol-feature span {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Side-by-side grid */
.mol-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.mol-compare-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mol-compare-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 6px;
  align-self: flex-start;
}

.mol-compare-tag.b {
  background: rgba(99, 102, 241, 0.12);
  color: #a78bfa;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.mol-compare-tag.c {
  background: rgba(34, 211, 238, 0.08);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

.mol-visual-b-sm {
  background: #0a0a0a;
  border: 1px solid rgba(192,192,192,0.15);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mol-visual-b-sm img {
  width: 100%;
  height: auto;
  opacity: 1;
}

.mol-visual-c-sm {
  background: #050505;
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mol-visual-c-sm object {
  width: 100%;
  height: auto;
  aspect-ratio: 560/380;
}

.mol-compare-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mol-compare-bullets li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.mol-compare-bullets li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: #a78bfa;
  font-weight: 700;
}

.mol-compare-bullets.c-list li::before {
  color: #22d3ee;
}

/* Preview footer */
.mol-preview-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(192,192,192,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mol-preview-footer p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.mol-preview-footer strong {
  color: var(--accent-bright);
}

.mol-feedback-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.1);
  color: #22d3ee;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.mol-feedback-btn:hover {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.5);
  color: #67e8f9;
}

/* Responsive */
@media (max-width: 1024px) {
  .mol-display-b {
    grid-template-columns: 1fr;
  }
  .mol-compare-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .mol-preview-section {
    padding: 48px 24px;
  }
}

@media (max-width: 640px) {
  .mol-preview-toggle {
    flex-direction: column;
    width: 100%;
  }
  .mol-panel-label {
    flex-direction: column;
    align-items: flex-start;
  }
  .mol-preview-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .mol-feedback-btn {
    width: 100%;
    justify-content: center;
  }
}

/* === AXIS DIRECT SUBTLE MENTION === */
/* Replaces the bold purchase-card CTA — muted, below educational content */
.sidebar-card.axis-direct-mention {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(192, 192, 192, 0.08);
}

.axis-direct-subtle {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(192, 192, 192, 0.5);
  line-height: 1.4;
}

.axis-direct-link {
  color: rgba(192, 192, 192, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 500;
}

.axis-direct-link:hover {
  color: rgba(192, 192, 192, 0.9);
  text-decoration: underline;
}
