:root {
    --bs-primary: #10b981;
    --bs-primary-rgb: 16, 185, 129;
    --bs-secondary: #6366f1;
    --bs-body-font-family: 'Inter', system-ui, sans-serif;
    --kbzhu-gradient: linear-gradient(135deg, #10b981 0%, #6366f1 100%);
}

body {
    background-color: #f8fafc;
}

[x-cloak] { display: none !important; }

.navbar-brand, .nav-link { color: #1e293b !important; }
.nav-link:hover { color: var(--bs-primary) !important; background: rgba(16,185,129,.08); }

.hero {
    background: var(--kbzhu-gradient);
    color: #fff;
    padding: 3.5rem 0;
    margin-bottom: 0;
}
.hero__title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700; }
.hero__text { opacity: .92; max-width: 640px; }

.section-block { padding: 2.5rem 0; }
.section-block--alt { background: #f1f5f9; }

.card-hover {
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}
.card-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    color: inherit;
}

.card-section .card-icon { font-size: 2.5rem; }
.kbzhu-mini { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: #64748b; }
.kbzhu-mini span { background: #f1f5f9; padding: .15rem .5rem; border-radius: 999px; }

.kbzhu-table--mini {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    text-align: center;
    font-size: .85rem;
}
.kbzhu-table--mini strong { display: block; color: #1e293b; }

.kbzhu-bar { padding: .75rem 1rem; border-radius: .5rem; margin-bottom: .5rem; display: flex; justify-content: space-between; }
.kbzhu-bar--protein { background: #dbeafe; }
.kbzhu-bar--fat { background: #fef3c7; }
.kbzhu-bar--carbs { background: #dcfce7; }

.calc-stat { text-align: center; padding: 1rem; background: #f8fafc; border-radius: .75rem; }
.calc-stat__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    font-size: .8rem;
    color: #64748b;
}
.calc-stat__value { display: block; font-size: 1.25rem; font-weight: 700; margin-top: .25rem; }
.calc-stat--highlight { background: rgba(16,185,129,.12); }

.form-label--hint {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.kbzhu-bar__label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hint-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    min-height: 1.25rem;
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    color: #64748b;
    font-size: .6875rem;
    font-weight: 700;
    font-style: italic;
    font-family: Georgia, 'Times New Roman', serif;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
    vertical-align: middle;
    overflow: hidden;
    transition: color .15s, border-color .15s, background-color .15s;
}
.hint-btn > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    pointer-events: none;
}
.hint-btn:hover,
.hint-btn:focus-visible {
    color: var(--bs-primary);
    border-color: rgba(16, 185, 129, .45);
    background: rgba(16, 185, 129, .08);
    outline: none;
}

.popover {
    --bs-popover-max-width: 280px;
    font-size: .875rem;
    border-color: #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .1);
}
.popover-body {
    color: #475569;
    line-height: 1.45;
}

.product-kbzhu .badge { font-size: .9rem; padding: .5rem .75rem; }

.product-search__dropdown {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    right: 0;
    z-index: 1050;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: .75rem;
    background: #fff;
}
.product-search__dropdown .product-search__item {
    background-color: #fff;
    border-color: #e2e8f0;
}
.product-search__dropdown .product-search__item:hover,
.product-search__dropdown .product-search__item:focus,
.product-search__dropdown .product-search__item.active {
    background-color: #ecfdf5;
    color: inherit;
}
.product-search__kbzhu {
    color: #64748b;
}
@media (max-width: 575.98px) {
    .product-search__item .d-flex {
        flex-direction: column;
        gap: .35rem !important;
    }
    .product-search__kbzhu {
        white-space: normal !important;
    }
}

.article-content img { max-width: 100%; height: auto; border-radius: .75rem; }
.article-content h2, .article-content h3 { margin-top: 1.5rem; }

.page-intro { color: #64748b; max-width: 720px; }

.faq-accordion .accordion-button:not(.collapsed) {
    background-color: rgba(16,185,129,.08);
    color: #059669;
}

.error-page { text-align: center; padding: 3rem; }
.error-page h1 { font-size: 4rem; font-weight: 800; color: var(--bs-primary); }

.btn-primary {
    --bs-btn-bg: #10b981;
    --bs-btn-border-color: #10b981;
    --bs-btn-hover-bg: #059669;
    --bs-btn-hover-border-color: #059669;
}

.meal-plan-filter .nav-link {
    color: #475569;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: .45rem 1rem;
    cursor: pointer;
}
.meal-plan-filter .nav-link.active {
    background: var(--kbzhu-gradient);
    border-color: transparent;
    color: #fff;
}

.meal-plan-category-card {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .06);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    border: 2px solid transparent !important;
}
.meal-plan-category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, .08);
}
.meal-plan-category-card--active {
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}
.meal-plan-category-card__icon {
    font-size: 1.75rem;
    display: block;
    margin-bottom: .35rem;
}
.meal-plan-card-placeholder {
    background: linear-gradient(135deg, rgba(16,185,129,.08) 0%, rgba(99,102,241,.08) 100%);
}

.card-hover--product {
    overflow: hidden;
    border: 0;
    border-radius: .875rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}
.card-hover--product:hover {
    box-shadow: 0 14px 32px rgba(15, 23, 42, .12);
}
.product-card-img {
    height: 160px;
    object-fit: cover;
    transition: transform .35s ease;
}
.product-card-img--md { height: 140px; }
.product-card-img--sm { height: 100px; }
.card-hover--product:hover .product-card-img {
    transform: scale(1.04);
}
.product-detail-img {
    border-radius: 1rem;
    box-shadow: 0 16px 48px rgba(15, 23, 42, .14);
}
