/* DETAILED REVIEW FORM STYLES */
.detailed-review-form {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.dr-section-gray {
    background: #f8fafc;
    padding: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.dr-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dr-header ion-icon {
    color: #3b82f6;
}

.dr-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.dr-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: #fff;
}

.dr-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dr-note {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dr-section-title {
    padding: 1.5rem 2rem 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.dr-rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid #f1f5f9;
}

.dr-rating-row.highlight {
    background: #fdfbf7;
    /* Slight gold tint for main rating */
}

.dr-rating-row:last-of-type {
    border-bottom: none;
}

.dr-rating-info label {
    display: block;
    font-weight: 600;
    color: #334155;
    margin-bottom: 2px;
}

.dr-rating-info span {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Star Rating System */
.star-rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.25rem;
}

.star-rating-input input {
    display: none;
}

.star-rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #cbd5e1;
    transition: color 0.2s;
}

.star-rating-input label:before {
    content: '\2605';
    /* Star character */
}

.star-rating-input input:checked~label,
.star-rating-input label:hover,
.star-rating-input label:hover~label {
    color: #f59e0b;
    /* Gold color */
}

/* Smaller stars for sub-categories */
.star-rating-input.sm label {
    font-size: 1.25rem;
}

.dr-checks {
    padding: 0 2rem 2rem;
}

.dr-check-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: #475569;
    cursor: pointer;
}

.dr-check-row input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.btn-submit-detailed {
    width: calc(100% - 4rem);
    margin: 0 2rem 2rem;
    padding: 1rem;
    background: #3b82f6;
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.btn-submit-detailed:hover {
    background: #2563eb;
}

@media (max-width: 768px) {
    .dr-rating-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .dr-stars {
        align-self: flex-end;
    }
}

.tab-pane.active {
    display: block;
}

/* SUMMARY TABLE STYLES */
.summary-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.summary-table th {
    background: #f8fafc;
    padding: 1rem;
    font-weight: 700;
    color: #475569;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.summary-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.summary-table tr:last-child td {
    border-bottom: none;
}

.st-vendor {
    font-weight: 700;
    color: #2563eb;
}

.st-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #f59e0b;
}

/* CATEGORY WINNERS STYLES (Horizontal Design) */
.winners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.winner-card {
    display: grid;
    grid-template-areas: "icon category pill"
        "icon vendor pill";
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    column-gap: 1rem;
    row-gap: 2px;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.winner-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Specific background for Quality (Gold) */
.winner-card.gold {
    background: #fffbeb;
    border-color: #fef3c7;
}

/* Icon Styles */
.winner-icon-bg {
    grid-area: icon;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.8);
    /* Subtle backing */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0;
}

/* Icon Colors */
.winner-card.gold .winner-icon-bg {
    color: #d97706;
    background: #fff;
}

.winner-card.green .winner-icon-bg {
    color: #16a34a;
    background: #f0fdf4;
}

.winner-card.blue .winner-icon-bg {
    color: #2563eb;
    background: #eff6ff;
}

.winner-card.purple .winner-icon-bg {
    color: #9333ea;
    background: #faf5ff;
}

/* Text Styles */
.winner-category {
    grid-area: category;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
    color: #64748b;
    align-self: end;
}

.winner-vendor {
    grid-area: vendor;
    font-size: 1.15rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.2;
    align-self: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: none;
    -webkit-text-fill-color: initial;
}

/* Score Pill */
.winner-score {
    grid-area: pill;
    background: #0f172a;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    height: auto;
    margin: 0;
}

.winner-score::before {
    content: none;
}

.winner-empty {
    color: #94a3b8;
    font-style: italic;
}

/* =========================================
   RESTORED HOME PAGE PRODUCT GRID STYLES
   (Moved here due to style.css file lock)
   ========================================= */
.productGrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.product-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* soft shadow */
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    line-height: 1.4;
}

.options-section {
    margin-bottom: 1rem;
}

.option-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-button {
    padding: 6px 12px;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.option-button.selected {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.filter-section {
    background: #f8fafc;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.filter-label {
    font-weight: 600;
    color: #64748b;
}

.filter-tags {
    display: flex;
    gap: 0.5rem;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #64748b;
    cursor: pointer;
}

.filter-tag.discounted {
    color: #dc2626;
    font-weight: 600;
}

.filter-tag.testing {
    color: #2563eb;
    font-weight: 600;
}

.product-item {
    padding: 0.75rem 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    /* Flex row for vendor item */
    gap: 1rem;
    align-items: center;
}

.product-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    padding: 2px;
    background: #fff;
    position: relative;
    flex-shrink: 0;
}

.product-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.product-details {
    flex: 1;
}

.product-name {
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.testing-score {
    font-size: 0.75rem;
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
}

.product-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.product-pricing {
    text-align: right;
}

.current-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
}

.price-per-mg {
    font-size: 0.8rem;
    color: #64748b;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.shop-button {
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.shop-button:hover {
    background: #1d4ed8;
    color: white;
}

.add-button {
    background: #10b981;
    color: white;
    padding: 6px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.best-value-banner {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-value-label {
    font-weight: 700;
    color: #b45309;
    font-size: 0.9rem;
}

.best-value-price {
    font-weight: 800;
    color: #b45309;
}

/* LIST VIEW OVERRIDES */
.productGrid.list-view {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
}

/* =========================================
   HOMEPAGE REVIEWS UTILITIES (Replaces missing Bootstrap/Style.css)
   ========================================= */
.text-center {
    text-align: center;
}

.text-primary {
    color: #3b82f6;
}

.text-muted {
    color: #64748b;
}

.fw-bold {
    font-weight: 700;
}

.text-uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.small {
    font-size: 0.875rem;
}

.display-5 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.col-12 {
    width: 100%;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;

}

/* =========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================= */
@media (max-width: 768px) {

    /* 1. Hero Adjustments */
    .hero-title {
        font-size: 2.2rem !important;
        /* Override style.css */
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        padding: 0 1rem;
    }

    .hero-description {
        font-size: 0.9rem !important;
        padding: 0 1rem;
    }

    .search-hero-pill {
        width: calc(100% - 2rem);
        margin-left: 1rem;
        margin-right: 1rem;
        padding: 0.6rem 1rem;
    }

    /* 2. Product Grid - Single Column */
    .productGrid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 1rem 2rem 1rem;
    }

    .product-card {
        padding: 1rem;
    }

    .product-item {
        gap: 0.75rem;
    }

    /* 3. Horizontal Winner Cards - Adapt for Mobile */
    .winners-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        padding: 0 1rem;
    }

    .winner-card {
        /* Keep horizontal but tighten spacing */
        padding: 1rem;
        column-gap: 0.75rem;
        grid-template-columns: max-content 1fr max-content;
    }

    .winner-icon-bg {
        width: 42px;
        height: 42px;
        font-size: 1.25rem;
        margin-bottom: 0;
        /* Override any potential bottom margin */
    }

    .winner-vendor {
        font-size: 1rem;
    }

    .winner-category {
        font-size: 0.65rem;
    }

    .winner-score {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        min-width: 50px;
        border-radius: 12px;
    }

    /* 4. General Typography & Layout */
    .display-5 {
        font-size: 1.75rem !important;
    }

    .container {
        padding: 0 15px;
    }

    .rp-header {
        text-align: center;
        padding: 1.5rem;
    }

    .rp-title {
        font-size: 1.5rem;
    }

    /* Hide some detailed filter elements on mobile to save space if needed */
    .filter-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .shop-button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    /* 5. Best Value Banner Mobile Fix */
    .best-value-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
    }

    .best-value-content {
        width: 100%;
        margin-bottom: 0.25rem;
    }

    .view-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* Missing View Button Style */
.view-button {
    background: #b45309;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.view-button:hover {
    background: #92400e;
    color: white;
}

/* =========================================
   PROMO/SALES SLIDER STYLES
   (Responsive: Large Desktop, Compact Mobile)
   ========================================= */
.promo-slider-container {
    margin-bottom: 2rem;
    position: relative;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.3);
    overflow: hidden;
}

.promo-slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.promo-slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

/* DESKTOP DEFAULT: Large Hero Card Layout (Restored) */
/* DESKTOP DEFAULT: Compact Horizontal Strip Layout */
.promo-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 1.5rem 3.5rem;
    /* Compact padding */
    text-align: left;
    /* Side-by-side alignment */
    color: white;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    /* Reduced height */
    box-sizing: border-box;
}

.promo-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    /* Wider for horizontal layout */
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.promo-logo-box {
    background: white;
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    /* Flex required for vertical centering */
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 48px;
    flex-shrink: 0;
    margin-bottom: 0;
    /* No bottom margin in horizontal mode */
}

.promo-logo-box img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    display: block;
}

.promo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    /* Left align text */
}

.promo-headline {
    font-size: 1.25rem;
    /* Compact font */
    font-weight: 800;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.1;
    text-transform: uppercase;
}

.promo-subtext {
    font-size: 0.95rem;
    opacity: 1;
    background: transparent;
    padding: 0;
    font-weight: 500;
    display: block;
}

.promo-subtext strong {
    color: #fcd34d;
    font-weight: 800;
}

.tree-icon {
    font-size: 1.5rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    margin-bottom: 0;
}

/* Navigation Arrows - Desktop */
.promo-arrow-left,
.promo-arrow-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
    background: rgba(0, 0, 0, 0.1);
    /* Subtle circle */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-arrow-left:hover,
.promo-arrow-right:hover {
    color: white;
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.promo-arrow-left {
    left: 0.75rem;
}

.promo-arrow-right {
    right: 0.75rem;
}


/* =========================================
   MOBILE ONLY OVERRIDES (Compact Strip)
   ========================================= */
@media (max-width: 768px) {
    .promo-slider-container {
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
        touch-action: pan-y;
        /* Allow vertical page scroll while touching slider */
    }

    .promo-slide {
        padding: 1.5rem 2.5rem;
        /* Reduced padding to prevent overflow */
        min-height: auto;
        text-align: center;
        /* Ensure parent aligns center */
        box-sizing: border-box;
    }

    .promo-content {
        flex-direction: column;
        /* Verified Vertical Stack for Mobile */
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        max-width: 100%;
        text-align: center;
    }

    .promo-logo-box {
        height: 56px;
        width: 56px;
        min-width: 56px;
        margin-bottom: 0.25rem;
        border-radius: 12px;
    }

    .promo-logo-box img {
        height: auto;
        max-height: 100%;
        max-width: 100%;
    }

    .promo-text-group {
        align-items: center !important;
        text-align: center !important;
        flex: unset;
        width: 100%;
    }

    .promo-headline {
        font-size: 0.9rem;
        /* Reduced size as requested */
        margin-bottom: 2px;
        white-space: normal;
        line-height: 1.3;
        /* Improved line height for multi-line */
        width: 100%;
        max-width: 200px;
        /* Force break into 2 lines */
        margin-left: auto;
        margin-right: auto;
    }

    .promo-subtext {
        display: none !important;
        /* Hide subtext on mobile as requested */
    }

    .tree-icon {
        display: none;
        /* Hide decorative floating icons on mobile strip */
    }

    .promo-arrow-left,
    .promo-arrow-right {
        font-size: 1.5rem;
        width: 40px;
        /* Larger touch target */
        height: 40px;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 50%;
        z-index: 20;
        /* Ensure strictly above other elements */
    }

    .promo-arrow-left {
        left: 4px;
    }

    .promo-arrow-right {
        right: 4px;
    }
}

/* --- CALCULATOR PAGE STYLES (Added to reviews_detailed.css to bypass lock) --- */
.calculator-page-wrapper {
    background: #f8fafc;
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Header & Process Steps */
.calc-header-section {
    padding: 3rem 1rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-steps-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    width: 100%;
}

.process-title {
    text-align: center;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1.5rem;
}

.steps-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}

.blue-circle {
    background: #3b82f6;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.green-circle {
    background: #10b981;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.purple-circle {
    background: #a855f7;
    box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.orange-circle {
    background: #f97316;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.step-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.3;
}

.step-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* Quick Start Grid */
.quick-start-section {
    margin-bottom: 3rem;
}

.qs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.qs-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
}

.qs-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.qs-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.pill-icon {
    background: #eff6ff;
    color: #3b82f6;
}

.dna-icon {
    background: #fdf5ff;
    color: #a855f7;
}

.blue-syringe {
    background: #eff6ff;
    color: #0ea5e9;
}

.copper-icon {
    background: #fff7ed;
    color: #f97316;
}

.blend-icon {
    background: #f0fdf4;
    color: #16a34a;
}

.qs-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.3rem;
}

.qs-card p {
    font-size: 0.8rem;
    color: #64748b;
    line-height: 1.4;
}

.orb-separator {
    text-align: center;
    position: relative;
    margin: 2rem 0;
}

.orb-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.start-scratch {
    background: #f8fafc;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Accordions */
.calc-accordion {
    border-radius: 12px;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.8rem;
    border: 1px solid transparent;
}

.green-acc {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
    font-weight: 600;
}

.white-acc {
    background: white;
    border-color: #e2e8f0;
    color: #334155;
    flex-direction: column;
    align-items: flex-start;
}

.guide-link {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* MAIN CALCULATOR SPLIT */
.calc-main-split {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.calc-left-visuals {
    width: 35%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.visual-block {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vb-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.blue-flask-bg {
    background: #eff6ff;
    color: #3b82f6;
}

.pink-canister-bg {
    background: #fdf5ff;
    color: #d946ef;
}

.vb-arrow-down {
    color: #cbd5e1;
    margin: 0.5rem 0;
}

.vb-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.syringe-row-img {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    height: 60px;
    margin-bottom: 0.5rem;
}

.syr-icon {
    width: 10px;
    background: #cbd5e1;
    border-radius: 2px;
}

.syr-small {
    height: 30%;
}

.syr-med {
    height: 60%;
}

.syr-large {
    height: 100%;
    background: #3b82f6;
}

/* Right Form */
.calc-right-form {
    width: 65%;
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.autofill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
}

.form-row-group {
    margin-bottom: 1.5rem;
}

.form-row-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.dual-inputs {
    display: flex;
    gap: 1rem;
}

.input-main {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 1rem;
}

.input-opt {
    flex: 2;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}

.input-full {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.dose-input-group {
    position: relative;
}

.input-dose {
    width: 100%;
    padding: 0.8rem;
    padding-right: 60px;
    /* Space for toggle */
    border: 1px solid #cbd5e1;
    border-radius: 8px;
}

.select-full {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: white;
}

.add-peptide-link {
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    margin-top: 0.5rem;
    cursor: pointer;
}

.btn-calculate-red {
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s;
}

.btn-calculate-red:hover {
    background: #dc2626;
}

/* Result Modal Overlay */
.result-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #94a3b8;
}

/* --- MOBILE RESPONSIVENESS OVERRIDES --- */
@media (max-width: 768px) {

    /* Stack Process Steps */
    .steps-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        /* Horizontal scroll on mobile */
        padding-bottom: 1rem;
        justify-content: flex-start;
    }

    .step-item {
        min-width: 80px;
        /* Ensure fit */
    }

    .step-arrow {
        min-width: 20px;
    }

    /* Stack Main Calc */
    .calc-main-split {
        flex-direction: column;
        gap: 1.5rem;
    }

    .calc-left-visuals {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .visual-block {
        padding: 1rem;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .vb-img {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .calc-right-form {
        width: 100%;
        padding: 1.5rem;
    }

    /* Adjust Inputs - FORCE FULL WIDTH ON MOBILE */
    .dual-inputs {
        flex-direction: column !important;
        gap: 0.5rem;
        width: 100% !important;
    }

    .input-main,
    .input-opt,
    .input-full,
    .input-dose,
    .select-full {
        width: 100% !important;
        max-width: 100% !important;
        flex: unset !important;
    }

    .calc-header-section {
        padding: 2rem 1rem;
    }

    #resultModal .modal-content {
        width: 95%;
        margin: 0 auto;
    }
}

/* --- TOP COMMUNITY BAR --- */
.top-community-bar {
    background: linear-gradient(90deg, #ea580c 0%, #dc2626 100%);
    color: white;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 50;
    width: 100%;
}

.tcb-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 2rem;
}

.tcb-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tcb-text {
    font-weight: 500;
}

.tcb-text strong {
    font-weight: 800;
    margin-right: 0.5rem;
}

.tcb-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 700;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s;
    white-space: nowrap;
}

.tcb-btn:hover {
    background: white;
    color: #dc2626;
}

.tcb-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    transition: color 0.2s;
}

.tcb-close:hover {
    color: white;
}

/* Mobile TCB - Compact & Centered */
@media (max-width: 768px) {
    .tcb-inner {
        flex-direction: column;
        padding: 0.5rem 2.5rem 0.5rem 1rem;
        /* Reduced height */
        align-items: center;
        /* Center horizontally */
    }

    .tcb-content {
        gap: 0.4rem;
        /* Reduced gap */
        justify-content: center;
        text-align: center;
        /* Center text */
        align-items: center;
        width: 100%;
    }

    .tcb-text {
        font-size: 0.85rem;
        /* Reduced font size */
        line-height: 1.3;
        display: block;
    }

    .tcb-text strong {
        display: block;
        font-size: 0.9rem;
        /* Reduced title size */
        margin-bottom: 0.1rem;
    }

    .tcb-btn {
        margin-top: 0.2rem;
        width: auto;
        padding: 0.35rem 1rem;
        /* More compact button */
        font-size: 0.8rem;
    }

    .tcb-close {
        top: 50%;
        transform: translateY(-50%);
        /* Centered vertically */
        right: 0.5rem;
        font-size: 1.5rem;
        opacity: 0.8;
    }
}


/* --- EDUCATION / DEEP DIVES PAGE --- */
.education-hero {
    background: #f8fafc;
    padding: 4rem 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.edu-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.edu-subtitle {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.edu-search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.edu-search-box input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    font-size: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.edu-search-box input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.edu-search-box ion-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #94a3b8;
}

.edu-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.edu-cat-btn {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.edu-cat-btn:hover,
.edu-cat-btn.active {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.edu-grid-section {
    padding-bottom: 5rem;
}

.edu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.edu-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.edu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
    border-color: #cbd5e1;
}

.edu-img-wrap {
    height: 200px;
    position: relative;
    background: #f1f5f9;
}

.edu-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.edu-badge.purple {
    color: #a855f7;
}

.edu-badge.green {
    color: #16a34a;
}

.edu-badge.blue {
    color: #2563eb;
}

.edu-badge.orange {
    color: #ea580c;
}

.edu-badge.red {
    color: #dc2626;
}

.edu-badge.gray {
    color: #475569;
}

.edu-placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.edu-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.edu-meta {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.edu-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.edu-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.edu-link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.edu-newsletter {
    background: #1e293b;
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    color: white;
    flex-wrap: wrap;
}

.edu-newsletter h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.edu-newsletter p {
    color: #cbd5e1;
}

.news-form {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 400px;
}

.news-form input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: none;
    outline: none;
}

.news-form button {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 768px) {
    .edu-title {
        font-size: 2rem;
    }

    .edu-grid {
        grid-template-columns: 1fr;
    }

    .edu-newsletter {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }

    .news-form {
        width: 100%;
        flex-direction: column;
    }

    .news-form button {
        padding: 1rem;
    }
}

/* --- SORTING BUTTON STYLES (Blue Active State) --- */
.sort-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.sort-label {
    font-weight: 600;
    color: #0f172a;
    margin-right: 0.5rem;
}

.sort-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
}

.sort-btn:hover {
    border-color: #cbd5e1;
    color: #334155;
    background-color: #f8fafc;
}

.sort-btn.active {
    background-color: #2563eb !important;
    /* Blue 600 */
    border-color: #2563eb !important;
    color: white !important;
    box-shadow: 0 1px 3px rgba(37, 99, 235, 0.3);
}

.sort-btn.active ion-icon {
    color: white !important;
}

@media (max-width: 768px) {
    .sort-group {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .sort-btn {
        white-space: nowrap;
    }
}

/* --- NAV DROPDOWN STYLES --- */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #4b5563;
    /* Match nav links */
    padding: 0.5rem 0.75rem;
    transition: color 0.2s;
}

.dropdown-toggle:hover {
    color: #1a202c;
    background-color: #f3f4f6;
    border-radius: 6px;
}

.dropdown-menu {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 1000;
    padding: 0.5rem 0;
    margin-top: 0.25rem;
}

/* Show on hover */
.nav-dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.15s, color 0.15s;
}

.dropdown-menu a:hover {
    background-color: #f3f4f6;
    color: #1a202c;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- MOBILE MENU OVERRIDES --- */
.mobile-menu {
    position: fixed;
    top: 70px;
    /* Adjust based on header height, usually 60-80px */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: white;
    z-index: 999;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
    border-top: 1px solid #f1f5f9;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-link {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    padding: 1rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
}

.mobile-link:last-child {
    border-bottom: none;
}

.mobile-link.active {
    color: #2563eb;
}

.mobile-link:hover {
    color: #3b82f6;
    padding-left: 5px;
    /* Subtle slide effect */
    transition: all 0.2s;
}

/* Ensure hamburger is visible on mobile */
@media (max-width: 900px) {
    .desktop-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: flex !important;
        font-size: 1.5rem;
        padding: 0.5rem;
        cursor: pointer;
        background: none;
        border: none;
        color: #1e293b;
    }
}

@media (min-width: 901px) {
    .mobile-menu {
        display: none !important;
    }

    .mobile-toggle {
        display: none !important;
    }
}