.bmr-tdee-container {
    max-width: 900px;
    margin: 40px auto;
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    color: #2d3436;
}

.bmr-tdee-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.calculator-header {
    text-align: center;
    margin-bottom: 40px;
}

.calculator-header h2 {
    font-size: 32px;
    color: #2d3436;
    margin: 0 0 10px 0;
}

.subtitle {
    color: #636e72;
    font-size: 16px;
}

.calculator-main-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.calculator-form-side {
    flex: 1.5;
}

.avatar-display-side {
    flex: 1;
    display: flex;
    justify-content: center;
    background: #f9f9f9;
    border-radius: 15px;
    padding: 20px;
    min-height: 250px;
    align-items: center;
}

.avatar-container {
    width: 100%;
    text-align: center;
}

.human-photo {
    max-height: 400px;
    width: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.15));
    transition: opacity 0.3s ease;
}

.image-wrapper {
    background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(240,240,240,1) 100%);
    border-radius: 15px;
    padding: 20px;
    overflow: hidden;
}

.bmi-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.bmi-badge.underweight { background: #d1d8e0; color: #4b6584; }
.bmi-badge.normal { background: #a5b1c2; color: #fff; }
.bmi-badge.overweight { background: #fa8231; color: #fff; }
.bmi-badge.obese { background: #eb3b5a; color: #fff; }

.avatar-placeholder {
    color: #b2bec3;
}

.placeholder-svg {
    width: 80px;
    margin-bottom: 10px;
}

/* Inputs */
.input-group { margin-bottom: 20px; }
.input-row { display: flex; gap: 15px; }
.input-row .input-group { flex: 1; }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

input[type="number"], select {
    width: 100%;
    padding: 14px;
    border: 2px solid #f1f2f6;
    border-radius: 12px;
    background: #fdfdfe;
    font-size: 16px;
    transition: all 0.3s;
}

input[type="number"]:focus, select:focus {
    border-color: #3498db;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.1);
}

.calculate-btn {
    width: 100%;
    padding: 16px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.calculate-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* Results */
.results-area {
    border-top: 2px dashed #f1f2f6;
    padding-top: 40px;
    margin-top: 40px;
}

.results-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.result-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.result-box.highlighted {
    border: 2px solid #e3f2fd;
    background: #fff;
}

.result-value {
    font-size: 36px;
    font-weight: 800;
    color: #3498db;
    margin: 10px 0;
}

.explanation-text {
    font-size: 13px;
    color: #636e72;
    line-height: 1.5;
}

.deficit-section h3 {
    text-align: center;
    margin-bottom: 10px;
}

.section-desc {
    text-align: center;
    color: #636e72;
    margin-bottom: 30px;
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.goal-item {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #eee;
}

.goal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.goal-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.goal-tip {
    font-size: 12px;
    color: #636e72;
    margin: 0;
}

/* Tips */
.personalized-tips-section {
    margin-top: 50px;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tip-card {
    background: #fdfdfe;
    border-left: 4px solid #3498db;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.tip-card h4 { margin: 0 0 5px 0; color: #2d3436; }
.tip-card p { margin: 0; font-size: 14px; color: #636e72; }

/* Carousel */
.related-articles-section { margin-top: 60px; }
.article-card { border-radius: 15px; background: #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.article-thumb img { width: 100%; height: 180px; object-fit: cover; }
.article-info { padding: 20px; }

/* Responsive */
@media (max-width: 768px) {
    .calculator-main-layout { flex-direction: column; }
    .results-summary-grid { grid-template-columns: 1fr; }
    .tips-grid { grid-template-columns: 1fr; }
    .bmr-tdee-card { padding: 25px; }
}
