.fcs-calc-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 30px auto; /* افزایش فاصله فرم از بالا و پایین صفحه */
    max-width: 650px;
    direction: rtl;
}
.fcs-calc-card {
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 16px !important;
    padding: 30px !important; /* افزایش پدینگ داخلی باکس اصلی برای تنفس بیشتر کلا */
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03) !important;
}
.fcs-calc-title {
    color: #0f172a !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
}
.fcs-calc-subtitle {
    color: #94a3b8 !important;
    font-size: 13px !important;
    text-align: center !important;
    margin-bottom: 25px !important; /* فاصله بیشتر زیر عنوان */
}

/* سیستم شبکه بندی تب ها - ۴ ستون در یک ردیف در دسکتاپ */
.fcs-calc-tabs {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important; 
    background: #f1f5f9 !important;
    padding: 6px !important;
    border-radius: 10px !important;
    gap: 8px !important; /* ایجاد فاصله مناسب بین دکمه‌های تب */
    margin-bottom: 30px !important; /* فاصله بیشتر تب‌ها با فرم زیرین */
}

/* دکمه‌های تب با پدینگ نصف شده */
.fcs-tab-btn {
    border: none !important;
    background: transparent !important;
    padding: 5px 2px !important; /* پدینگ داخلی دقیقاً نصف شد */
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #64748b !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    text-align: center !important;
    box-shadow: none !important;
    white-space: nowrap !important;
}
.fcs-tab-btn.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 3px 8px rgba(0,0,0,0.05) !important;
}

/* المان‌های فرم و افزایش فواصل */
.fcs-tab-content {
    display: none;
}
.fcs-tab-content.active {
    display: block;
}
.fcs-calc-row {
    display: flex !important;
    gap: 20px !important; /* افزایش فاصله بین فیلدهای کنار هم */
    margin-bottom: 20px !important; /* ایجاد فاصله بین سطرهای فرم */
}
.fcs-calc-field {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}
.fcs-calc-field label {
    font-weight: 600 !important;
    font-size: 13px !important;
    color: #334155 !important;
    margin-bottom: 8px !important; /* فاصله بیشتر لیبل با خود اینپوت */
}
.fcs-calc-field input, .fcs-calc-field select {
    padding: 10px 12px !important; /* پدینگ بیشتر ورودی‌ها برای ظاهر شیک‌تر */
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    outline: none !important;
}

/* انتخابگر جنسیت */
.fcs-gender-selector {
    display: flex !important;
    gap: 10px !important;
}
.fcs-gender-btn {
    flex: 1 !important;
    cursor: pointer !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 9px !important;
    text-align: center !important;
    background: #f8fafc !important;
}
.fcs-gender-btn input { display: none !important; }
.fcs-gender-btn span { font-size: 13px !important; color: #475569 !important; font-weight: 500 !important; }
.fcs-gender-btn:has(input:checked) { background: #f1f5f9 !important; border-color: #cbd5e1 !important; }

.fcs-submit-action-btn {
    width: 100% !important;
    background: #0f172a !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin-top: 10px !important; /* متمایز کردن دکمه از فیلدهای بالا */
}

/* خروجی نتایج و باکس‌ها */
.fcs-hidden-box {
    display: none;
    margin-top: 30px !important; /* فاصله بیشتر نتایج با بخش فرم */
}
.fcs-results-heading {
    color: #0f172a !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 15px !important;
    text-align: center !important;
}
.fcs-results-grid {
    display: flex !important;
    gap: 15px !important; /* افزایش فاصله کارتهای نتیجه از هم */
}
.fcs-result-card {
    flex: 1 !important;
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 15px !important;
    text-align: center !important;
}
.fcs-result-card h4 {
    margin: 0 0 6px 0 !important;
    font-size: 12px !important;
    color: #64748b !important;
}
.fcs-result-value {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
.fcs-result-status {
    display: inline-block !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 5px !important;
}

/* باکس راهنمای رژیم نویسی هوشمند */
.fcs-suggestion-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px !important;
    padding: 20px !important; /* پدینگ بازتر */
    margin-top: 25px !important; /* فاصله بیشتر از باکس بالا */
}
.fcs-suggestion-box h4 {
    margin: 0 0 12px 0 !important;
    color: #0f172a !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.fcs-suggestion-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 15px 0 !important;
}
.fcs-suggestion-list li {
    font-size: 13px !important;
    line-height: 2 !important; /* فاصله خطوط بیشتر برای خوانایی عالی */
    color: #334155 !important;
    margin-bottom: 8px !important;
}
.fcs-suggestion-list li strong {
    color: #0f172a !important;
}
.fcs-badge-cal {
    background: #e2e8f0 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
}
.fcs-coach-comment {
    border-top: 1px solid #e2e8f0 !important;
    padding-top: 12px !important;
    font-size: 13px !important;
    line-height: 1.8 !important;
    color: #334155 !important;
}
.fcs-coach-comment strong, .fcs-coach-comment span {
    color: #0f172a !important;
}

/* شبکه بندی 1RM */
.fcs-rm-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
}
.fcs-rm-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    color: #334155 !important;
    text-align: center !important;
}

/* رسپونسیو موبایل */
@media(max-width: 550px) {
    /* تغییر حالت تب‌ها به ۲ ستون دوتایی کاملاً متقارن طبق دستور شما */
    .fcs-calc-tabs {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 6px !important;
    }
    .fcs-tab-btn {
        padding: 8px 4px !important; /* پدینگ متناسب موبایل */
        font-size: 12px !important;
    }
    .fcs-calc-card { padding: 20px 15px !important; }
    .fcs-calc-row { flex-direction: column !important; gap: 0 !important; }
    .fcs-calc-field { margin-bottom: 16px !important; } /* فاصله بین فیلدهای زیر هم در موبایل */
    .fcs-results-grid { flex-direction: column !important; gap: 12px !important; }
}
