/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --secondary: #34a853;
    --accent: #fbbc04;
    --danger: #ea4335;
    --bg: #f0f2f5;
    --card-bg: #ffffff;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.3s ease;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header */
.header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 50%, #1a237e 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 300;
}

/* Blood Lab Banner */
.blood-lab-banner {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 0 1rem;
}

.blood-lab-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: var(--radius);
    text-decoration: none;
    color: white;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.blood-lab-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.blood-lab-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.blood-lab-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.blood-lab-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

.blood-lab-text span {
    font-size: 0.85rem;
    opacity: 0.9;
}

.blood-lab-arrow {
    font-size: 1.4rem;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

.blood-lab-link:hover .blood-lab-arrow {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .blood-lab-text strong { font-size: 0.95rem; }
    .blood-lab-text span { font-size: 0.78rem; }
    .blood-lab-icon { font-size: 1.4rem; }
}

/* Disclaimer */
.disclaimer {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 1rem 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: #664d03;
    text-align: center;
}

/* Controls */
.controls {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.controls.stack-mode .filters,
.controls.stack-mode .peptide-count {
    display: none;
}

.controls.stack-mode .search-box {
    margin-bottom: 0;
}

.search-box {
    margin-bottom: 1rem;
}

.search-box input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: var(--transition);
    background: white;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.peptide-count {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Cards Container */
.cards-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.card-icon.weight-loss { background: linear-gradient(135deg, #ea4335, #ff6b6b); }
.card-icon.growth-hormone { background: linear-gradient(135deg, #34a853, #66bb6a); }
.card-icon.healing { background: linear-gradient(135deg, #4285f4, #64b5f6); }
.card-icon.anti-aging { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.card-icon.skin { background: linear-gradient(135deg, #ff9800, #ffb74d); }
.card-icon.cognitive { background: linear-gradient(135deg, #00bcd4, #4dd0e1); }
.card-icon.immune { background: linear-gradient(135deg, #8bc34a, #aed581); }
.card-icon.hormonal { background: linear-gradient(135deg, #e91e63, #f48fb1); }
.card-icon.sleep { background: linear-gradient(135deg, #3f51b5, #7986cb); }
.card-icon.body-comp { background: linear-gradient(135deg, #ff5722, #ff8a65); }
.card-icon.other { background: linear-gradient(135deg, #607d8b, #90a4ae); }

.card-title-group {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.card-aka {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 2px;
}

.card-body {
    padding: 0 1.5rem 1.25rem;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    padding: 0 1.5rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag-category {
    background: #e8f0fe;
    color: #1a73e8;
}

.tag-status {
    background: #e6f4ea;
    color: #137333;
}

.tag-status.research {
    background: #fce8e6;
    color: #c5221f;
}

.tag-status.trial {
    background: #fef7e0;
    color: #b06000;
}

.card-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    overflow-y: auto;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    border-radius: var(--radius);
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalIn 0.3s ease;
    margin: auto;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f3f4;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    color: var(--text);
}

.modal-close:hover {
    background: #dadce0;
}

.modal-content {
    padding: 2rem;
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.modal-aka {
    font-size: 0.95rem;
    color: var(--text-light);
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.6rem;
    padding-bottom: 0.3rem;
    border-bottom: 1px solid #e8f0fe;
}

.modal-section p,
.modal-section ul {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.modal-section ul {
    padding-left: 1.5rem;
}

.modal-section ul li {
    margin-bottom: 0.4rem;
}

.dosage-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.dosage-table th {
    background: #f8f9fa;
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

.dosage-table td {
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.dosage-table tr:last-child td {
    border-bottom: none;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.modal-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.side-effect-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.severity-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 6px;
}

.severity-dot.common { background: #ea4335; }
.severity-dot.occasional { background: #fbbc04; }
.severity-dot.rare { background: #34a853; }

.severity-legend {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
}

.severity-legend span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.warning-box {
    background: #fce8e6;
    border: 1px solid #ea4335;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #c5221f;
    margin-top: 1rem;
}

/* Section Toggle */
.section-toggle {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    display: flex;
    gap: 0;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.section-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    position: relative;
}

.section-btn:hover {
    background: #f8f9fa;
    color: var(--text);
}

.section-btn.active {
    background: var(--primary);
    color: white;
}

.section-btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.section-btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }

/* Stacks Container */
.stacks-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

.stacks-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.stacks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* Stack Card */
.stack-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
}

.stack-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.stack-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stack-card-header.weight-loss { background: linear-gradient(135deg, #ea4335, #ff6b6b); }
.stack-card-header.growth-hormone { background: linear-gradient(135deg, #34a853, #66bb6a); }
.stack-card-header.healing { background: linear-gradient(135deg, #4285f4, #64b5f6); }
.stack-card-header.anti-aging { background: linear-gradient(135deg, #9c27b0, #ba68c8); }
.stack-card-header.skin { background: linear-gradient(135deg, #ff9800, #ffb74d); }
.stack-card-header.cognitive { background: linear-gradient(135deg, #00bcd4, #4dd0e1); }
.stack-card-header.immune { background: linear-gradient(135deg, #8bc34a, #aed581); }
.stack-card-header.hormonal { background: linear-gradient(135deg, #e91e63, #f48fb1); }
.stack-card-header.sleep { background: linear-gradient(135deg, #3f51b5, #7986cb); }
.stack-card-header.body-comp { background: linear-gradient(135deg, #ff5722, #ff8a65); }

.stack-card-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.stack-card-level {
    font-size: 0.8rem;
    opacity: 0.9;
    font-weight: 500;
}

.stack-card-body {
    padding: 1.25rem 1.5rem;
}

.stack-card-desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.stack-peptide-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.stack-peptide-chip {
    padding: 0.25rem 0.6rem;
    background: #e8f0fe;
    color: #1a73e8;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stack-card-footer {
    padding: 0.75rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

/* Stack Modal extras */
.stack-peptide-detail {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
}

.stack-peptide-detail h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.peptide-link {
    color: #2563eb;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
    transition: color 0.2s;
}

.peptide-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.modal-back {
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: #f0f7ff;
    border-radius: 8px;
    border-left: 3px solid #2563eb;
}

.modal-back a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-back a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.stack-peptide-detail .role {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.stack-peptide-detail .dose-info {
    font-size: 0.85rem;
    color: var(--text-light);
}

.stack-peptide-detail .dose-info strong {
    color: var(--text);
}

.synergy-box {
    background: #e8f5e9;
    border: 1px solid #4caf50;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #1b5e20;
    line-height: 1.6;
}

.application-box {
    background: #fff3e0;
    border: 1px solid #ff9800;
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.9rem;
    color: #e65100;
    line-height: 1.6;
}

.evidence-box {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    color: #0d47a1;
}

/* Footer */
.footer {
    background: #1f2937;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

.footer p {
    font-size: 0.9rem;
}

.footer-disclaimer {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .header h1 { font-size: 1.8rem; }
    .header { padding: 2rem 1rem; }
    .cards-container { grid-template-columns: 1fr; }
    .stacks-grid { grid-template-columns: 1fr; }
    .modal-content { padding: 1.5rem; }
    .modal-title { font-size: 1.4rem; }
    .filters { gap: 0.4rem; }
    .filter-btn { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
    .section-btn { font-size: 0.85rem; padding: 0.75rem 1rem; }
}

@media (max-width: 480px) {
    .header h1 { font-size: 1.4rem; }
    .subtitle { font-size: 0.9rem; }
    .search-box input { font-size: 1rem; padding: 0.8rem 1rem; }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* No results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.loading-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--text-light);
}

.loading-state h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.error-state {
    border-color: #ea4335;
    background: #fce8e6;
    color: #c5221f;
}

.error-state h3 {
    color: #c5221f;
}

.no-results h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

/* FAQ Section */
.faq-section {
    max-width: 900px;
    margin: 4rem auto 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.faq-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: center;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.faq-item {
    background: #f9f9fb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    transition: all 0.2s;
}
.faq-item[open] {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    font-size: 1.05rem;
    padding: 0.25rem 0;
    list-style: none;
    position: relative;
    padding-right: 2rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: '-';
}
.faq-item p {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-section { margin: 2rem 1rem; padding: 1.5rem; }
    .faq-section h2 { font-size: 1.4rem; }
    .faq-item summary { font-size: 0.95rem; }
}

/* Detail pages (individual peptide/stack) */
.breadcrumb {
    max-width: 1000px;
    margin: 1rem auto;
    padding: 0.5rem 2rem;
    font-size: 0.9rem;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text); font-weight: 600; }

.detail-page {
    max-width: 900px;
    margin: 0 auto 3rem;
    padding: 0 2rem;
}
.detail-page article {
    background: #fff;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.detail-header {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.detail-header .category-badge,
.detail-header .status-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 0.5rem;
}
.detail-header .category-badge {
    background: #e0e7ff;
    color: #3730a3;
}
.detail-header .status-badge {
    background: #f3f4f6;
    color: #374151;
}
.detail-header .status-badge.status-approved {
    background: #d1fae5;
    color: #065f46;
}
.detail-header .status-badge.status-trial {
    background: #fef3c7;
    color: #92400e;
}
.detail-header .status-badge.status-research {
    background: #e0e7ff;
    color: #3730a3;
}
.detail-title {
    font-size: 2.2rem;
    margin: 1rem 0 0.5rem;
    color: var(--text);
    line-height: 1.2;
}
.detail-aka {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}
.detail-page section {
    margin-bottom: 2rem;
}
.detail-page section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    border-left: 4px solid var(--primary);
    padding-left: 0.75rem;
}
.detail-page section p {
    line-height: 1.7;
    color: var(--text);
}
.detail-meta {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: grid;
    gap: 0.5rem;
}
.detail-list {
    padding-left: 1.5rem;
    line-height: 1.8;
}
.side-effects-list li {
    list-style: none;
    padding: 0.3rem 0;
    margin-left: -1.5rem;
}
.severity {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}
.severity-common { background: #fee2e2; color: #991b1b; }
.severity-occasional { background: #fef3c7; color: #92400e; }
.severity-rare { background: #d1fae5; color: #065f46; }

.dosage-table {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dosage-row {
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.dosage-protocol {
    color: var(--primary);
    margin-bottom: 0.25rem;
}
.dosage-dose {
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.dosage-notes {
    font-size: 0.9rem;
    color: var(--text-light);
}

.references-list {
    padding-left: 1.5rem;
    line-height: 1.8;
    font-size: 0.9rem;
}
.references-list li {
    margin-bottom: 0.75rem;
    color: var(--text-light);
}
.references-list a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.references-list a:hover { text-decoration: underline; }

.stack-peptides-list {
    display: grid;
    gap: 1rem;
}
.stack-peptide-item {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}
.stack-peptide-item h3 {
    margin: 0 0 0.5rem;
    color: var(--primary);
}
.stack-peptide-item h3 a {
    color: var(--primary);
    text-decoration: none;
}
.stack-peptide-item h3 a:hover { text-decoration: underline; }
.stack-peptide-item p {
    margin: 0.25rem 0;
    font-size: 0.95rem;
}

.related-section {
    margin-top: 3rem;
}
.related-section h2 {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 1rem;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.related-card {
    background: #fff;
    padding: 1.25rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
    display: block;
}
.related-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.related-card h3 {
    color: var(--primary);
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}
.related-aka {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0 0 0.5rem;
}
.related-desc {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .detail-page { padding: 0 1rem; }
    .detail-page article { padding: 1.5rem; }
    .detail-title { font-size: 1.6rem; }
    .breadcrumb { padding: 0.5rem 1rem; }
}

/* Glossary page */
.glossary-list {
    margin: 1rem 0;
}
.glossary-list dt {
    font-weight: 700;
    color: var(--primary);
    margin-top: 1.25rem;
    font-size: 1.1rem;
}
.glossary-list dd {
    margin: 0.4rem 0 0 0;
    padding-left: 1rem;
    border-left: 3px solid #e5e7eb;
    color: var(--text);
    line-height: 1.7;
}

/* Footer navigation */
.footer-nav {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}
.footer-nav a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.footer-nav a:hover { text-decoration: underline; }
