/* ===== PepsReview Design System — PeptidePortal.org match ===== */

/* ---------- Theme Variables ---------- */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --primary: #171717;
  --primary-foreground: #fafafa;
  --secondary: #f5f5f5;
  --secondary-foreground: #171717;
  --muted: #f5f5f5;
  --muted-foreground: #5d5d5d;
  --accent: #f5f5f5;
  --accent-foreground: #171717;
  --destructive: #e40014;
  --border: #cecece;
  --input: #cecece;
  --ring: #a1a1a1;
  --radius: 0.625rem;
  --radius-sm: 4px;
  --radius-card: 0.625rem;
  --header-height: 57px;
  --max-width: 1200px;

  /* Semantic aliases for convenience */
  --bg: var(--background);
  --bg-card: var(--card);
  --bg-soft: var(--secondary);
  --bg-hover: var(--secondary);
  --text: var(--foreground);
  --text-soft: #404040;
  --text-muted: var(--muted-foreground);

  /* Tier colors (badges) */
  --tier-a-bg: #dcfce7;
  --tier-a-fg: #15803d;
  --tier-b-bg: #fef9c3;
  --tier-b-fg: #a16207;
  --tier-c-bg: #fee2e2;
  --tier-c-fg: #b91c1c;

  /* Status colors */
  --green: #16a34a;
  --green-bg: #dcfce7;
  --green-fg: #15803d;
  --yellow: #ca8a04;
  --yellow-bg: #fef9c3;
  --yellow-fg: #a16207;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --red-fg: #b91c1c;
  --blue: #2563eb;
  --blue-bg: #dbeafe;
  --blue-fg: #1d4ed8;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
}

[data-theme="dark"] {
  --background: #0a0a0a;
  --foreground: #fafafa;
  --card: #171717;
  --card-foreground: #fafafa;
  --primary: #e5e5e5;
  --primary-foreground: #171717;
  --secondary: #262626;
  --secondary-foreground: #fafafa;
  --muted: #262626;
  --muted-foreground: #a1a1a1;
  --accent: #262626;
  --accent-foreground: #fafafa;
  --border: rgba(255,255,255,0.1);
  --input: rgba(255,255,255,0.15);
  --ring: #737373;

  --tier-a-bg: rgba(22,163,74,0.18);
  --tier-a-fg: #4ade80;
  --tier-b-bg: rgba(202,138,4,0.18);
  --tier-b-fg: #facc15;
  --tier-c-bg: rgba(220,38,38,0.18);
  --tier-c-fg: #f87171;

  --green-bg: rgba(22,163,74,0.18);
  --green-fg: #4ade80;
  --yellow-bg: rgba(202,138,4,0.18);
  --yellow-fg: #facc15;
  --red-bg: rgba(220,38,38,0.18);
  --red-fg: #f87171;
  --blue-bg: rgba(37,99,235,0.18);
  --blue-fg: #60a5fa;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  min-height: 100vh;
  transition: background 0.2s, color 0.2s;
}
.mono { font-family: 'JetBrains Mono', 'SF Mono', ui-monospace, monospace; }
.serif { font-family: 'Newsreader', Georgia, serif; }
.tabular { font-variant-numeric: tabular-nums; }

a { color: var(--foreground); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

img { max-width: 100%; display: block; }
svg { display: inline-block; vertical-align: middle; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.75rem; } }
.main-content {
  min-height: calc(100vh - var(--header-height) - 80px);
  padding: 2rem 0 4rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
@media (min-width: 640px) { .header-inner { padding: 0.75rem 1.75rem; } }

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { width: 22px; height: 22px; flex-shrink: 0; }
.logo .slash { color: var(--muted-foreground); }
.logo .rev { color: var(--foreground); }

.main-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
}
@media (min-width: 768px) { .main-nav { display: flex; } }
.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.15s, background 0.15s;
}
.nav-link:hover { color: var(--foreground); background: var(--secondary); text-decoration: none; }
.nav-link.active { color: var(--foreground); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* ---------- Mobile nav toggle ---------- */
.mobile-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
}
@media (min-width: 768px) { .mobile-nav-btn { display: none; } }
.mobile-nav-menu {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  padding: 0.5rem 1rem;
}
.mobile-nav-menu.open { display: block; }
@media (min-width: 768px) { .mobile-nav-menu { display: none !important; } }
.mobile-nav-menu a {
  display: block;
  padding: 10px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
}
.mobile-nav-menu a:last-child { border-bottom: none; }
.mobile-nav-menu a:hover { color: var(--foreground); text-decoration: none; }

/* ---------- Search ---------- */
.search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-foreground);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.search-input {
  width: 200px;
  padding: 6px 12px 6px 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.search-input:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 2px var(--ring);
}
.search-input::placeholder { color: var(--muted-foreground); }
@media (max-width: 640px) { .search-input { width: 140px; } }

/* ---------- Language Switcher ---------- */
.lang-dropdown { position: relative; }
.lang-btn {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  cursor: pointer;
  color: var(--foreground);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  transition: border-color 0.15s;
}
.lang-btn:hover { border-color: var(--foreground); }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 160px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  display: none;
  z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--foreground);
}
.lang-menu a:hover { background: var(--secondary); text-decoration: none; }
.lang-menu a.current { font-weight: 600; color: var(--foreground); }
.lang-code-badge {
  display: inline-flex;
  width: 20px; height: 14px;
  align-items: center; justify-content: center;
  border-radius: 2px;
  background: var(--secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted-foreground);
  text-transform: uppercase;
}

/* ---------- Dark Mode Toggle ---------- */
.theme-toggle {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  transition: border-color 0.15s;
}
.theme-toggle:hover { border-color: var(--foreground); }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: inline-flex; }

/* ---------- Auth Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--foreground); color: var(--background); }
.btn-secondary {
  background: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}
.btn-secondary:hover { border-color: var(--foreground); color: var(--foreground); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--background);
  padding: 1.5rem 1rem;
  margin-top: auto;
}
@media (min-width: 640px) { .site-footer { padding: 1.5rem 1.75rem; } }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-foreground);
}
.footer-links a:hover { color: var(--foreground); text-decoration: none; }
.footer-disclaimer {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.5;
  max-width: 800px;
}
.footer-copy {
  font-size: 12px;
  color: var(--muted-foreground);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 4rem 0 3rem;
}
.hero h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}
@media (min-width: 768px) { .hero h1 { font-size: 48px; } }
.hero .subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 12px 20px 12px 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  background: var(--card);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.hero-search input:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 2px var(--ring);
}
.hero-search .search-icon { left: 14px; }

/* ---------- Stats Bar ---------- */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
@media (max-width: 640px) { .stats-bar { gap: 1.5rem; } }
.stat-item { text-align: center; }
.stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ---------- Section Heading ---------- */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.section-heading h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section-heading a {
  font-size: 13px;
  font-weight: 500;
}

/* ---------- Page Title Block ---------- */
.page-title-block {
  margin-bottom: 2rem;
}
.page-title-block h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.page-title-block p {
  color: var(--muted-foreground);
  font-size: 15px;
  max-width: 700px;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted-foreground); }
.breadcrumb a:hover { color: var(--foreground); text-decoration: none; }
.breadcrumb .sep { color: var(--muted-foreground); opacity: 0.5; }
.breadcrumb .current { color: var(--foreground); font-weight: 500; }

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card:hover {
  border-color: rgba(0,0,0,0.5);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .card:hover { border-color: rgba(255,255,255,0.4); }

.card-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--card-foreground);
  display: block;
}
.card-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
}
.card-meta {
  font-size: 12px;
  color: var(--muted-foreground);
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Category Card ---------- */
.category-card .card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--foreground);
  margin-bottom: 4px;
}
.category-card .count-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted-foreground);
  width: fit-content;
  font-weight: 500;
}

/* ---------- Peptide Card ---------- */
.peptide-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.peptide-card .pep-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
}
.peptide-card .pep-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
  flex: 1;
}
.peptide-card .pep-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  gap: 8px;
}
.peptide-card .pep-price {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-foreground);
  font-variant-numeric: tabular-nums;
}
.peptide-card .pep-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--foreground);
  font-weight: 500;
}
.peptide-card .pep-rating .star-icon { color: var(--yellow); }
.peptide-card .pep-rating .text-muted { color: var(--muted-foreground); }

/* ---------- Star Rating ---------- */
.stars { color: var(--yellow); letter-spacing: 1px; font-size: 13px; display: inline-flex; gap: 1px; }
.stars .empty { color: var(--border); }
.stars .star-svg { display: inline-block; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge-gray { background: var(--secondary); color: var(--muted-foreground); border-color: var(--border); }
.badge-green { background: var(--green-bg); color: var(--green-fg); }
.badge-yellow { background: var(--yellow-bg); color: var(--yellow-fg); }
.badge-red { background: var(--red-bg); color: var(--red-fg); }
.badge-blue { background: var(--blue-bg); color: var(--blue-fg); }
.badge-tier-a { background: var(--tier-a-bg); color: var(--tier-a-fg); }
.badge-tier-b { background: var(--tier-b-bg); color: var(--tier-b-fg); }
.badge-tier-c { background: var(--tier-c-bg); color: var(--tier-c-fg); }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  background: var(--secondary);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--card-foreground);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--secondary); }
.data-table td.num, .data-table th.num {
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.data-table a { color: var(--foreground); font-weight: 500; }
.data-table a:hover { text-decoration: underline; }
.vendor-cell { display: flex; align-items: center; gap: 8px; }
.vendor-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  border: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--foreground);
  flex-shrink: 0;
  overflow: hidden;
}
.vendor-logo img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Peptide Header ---------- */
.peptide-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.peptide-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.peptide-header .pep-short {
  color: var(--muted-foreground);
  font-size: 15px;
  margin-top: 4px;
  max-width: 600px;
}
.peptide-rating-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  min-width: 120px;
}
.big-rating {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.rating-stars { margin: 6px 0 4px; }
.review-count {
  font-size: 11px;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Quick Facts ---------- */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 2rem;
}
.fact-item {
  background: var(--card);
  padding: 12px 16px;
}
.fact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.fact-value {
  font-size: 14px;
  color: var(--foreground);
  font-weight: 500;
}

/* ---------- Tabs ---------- */
.tabs-container { margin-top: 1.5rem; }
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-foreground);
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: var(--foreground); }
.tab-btn.active { color: var(--foreground); border-bottom-color: var(--foreground); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- Content Section ---------- */
.content-section {
  margin-bottom: 2rem;
}
.content-section h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.content-section p {
  color: var(--foreground);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 13px;
}
.content-section table th {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 2px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 600;
}
.content-section table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

/* ---------- Vendor Cards ---------- */
.vendor-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
  margin-bottom: 0.75rem;
  transition: border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.vendor-card:hover { border-color: rgba(0,0,0,0.5); text-decoration: none; }
[data-theme="dark"] .vendor-card:hover { border-color: rgba(255,255,255,0.4); }
.vendor-card-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}
.vendor-rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-foreground);
  min-width: 28px;
}
.vendor-card-body { flex: 1; min-width: 0; }
.vendor-card-name {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 2px;
}
.vendor-card-line {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}
.vendor-card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
}
.vendor-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vendor-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.vendor-card-score {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ---------- Login Gate ---------- */
.login-gate {
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--card);
}
.gate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--muted-foreground);
}
.login-gate h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.login-gate p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
}
.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background: var(--secondary);
  color: var(--muted-foreground);
}
.empty-state h3 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.empty-state p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

/* ---------- Reviews ---------- */
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  background: var(--card);
  margin-bottom: 0.75rem;
}
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.review-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--foreground);
}
.review-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
}
.review-body {
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.6;
  margin-top: 8px;
}
.review-sub-ratings {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
}

/* ---------- Rating Breakdown ---------- */
.rating-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 640px) { .rating-breakdown { grid-template-columns: 1fr; } }
.rating-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.rating-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  min-width: 80px;
}
.rating-bar-track {
  flex: 1;
  height: 6px;
  background: var(--secondary);
  border-radius: 3px;
  overflow: hidden;
}
.rating-bar-fill {
  height: 100%;
  background: var(--foreground);
  border-radius: 3px;
  transition: width 0.3s;
}
.rating-bar-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  min-width: 32px;
  text-align: right;
}

/* ---------- User Rating Breakdown ---------- */
.rating-breakdown-box {
  margin: 24px 0;
}
.rb-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.rb-header h2 {
  font-family: 'Newsreader', serif;
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
}
.rb-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rb-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rb-label {
  flex: 0 0 200px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
}
@media (max-width: 640px) {
  .rb-label { flex: 0 0 130px; font-size: 0.75rem; }
}
.rb-bar {
  flex: 1;
  height: 6px;
  background: var(--secondary);
  border-radius: 3px;
  overflow: hidden;
}
.rb-bar-fill {
  height: 100%;
  background: var(--foreground);
  border-radius: 3px;
  transition: width 0.4s ease;
}
[data-theme="dark"] .rb-bar-fill {
  background: #6366f1;
}
.rb-score {
  flex: 0 0 36px;
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--foreground);
}

/* ---------- Score Grid ---------- */
.score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.score-item {
  background: var(--card);
  padding: 16px;
  text-align: center;
}
.score-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.score-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-top: 6px;
}

/* ---------- Pros / Cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-cons-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  background: var(--card);
}
.pros-cons-box h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.pros-box h3 { color: var(--green-fg); }
.cons-box h3 { color: var(--red-fg); }
.pros-cons-box ul { list-style: none; padding: 0; }
.pros-cons-box li {
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  color: var(--foreground);
}
.pros-cons-box li:last-child { border-bottom: none; }

/* ---------- Paper Cards ---------- */
.paper-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.25rem;
  background: var(--card);
  margin-bottom: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.paper-card:hover { border-color: rgba(0,0,0,0.5); text-decoration: none; }
[data-theme="dark"] .paper-card:hover { border-color: rgba(255,255,255,0.4); }
.paper-title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 8px;
}
.paper-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.paper-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.paper-summary {
  font-size: 13px;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* ---------- Tool Cards ---------- */
.tool-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--foreground);
  margin-bottom: 4px;
}
.tool-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--foreground);
}
.tool-desc {
  font-size: 13px;
  color: var(--muted-foreground);
}

/* ---------- Calculator Layout ---------- */
.calc-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 768px) { .calc-wrap { grid-template-columns: 1fr; } }
.calc-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--card);
}
.calc-form h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.calc-form h2 .calc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  background: var(--secondary);
  color: var(--foreground);
}
.calc-desc {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-bottom: 1.25rem;
}
.calc-row {
  margin-bottom: 1rem;
}
.calc-row-inline {
  display: flex;
  gap: 1rem;
}
.calc-row-inline > div { flex: 1; }
.calc-row label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
  font-weight: 500;
}
.calc-row input, .calc-row select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.calc-row input:focus, .calc-row select:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 2px var(--ring);
}
.radio-group {
  display: flex;
  gap: 1rem;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: none;
  letter-spacing: normal;
  font-size: 14px;
  color: var(--foreground);
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  margin-bottom: 0;
}
.radio-group input[type="radio"] { accent-color: var(--foreground); }
.calc-result {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--card);
  opacity: 0.5;
  transition: opacity 0.2s;
}
.calc-result.show { opacity: 1; }
.result-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.result-unit {
  font-size: 13px;
  color: var(--muted-foreground);
  margin-top: 4px;
}
.result-category {
  display: inline-flex;
  margin-top: 0.75rem;
}
.result-extra {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.result-extra-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.result-extra-row span:first-child {
  color: var(--muted-foreground);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.result-extra-row span:last-child {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  color: var(--foreground);
  font-variant-numeric: tabular-nums;
}

/* ---------- Auth / Login ---------- */
.auth-wrap {
  max-width: 560px;
  margin: 2rem auto;
}
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 0;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-foreground);
}
.wizard-step.active .step-num {
  border-color: var(--foreground);
  background: var(--foreground);
  color: var(--background);
}
.wizard-step.done .step-num {
  border-color: var(--green-fg);
  background: var(--green-fg);
  color: #fff;
}
.step-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
}
.wizard-step.active .step-label { color: var(--foreground); font-weight: 600; }
.wizard-step-connector {
  width: 40px;
  height: 1px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 22px;
}
.wizard-step-connector.done { background: var(--green-fg); }

.auth-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem;
  background: var(--card);
}
.auth-card h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.auth-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.ack-list { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.ack-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.ack-item:last-child { border-bottom: none; }
.ack-item input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--foreground);
  flex-shrink: 0;
}
.ack-item label {
  font-size: 13px;
  color: var(--foreground);
  cursor: pointer;
  line-height: 1.5;
}
.form-field {
  margin-bottom: 1rem;
}
.form-field label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 2px var(--ring);
}
.form-error {
  padding: 10px 14px;
  background: var(--red-bg);
  color: var(--red-fg);
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 1rem;
  font-family: 'JetBrains Mono', monospace;
}
.purpose-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}
.purpose-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.875rem;
  transition: border-color 0.15s, background 0.15s;
}
.purpose-option:hover {
  border-color: var(--foreground);
}
.purpose-option input[type="radio"] {
  margin: 0;
  accent-color: var(--foreground);
}
.purpose-option:has(input:checked) {
  border-color: var(--foreground);
  background: var(--muted);
}
.email-display {
  padding: 10px 14px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.welcome-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  border-radius: var(--radius);
  background: var(--green-bg);
  color: var(--green-fg);
}

/* ---------- Guide Layout ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}
@media (max-width: 768px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { display: none; }
}
.guide-toc {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
}
.guide-toc h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}
.guide-toc ul { list-style: none; padding: 0; }
.guide-toc li { margin-bottom: 4px; }
.guide-toc a {
  display: block;
  padding: 4px 8px;
  font-size: 13px;
  color: var(--muted-foreground);
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
}
.guide-toc a:hover { color: var(--foreground); background: var(--secondary); text-decoration: none; }
.guide-content h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.guide-summary {
  font-size: 15px;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.guide-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.guide-meta span { display: inline-flex; align-items: center; gap: 4px; }
.guide-refs {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
}
.guide-refs h3 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

/* ---------- Filter Chips ---------- */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.filter-chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--muted-foreground);
  cursor: pointer;
  text-decoration: none;
  background: var(--background);
  transition: all 0.15s;
}
.filter-chip:hover { border-color: var(--foreground); color: var(--foreground); text-decoration: none; }
.filter-chip.active { background: var(--foreground); color: var(--background); border-color: var(--foreground); }

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted-foreground); }
.text-soft { color: var(--text-soft); }
.text-center { text-align: center; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.flex { display: flex; }
.gap-2 { gap: 0.5rem; }
.flex-wrap { flex-wrap: wrap; }
.flex-wrap a { text-decoration: none; }
.flex-wrap a:hover { text-decoration: none; }

/* ---------- Search page ---------- */
.search-page-search {
  margin-bottom: 2rem;
}

/* ---------- Peptide Info Cards (structured) ---------- */
.ack-select-all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--muted);
}
.ack-select-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--foreground);
}
.pep-section {
  margin-bottom: 32px;
}
.pep-section-title {
  font-family: 'Newsreader', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.pep-section-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--foreground);
}

.pep-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.pep-info-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card);
}
.pep-info-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  font-weight: 600;
}
.pep-info-card-header svg { color: var(--muted-foreground); }
.pep-info-card-body {
  padding: 4px 14px;
}
.pep-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.pep-info-row:last-child { border-bottom: none; }
.pep-info-key {
  font-size: 13px;
  color: var(--muted-foreground);
  white-space: nowrap;
  flex-shrink: 0;
}
.pep-info-val {
  font-size: 13px;
  color: var(--foreground);
  font-weight: 500;
  text-align: right;
  line-height: 1.5;
}
.badge-gray {
  background: var(--muted);
  color: var(--muted-foreground);
}

/* ---------- Peptide Info Grid (legacy, keep for compat) ---------- */
.pep-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.pep-info-item {
  background: var(--card);
  padding: 12px 16px;
}
.pep-info-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 4px;
}
.pep-info-value {
  font-size: 14px;
  color: var(--foreground);
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Peptide Lists (Benefits/Side Effects/Contraindications) ---------- */
.pep-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.pep-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--foreground);
  background: var(--card);
}
.pep-list-benefits li svg { color: var(--green-fg); flex-shrink: 0; margin-top: 2px; }
.pep-list-sideeffects li svg { color: var(--yellow-fg); flex-shrink: 0; margin-top: 2px; }
.pep-list-contraindications li svg { color: var(--red-fg); flex-shrink: 0; margin-top: 2px; }

/* ---------- Review Form ---------- */
.review-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  background: var(--card);
}
.review-form-row {
  margin-bottom: 1rem;
}
.review-form-label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
  font-weight: 500;
}
.review-form-subratings {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) { .review-form-subratings { grid-template-columns: 1fr; } }
.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--input);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: vertical;
}
.review-form input[type="text"]:focus,
.review-form textarea:focus {
  border-color: var(--foreground);
  box-shadow: 0 0 0 2px var(--ring);
}
.review-form input::placeholder,
.review-form textarea::placeholder { color: var(--muted-foreground); }

/* ---------- Star Input (clickable) ---------- */
.star-input-group {
  display: inline-flex;
  gap: 4px;
}
.star-input {
  color: var(--border);
  cursor: pointer;
  transition: color 0.1s;
}
.star-input.active {
  color: var(--yellow);
}
.star-input:hover {
  color: var(--yellow-fg);
}

/* ---------- Review Author ---------- */
.review-author {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--muted-foreground);
  margin-bottom: 6px;
}
}