:root {
    --primary: #5B4FC4;
    --primary-light: #7B73D4;
    --teal: #2EC4B6;
    --accent-red: #FF6B6B;
    --orange: #F4845F;
    --yellow: #F7D154;
    --cream: #FFF9F5;
    --mint: #E8F8F5;
    --lavender: #F0EDFF;
    --text: #2D3436;
    --text-secondary: #7F8C8D;
    --border: #E8E4DF;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    /* Typography scale */
    --fs-xs: 0.78rem;
    --fs-sm: 0.85rem;
    --fs-base: 1rem;
    --fs-md: 1.05rem;
    --fs-lg: 1.15rem;
}

* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    font-weight: 400;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body > footer { margin-top: auto; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    color: var(--text);
}

/* ── Navbar ── */
.navbar {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    padding: .85rem 20px;
}
.navbar-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--black) !important;
}
.navbar-brand .brand-accent {
    color: var(--teal);
}
.navbar .navbar-nav .nav-link {
    font-weight: 600;
    color: var(--text);
    padding: .45rem 20px !important;
    margin: 0 3px;
    border-radius: 50px;
    transition: all .2s;
    font-size: .95rem;
}
.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active {
    background: var(--lavender);
    color: var(--primary);
}
.btn-cta-nav {
    background: var(--primary);
    color: #fff !important;
    border-radius: 50px;
    padding: .45rem 1.4rem;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    transition: all .2s;
}
.btn-cta-nav:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* ── Nav search ── */
.nav-search {
    position: relative;
    margin-left: .75rem;
}
.nav-search-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all .2s;
}
.nav-search-toggle:hover {
    background: var(--lavender);
    color: var(--primary);
}
.nav-search-box {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: .5rem;
    width: 320px;
    z-index: 1050;
}
.nav-search-box.open { display: block; }
.nav-search-box .form-control {
    border-radius: 10px;
    border: 1px solid var(--border);
    font-size: .9rem;
    padding: .6rem 1rem;
    box-shadow: var(--shadow);
}
.nav-search-box .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 2px 12px rgba(91,79,196,.15);
}
.nav-search-results {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: .35rem;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: var(--shadow);
    display: none;
}
.nav-search-results.has-results { display: block; }
.nav-search-results .search-empty {
    padding: .8rem 1rem;
    color: var(--text-secondary);
    font-size: var(--fs-sm);
}
.search-result {
    display: block;
    padding: .6rem 1rem;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid #f5f3f0;
    transition: background .1s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover, .search-result.selected { background: var(--lavender); }
.search-result-title {
    font-weight: 600;
    font-size: var(--fs-sm);
    display: block;
}
.search-result-sub {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}
.search-result-type {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--primary);
    margin-right: .4rem;
}
@media (max-width: 575.98px) {
    .nav-search-box {
        width: calc(100vw - 2rem);
        right: -1rem;
    }
}

/* ── Buttons ── */
.btn-primary-pill {
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .65rem 1.8rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-primary-pill:hover {
    background: var(--primary-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(91,79,196,.3);
}
.btn-teal-pill {
    background: var(--teal);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .65rem 1.8rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-teal-pill:hover {
    background: #27b0a4;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(46,196,182,.3);
}
.btn-outline-teal {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
    border-radius: 50px;
    padding: .6rem 1.8rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-outline-teal:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-2px);
}
.btn-outline-purple {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 50px;
    padding: .6rem 1.8rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-outline-purple:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-hero-white {
    background: #fff;
    color: var(--primary);
    border: none;
    border-radius: 50px;
    padding: .65rem 1.8rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-hero-white:hover {
    background: #f0edff;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,.6);
    border-radius: 50px;
    padding: .6rem 1.8rem;
    font-weight: 600;
    transition: all .25s;
}
.btn-hero-outline:hover {
    background: rgba(255,255,255,.15);
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #4A44B5 0%, #5952C9 40%, #6861D4 100%);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}
.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #fff;
}
.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,.8);
    max-width: 560px;
    line-height: 1.8;
}
.hero-image-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.hero-image-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, rgba(255,255,255,.3) 0%, rgba(200,191,255,.15) 35%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(15px);
}
.hero-image {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    object-position: bottom center;
    position: relative;
    z-index: 1;
}

/* ── Section ── */
section { padding: 4.5rem 0; }
.section-narrow { padding: 3rem 0 4rem; }
.section-white { background: #fff; }
.section-title {
    font-size: 2rem;
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--text-secondary);
    font-size: var(--fs-md);
    margin-bottom: 2.5rem;
}

/* ── Text utilities ── */
.text-sm { font-size: var(--fs-sm); }
.evidence-value { color: var(--teal); }

/* ── Benefit Grid (benefits page) ── */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
@media (max-width: 767.98px) {
    .benefit-grid { grid-template-columns: 1fr; }
}

/* ── Benefit Cards ── */

.benefit-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.3rem 1.2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: all .25s;
    cursor: pointer;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.benefit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: transparent;
}
.benefit-card .benefit-bg {
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    opacity: 0.06;
    font-size: 4rem;
    line-height: 1;
    pointer-events: none;
}
.benefit-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.benefit-card h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: .15rem;
}
.benefit-card small {
    color: var(--text-secondary);
    font-size: .8rem;
    line-height: 1.4;
}
.benefit-card .peptide-count {
    font-size: .75rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: .4rem;
    display: block;
}
.section-person-image {
    max-height: 560px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom;
    display: block;
    margin-top: auto;
}
.popular-peptides-section {
    overflow: hidden;
    padding: 4.5rem 0 0;
}
.popular-peptides-section .row.align-items-end > .col-lg-4 {
    display: flex;
    align-items: flex-end;
}
.popular-peptides-section .row.align-items-end > .col-lg-8 {
    padding-bottom: 4.5rem;
}
.peptide-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.popular-peptides-section .peptide-card {
    padding: 1.3rem;
}
.popular-peptides-section .peptide-card h5 {
    font-size: 1.05rem;
    margin-bottom: .3rem;
}
.benefit-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

/* ── Peptide Cards ── */
.peptide-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 1.8rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: all .25s;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}
.peptide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: transparent;
}
.peptide-card h5 {
    font-size: 1.2rem;
    margin-bottom: .6rem;
}
.badge-pastel {
    display: inline-flex;
    align-items: center;
    padding: .3rem .75rem;
    border-radius: 50px;
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-right: .3rem;
    margin-bottom: .3rem;
}
a.badge-link { text-decoration: none; transition: opacity .15s; }
a.badge-link:hover { opacity: .75; }
/* Set3-derived palette (ColorBrewer) */
.badge-teal { background: #d2f0eb; color: #2b8575; }
.badge-purple { background: #e3e1f1; color: #5f5a9e; }
.badge-orange { background: #fee0be; color: #b47218; }
.badge-red { background: #fdd5d0; color: #b93a2c; }
.badge-yellow { background: #fffdda; color: #8a7f15; }
.badge-blue { background: #d4e5f1; color: #367094; }
.badge-green { background: #dff0c2; color: #5a8419; }
.badge-pink { background: #fde8f1; color: #b4527e; }
.badge-gray { background: #ececec; color: #636363; }
.badge-plum { background: #e4d2e5; color: #7d3e7f; }
.badge-mint { background: #e3f4df; color: #478b3b; }
.badge-gold { background: #fff5b8; color: #8f8010; }


/* ── Getting Started ── */
.getting-started {
    background: var(--mint);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
}
.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.2rem;
    margin: 0 auto .8rem;
}
.step-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem 1.4rem;
    text-align: center;
    box-shadow: var(--shadow);
    height: 100%;
}
.step-card h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}
.step-card p {
    font-size: .9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ── News Cards ── */
.news-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.6rem;
    box-shadow: var(--shadow);
    transition: all .25s;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.news-card .meta {
    font-size: .82rem;
    color: var(--text-secondary);
}
.news-card h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.45;
}
.news-card a {
    color: var(--primary);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: none;
}
.news-card a:hover { text-decoration: underline; }

/* ── Footer ── */
footer {
    background: var(--text);
    color: #bdc3c7;
    padding: 3.5rem 0 2rem;
}
footer h6 {
    color: #fff;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
}
footer a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: .9rem;
    display: block;
    margin-bottom: .45rem;
    transition: color .2s;
}
footer a:hover { color: #fff; }
.footer-brand {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: #fff !important;
}
.footer-brand .brand-accent {
    color: var(--teal);
}
.footer-tagline {
    font-size: .92rem;
    color: #95a5a6;
    margin-top: .3rem;
}
.footer-copyright { color: #7f8c8d; }
.disclaimer-box {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.5rem 0 0;
    font-size: var(--fs-xs);
    color: #7f8c8d;
    line-height: 1.7;
    margin-top: 2.5rem;
}

/* ── Detail Page ── */
.detail-header {
    background: linear-gradient(135deg, var(--lavender) 0%, #e8e3ff 100%);
    padding: 2.5rem 0 1.5rem;
}
.detail-badges-bar {
    background: #fff;
    padding: .75rem 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: .5rem;
}
.breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
}
.breadcrumb-item.active { color: var(--text-secondary); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text-secondary); }

.stat-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--lavender);
    border-radius: 50px;
    padding: .5rem 1.1rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--primary);
    color: var(--text);
    box-shadow: var(--shadow);
}
.stat-badge i { color: var(--primary); }

.key-takeaway {
    background: var(--mint);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--teal);
}
.key-takeaway strong { color: var(--text); }

.sidebar-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1.2rem;
}
.sidebar-card h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: .6rem;
    border-bottom: 2px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: .45rem 0;
    font-size: .9rem;
    border-bottom: 1px solid #f5f3f0;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text-secondary); }
.summary-value { font-weight: 600; }

.summary-pills { display: flex; flex-wrap: wrap; gap: .45rem; }
.summary-pill {
    display: inline-flex;
    align-items: center;
    padding: .3rem .7rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    border-radius: 999px;
    background: #f5f3f0;
    color: var(--text);
    white-space: nowrap;
}
.summary-pill i { color: var(--primary); font-size: .75rem; }
.summary-pill-green { background: #dff0c2; color: #5a8419; }
.summary-pill-green i { color: #5a8419; }
.summary-pill-evidence { background: var(--lavender); color: var(--primary); }
.summary-pill-evidence i { color: var(--primary); }

.vendor-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 0;
    border-bottom: 1px solid #f5f3f0;
}
.vendor-item:last-child { border-bottom: none; }
.vendor-rank {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--lavender);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .82rem;
    flex-shrink: 0;
}
.vendor-info { flex: 1; }
.vendor-name { font-weight: 600; font-size: .9rem; }
.vendor-price { font-weight: 700; color: var(--primary); font-size: .9rem; }

.content-section { margin-bottom: 2.2rem; }
.content-section h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--border);
}
.content-section h4 i { color: var(--primary); }
.detail-title { font-size: 2.6rem; }
.detail-subtitle { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: .5rem; }
.dose-label { color: var(--text-secondary); font-weight: 600; }
.dose-value { font-weight: 600; }
.dose-note { color: var(--text-secondary); }
.dose-divider { border-color: rgba(91,79,196,.15); }
.sidebar-card h6 i { color: var(--primary); }
.side-effects-note { font-size: .92rem; color: var(--text-secondary); }
.benefit-description { font-size: 1rem; line-height: 1.9; color: var(--text-secondary); }
.benefit-compare-text { font-size: .93rem; line-height: 1.8; }
.article-detail-title { font-size: 2.2rem; line-height: 1.3; }
.article-detail-subtitle { color: var(--text-secondary); }

.benefit-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .88rem;
    margin-bottom: .35rem;
}
.benefit-progress-label span:first-child { font-weight: 600; }
.benefit-progress-label span:last-child { color: var(--text-secondary); font-size: .82rem; }
.progress-rounded {
    height: 10px;
    border-radius: 5px;
    background: var(--border);
    overflow: hidden;
    margin-bottom: 1rem;
}
.progress-rounded .fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary), var(--teal));
}

.dose-card {
    background: var(--lavender);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--primary);
}
.dose-card h6 { margin-bottom: .8rem; }

.side-effect-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem 0;
    font-size: .92rem;
}
.se-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.se-common { background: var(--yellow); }
.se-moderate { background: var(--orange); }
.se-rare { background: var(--accent-red); }
.se-label { color: var(--text-secondary); font-size: .8rem; margin-left: auto; }

/* ── Product / Where to buy ── */
.product-item {
    padding: .7rem 0;
    border-bottom: 1px solid #f5f3f0;
}
.product-item:last-child { border-bottom: none; }
.product-info { margin-bottom: .35rem; }
.product-provider {
    font-weight: 600;
    font-size: .9rem;
    display: block;
}
.product-name {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    display: block;
}
.product-action {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .3rem;
}
.product-price {
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary);
}
.badge-stock {
    font-size: .7rem;
    font-weight: 600;
    padding: .15rem .5rem;
    border-radius: 50px;
}
.badge-in-stock { background: #dff0c2; color: #5a8419; }
.badge-out-of-stock { background: #fdd5d0; color: #b93a2c; }
.btn-view-product {
    margin-left: auto;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    padding: .2rem .7rem;
    border-radius: 50px;
    border: 1px solid var(--primary);
    transition: all .2s;
}
.btn-view-product:hover {
    background: var(--primary);
    color: #fff;
}

/* ── Research studies (detail page) ── */
.studies-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
}
.studies-chevron {
    font-size: .8rem;
    transition: transform .25s;
}
.studies-toggle[aria-expanded="true"] .studies-chevron {
    transform: rotate(180deg);
}
.study-item {
    padding: .6rem 0;
    border-bottom: 1px solid #f5f3f0;
}
.study-item:last-child { border-bottom: none; }
.study-title {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
}
a.study-title:hover { color: var(--primary); }
.study-meta {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}

/* ── Study cards (studies listing page) ── */
.study-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.4rem 1.6rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all .25s;
}
.study-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-color: transparent;
}
.study-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--lavender);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.study-card-title {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.45;
    color: var(--text);
    text-decoration: none;
    display: block;
}
a.study-card-title:hover { color: var(--primary); }
.study-card-authors {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    margin: .3rem 0 0;
    font-style: italic;
}
.study-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .6rem;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}
.study-card-meta span:not(:last-child)::after {
    content: '\00b7';
    margin-left: .6rem;
    color: var(--border);
}
.study-card-summary {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin: .5rem 0 0;
}
.study-card-peptides {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-top: .6rem;
}
.study-card-peptides .badge-pastel {
    font-size: .7rem;
    padding: .2rem .6rem;
    text-decoration: none;
}

/* ── Pagination ── */
.pagination .page-link {
    border: 1px solid var(--border);
    color: var(--text-primary);
    font-weight: 600;
    font-size: .88rem;
    border-radius: 8px;
    padding: .45rem .8rem;
    margin: 0 .15rem;
    transition: all .2s;
}
.pagination .page-link:hover {
    background: var(--lavender);
    color: var(--primary);
    border-color: var(--primary);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.pagination .page-item.disabled .page-link {
    color: #bbb;
    background: transparent;
    border-color: var(--border);
}

/* ── Listing Page ── */
.listing-header {
    background: linear-gradient(135deg, var(--lavender) 0%, #e8e3ff 100%);
    padding: 3rem 0 2rem;
}
.listing-header h1 { font-size: 2.5rem; }
.filter-bar {
    margin-bottom: 1.5rem;
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.filter-bar .form-select,
.filter-bar .form-control {
    border-radius: 50px;
    border: 1px solid var(--border);
    font-size: .9rem;
}
@media (min-width: 576px) {
    .filter-bar .form-select { max-width: 220px; }
    .filter-bar .form-control { max-width: 220px; }
}
@media (max-width: 575.98px) {
    .filter-bar { flex-direction: column; }
    .filter-bar .form-select,
    .filter-bar .form-control { width: 100%; }
}
.pill-filter {
    border: none;
    cursor: pointer;
    padding: .25rem .65rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 600;
    background: #f0ecea;
    color: var(--text-secondary);
    transition: opacity .15s;
}
.pill-filter:hover { opacity: .8; }
.pill-filter.active {
    background: var(--primary);
    color: #fff;
}
.pill-filter.badge-pastel.active {
    opacity: 1;
    outline: 2px solid currentColor;
    outline-offset: 1px;
}
/* ── Providers Page ── */
.provider-profile {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    margin-bottom: 2rem;
}
.provider-stat {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .6rem 0;
}
.provider-stat i {
    font-size: 1.2rem;
    color: var(--primary);
    width: 1.5rem;
    text-align: center;
}
.provider-stat-label {
    display: block;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}
.provider-stat-value {
    display: block;
    font-weight: 600;
    font-size: var(--fs-sm);
}
.provider-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .6rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: var(--text);
    font-size: var(--fs-sm);
    transition: color .15s;
}
.provider-quick-link:last-child { border-bottom: none; }
.provider-quick-link:hover { color: var(--primary); }
.discount-code {
    display: inline-block;
    background: var(--lavender);
    color: var(--primary);
    padding: .15rem .5rem;
    border-radius: 4px;
    font-size: var(--fs-sm);
    letter-spacing: .5px;
}

/* ── Stub Pages ── */
.stub-page {
    padding: 5rem 0;
    text-align: center;
}
.stub-page h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.stub-page p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}
.stub-page .bi {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

/* ── Related peptides sidebar ── */
.related-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .55rem 0;
    border-bottom: 1px solid #f5f3f0;
    text-decoration: none;
    color: var(--text);
}
.related-link:last-child { border-bottom: none; }
.related-link:hover { color: var(--primary); }
.related-link .name { font-weight: 600; font-size: .9rem; }
.related-link .badge-pastel { font-size: .7rem; margin-left: auto; white-space: nowrap; flex-shrink: 0; }

/* ── Articles ── */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}
.article-card {
    background: #fff;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    transition: all .25s;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: transparent;
}
.article-card-title {
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: .5rem;
    color: var(--text);
}
.article-card-excerpt {
    font-size: .88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: .75rem;
}
.article-card-date {
    font-size: var(--fs-xs);
    color: var(--text-secondary);
}
.article-card-with-image {
    padding: 0;
    overflow: hidden;
}
.article-card-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}
.article-card-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.8rem;
    position: relative;
    overflow: hidden;
}
.article-card-preview::before,
.article-card-preview::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: .12;
    background: currentColor;
}
.article-card-preview::before {}
.article-card-preview::after {}
.article-card-preview-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    position: relative;
    z-index: 1;
    letter-spacing: -.02em;
}
.article-card-preview-bubble {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: currentColor;
    opacity: .1;
}
.article-card-preview-teal {
    background: #d4f5f0;
    color: #1a9e92;
}
.article-card-preview-teal::before { width: 180px; height: 180px; bottom: -60px; right: -40px; }
.article-card-preview-teal::after { width: 120px; height: 120px; top: -45px; left: 15%; }
.article-card-preview-teal .article-card-preview-bubble { top: 10px; right: 15%; }

.article-card-preview-purple {
    background: var(--lavender);
    color: var(--primary);
}
.article-card-preview-purple::before { width: 150px; height: 150px; top: -50px; right: 10%; }
.article-card-preview-purple::after { width: 110px; height: 110px; bottom: -40px; left: -30px; }
.article-card-preview-purple .article-card-preview-bubble { bottom: 15px; right: -10px; top: auto; width: 90px; height: 90px; }

.article-card-preview-blue {
    background: #dbeafe;
    color: #2563eb;
}
.article-card-preview-blue::before { width: 200px; height: 200px; top: -70px; left: -50px; }
.article-card-preview-blue::after { width: 90px; height: 90px; bottom: -20px; right: 10%; }
.article-card-preview-blue .article-card-preview-bubble { top: 20px; right: -15px; width: 70px; height: 70px; }

.article-card-preview-orange {
    background: #fde8df;
    color: #d46a3f;
}
.article-card-preview-orange::before { width: 130px; height: 130px; bottom: -40px; left: 20%; }
.article-card-preview-orange::after { width: 160px; height: 160px; top: -60px; right: -45px; }
.article-card-preview-orange .article-card-preview-bubble { bottom: 10px; left: -10px; top: auto; right: auto; width: 85px; height: 85px; }
.article-card-body {
    padding: 1.2rem 1.5rem 1.5rem;
}
.article-meta {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
}

/* Article body */
.article-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}
.article-body h3 {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.article-body p {
    font-size: .95rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.article-body ul {
    margin-bottom: 1.2rem;
    padding-left: 1.2rem;
}
.article-body li {
    font-size: .95rem;
    line-height: 1.7;
    margin-bottom: .4rem;
}
.article-hero-image {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 2rem;
}
.article-body blockquote {
    background: var(--mint);
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--teal);
    margin: 1.5rem 0;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body blockquote strong { color: var(--teal); }
.article-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.article-body a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}
.article-body table {
    width: 100%;
    font-size: .9rem;
    margin-bottom: 1.2rem;
    border-collapse: collapse;
    overflow-x: auto;
    display: block;
}
.article-body thead th {
    background: var(--lavender);
    font-weight: 700;
    font-size: .85rem;
    border-bottom: 2px solid var(--border);
    padding: .75rem 1rem;
    white-space: nowrap;
}
.article-body td, .article-body th {
    padding: .75rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

/* ── Guide Elements ── */
.guide-callout {
    display: flex;
    gap: 1rem;
    background: #fff;
    border-radius: 12px;
    padding: 1.4rem 1.6rem;
    margin: 1.5rem 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}
.guide-callout-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.guide-callout-icon.purple { background: var(--lavender); color: var(--primary); }
.guide-callout-icon.teal { background: #d4f5f0; color: #1a9e92; }
.guide-callout-icon.orange { background: #fde8df; color: #d46a3f; }
.guide-callout-icon.red { background: #ffe0e0; color: #d44; }
.guide-callout-icon.blue { background: #dbeafe; color: #2563eb; }
.guide-callout h4 {
    font-size: 1rem;
    margin-bottom: .3rem;
    border: none;
    padding: 0;
}
.guide-callout p { margin-bottom: 0; }

.guide-checklist {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}
.guide-checklist li {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .6rem 0;
    border-bottom: 1px solid #f5f3f0;
    font-size: .95rem;
    line-height: 1.6;
}
.guide-checklist li:last-child { border-bottom: none; }
.guide-checklist li::before {
    content: '\F272';
    font-family: 'bootstrap-icons';
    color: var(--teal);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.guide-benefit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}
@media (max-width: 576px) {
    .guide-benefit-grid { grid-template-columns: 1fr; }
}
.guide-benefit-item {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
}
.guide-benefit-item .icon {
    font-size: 1.5rem;
    margin-bottom: .5rem;
    display: block;
}
.guide-benefit-item h4 {
    font-size: .95rem;
    margin-bottom: .3rem;
    border: none;
    padding: 0;
}
.guide-benefit-item p {
    font-size: .85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.6;
}

.guide-step-row {
    display: flex;
    gap: 1.2rem;
    margin: 1.2rem 0;
    align-items: flex-start;
}
.guide-step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}
.guide-step-content h4 {
    font-size: 1rem;
    margin-bottom: .2rem;
    border: none;
    padding: 0;
}
.guide-step-content p { margin-bottom: 0; }

/* ── Legal Pages ── */
.legal-body h5 {
    font-size: 1.1rem;
    margin-top: 2rem;
    margin-bottom: .75rem;
}
.legal-body h5:first-child { margin-top: 0; }
.legal-body p {
    font-size: .95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.legal-body a { color: var(--primary); }
.legal-body ul {
    color: var(--text-secondary);
    font-size: .95rem;
    line-height: 1.8;
    padding-left: 1.2rem;
}

/* ── Contact Form ── */
/* ── Utilities ── */
.text-link { color: var(--primary); font-weight: 600; }
.stat-badge-sm { font-size: var(--fs-xs); padding: .3rem .75rem; }
.article-related-border { border-top: 1px solid var(--border); }
.stub-page-icon { font-size: 3rem; color: var(--primary); display: block; margin-bottom: 1rem; }

.form-control, .form-select {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: .6rem .9rem;
    font-size: .95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(91,79,196,.1);
}
