.bf-gender-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.bf-gender-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    background: #faf9f7;
    border: 2px solid #e8e4dc;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #5f5a56;
    cursor: pointer;
    transition: all 0.2s;
}

.bf-gender-btn:hover {
    border-color: #d4af37;
    color: #2d2a26;
}

.bf-gender-btn.active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(184, 134, 11, 0.1) 100%);
    border-color: #d4af37;
    color: #2d2a26;
}

.bf-gender-btn i {
    font-size: 18px;
}

.bf-gender-btn.active i {
    color: #d4af37;
}


.bf-input-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bf-input-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}

.bf-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.bf-input-group label {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
}

.bf-female-only {
    font-size: 11px;
    font-weight: 500;
    color: #e91e63;
    margin-left: 4px;
}

.bf-input-group input {
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    background: #faf9f7;
    color: #2d2a26;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.bf-input-group input:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    background: #fff;
}

.bf-input-group input:disabled {
    background: #f0eeea;
    color: #a09a94;
    cursor: not-allowed;
}

.bf-input-group input::placeholder {
    color: #a09a94;
}


.bf-hip-row {
    transition: opacity 0.3s, max-height 0.3s;
}

.bf-hip-row.hidden {
    opacity: 0.5;
}


.bf-goal-section {
    max-width: 200px;
}


.bf-waiting {
    text-align: center;
    padding: 40px 20px;
    color: #a09a94;
}

.bf-waiting i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}

.bf-waiting p {
    font-size: 15px;
    line-height: 1.6;
}

.bf-measure-guide {
    margin-top: 24px;
    padding: 16px;
    background: #faf9f7;
    border-radius: 12px;
    text-align: left;
}

.bf-measure-guide .guide-title {
    font-size: 13px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bf-measure-guide .guide-title i {
    font-size: 14px;
    color: #d4af37;
}

.bf-measure-guide ul {
    margin: 0;
    padding-left: 16px;
    font-size: 13px;
    color: #5f5a56;
}

.bf-measure-guide li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.bf-measure-guide li:last-child {
    margin-bottom: 0;
}

.bf-measure-guide strong {
    color: #2d2a26;
}


.bf-main-result {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(184, 134, 11, 0.1) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    margin-bottom: 24px;
}

.bf-result-value {
    font-size: 56px;
    font-weight: 700;
    color: #d4af37;
    line-height: 1;
    margin-bottom: 8px;
}

.bf-unit {
    font-size: 28px;
    font-weight: 500;
    margin-left: 4px;
}

.bf-result-label {
    font-size: 15px;
    color: #5f5a56;
    margin-bottom: 16px;
}

.bf-category-badge {
    display: inline-block;
    padding: 8px 18px;
    background: #fff;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    color: #2d2a26;
    border: 2px solid transparent;
    transition: all 0.2s;
}


.bf-category-badge.essential {
    color: #9c27b0;
    border-color: #9c27b0;
    background: rgba(156, 39, 176, 0.1);
}

.bf-category-badge.athlete {
    color: #2196f3;
    border-color: #2196f3;
    background: rgba(33, 150, 243, 0.1);
}

.bf-category-badge.fitness {
    color: #27ae60;
    border-color: #27ae60;
    background: rgba(39, 174, 96, 0.1);
}

.bf-category-badge.average {
    color: #f39c12;
    border-color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.bf-category-badge.obese {
    color: #e74c3c;
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}


.bf-gauge-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.bf-gauge-title {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-gauge-title i {
    color: #d4af37;
}

.bf-gauge-bar {
    position: relative;
    height: 24px;
    border-radius: 12px;
    background: linear-gradient(to right,
        #9c27b0 0%,
        #9c27b0 10%,
        #2196f3 10%,
        #2196f3 30%,
        #27ae60 30%,
        #27ae60 50%,
        #f39c12 50%,
        #f39c12 75%,
        #e74c3c 75%,
        #e74c3c 100%
    );
    margin-bottom: 8px;
    overflow: visible;
}

.bf-gauge-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 32px;
    background: #fff;
    border: 3px solid #2d2a26;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: left 0.3s ease;
    z-index: 1;
    left: 0%;
}

.bf-gauge-marker::after {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #2d2a26;
}

.bf-gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #5f5a56;
    padding: 0 2px;
}


.bf-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.bf-stat-card {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.bf-stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bf-stat-icon i {
    font-size: 20px;
    color: #d4af37;
}

.bf-stat-content {
    flex: 1;
    min-width: 0;
}

.bf-stat-value {
    font-size: 18px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 2px;
}

.bf-stat-label {
    font-size: 13px;
    color: #5f5a56;
}


.bf-goal-result {
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.1) 0%, rgba(39, 174, 96, 0.05) 100%);
    border: 1px solid rgba(39, 174, 96, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.bf-goal-title {
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-goal-title i {
    color: #27ae60;
}

.bf-goal-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bf-goal-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.bf-goal-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bf-goal-card.loss .bf-goal-icon {
    background: rgba(39, 174, 96, 0.1);
}

.bf-goal-card.loss .bf-goal-icon i {
    color: #27ae60;
    font-size: 18px;
}

.bf-goal-card.target .bf-goal-icon {
    background: rgba(212, 175, 55, 0.1);
}

.bf-goal-card.target .bf-goal-icon i {
    color: #d4af37;
    font-size: 18px;
}

.bf-goal-content {
    flex: 1;
}

.bf-goal-value {
    font-size: 18px;
    font-weight: 700;
    color: #2d2a26;
    margin-bottom: 2px;
}

.bf-goal-card.loss .bf-goal-value {
    color: #27ae60;
}

.bf-goal-card.target .bf-goal-value {
    color: #d4af37;
}

.bf-goal-label {
    font-size: 12px;
    color: #5f5a56;
}


.bf-categories-section {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.bf-categories-title {
    font-size: 14px;
    font-weight: 600;
    color: #5f5a56;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bf-categories-title i {
    color: #d4af37;
}

.bf-categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.bf-category-card {
    background: #faf9f7;
    border: 1px solid #e8e4dc;
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    transition: all 0.2s;
}

.bf-category-card.active {
    background: #fff;
    border-color: #d4af37;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}

.bf-category-card .category-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 6px;
}

.bf-category-card .category-indicator.essential { background: #9c27b0; }
.bf-category-card .category-indicator.athlete { background: #2196f3; }
.bf-category-card .category-indicator.fitness { background: #27ae60; }
.bf-category-card .category-indicator.average { background: #f39c12; }
.bf-category-card .category-indicator.obese { background: #e74c3c; }

.bf-category-card .category-name {
    font-size: 12px;
    font-weight: 600;
    color: #2d2a26;
    margin-bottom: 4px;
    display: block;
}

.bf-category-card .category-range {
    font-size: 11px;
    color: #5f5a56;
    display: block;
}


.bf-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 185, 0, 0.1);
    border-radius: 12px;
}

.bf-disclaimer i {
    color: #f39c12;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bf-disclaimer span {
    font-size: 13px;
    color: #5f5a56;
    line-height: 1.5;
}


@media (max-width: 768px) {
    .bf-input-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .bf-gender-selector {
        gap: 8px;
    }

    .bf-gender-btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    .bf-main-result {
        padding: 24px 20px;
    }

    .bf-result-value {
        font-size: 48px;
    }

    .bf-stats-grid {
        grid-template-columns: 1fr;
    }

    .bf-goal-cards {
        grid-template-columns: 1fr;
    }

    .bf-categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bf-goal-section {
        max-width: 100%;
    }
}


@media (max-width: 480px) {
    .bf-main-result {
        padding: 20px 16px;
    }

    .bf-result-value {
        font-size: 42px;
    }

    .bf-unit {
        font-size: 22px;
    }

    .bf-category-badge {
        font-size: 14px;
        padding: 6px 14px;
    }

    .bf-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bf-category-card {
        padding: 10px 6px;
    }

    .bf-gauge-labels {
        font-size: 10px;
    }

    .bf-stat-icon {
        width: 40px;
        height: 40px;
    }

    .bf-stat-icon i {
        font-size: 18px;
    }
}
