/* ═══════════════════════════════════════════════════
   TD Members v2 — CSS جدول فشرده و کارت‌های آماری
   نسخه 5.0 — Zebra + فونت بولد + فشرده‌سازی کامل
   ═══════════════════════════════════════════════════ */

/* ═══════════════════════════════════════
   کارت‌های آماری
   ═══════════════════════════════════════ */
.td-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.td-stat-card {
    flex: 1 1 0;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 2px solid transparent;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.td-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 4px;
    transition: width 0.2s;
}

.td-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.td-stat-card:hover::before {
    width: 6px;
}

.td-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
}

.td-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.td-stat-label {
    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
    white-space: nowrap;
}

.td-stat-value {
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

/* ═══ رنگ کارت‌ها ═══ */
.td-stat-new {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
    color: #78350f;
}
.td-stat-new::before { background: #f59e0b; }
.td-stat-new:hover { border-color: #f59e0b; }

.td-stat-transfer {
    background: linear-gradient(135deg, #faf5ff 0%, #ede9fe 100%);
    border-color: #ddd6fe;
    color: #4c1d95;
}
.td-stat-transfer::before { background: #8b5cf6; }
.td-stat-transfer:hover { border-color: #8b5cf6; }

.td-stat-main {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    color: #1e3a8a;
}
.td-stat-main::before { background: #3b82f6; }
.td-stat-main:hover { border-color: #3b82f6; }

.td-stat-sub1 {
    background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
    border-color: #a7f3d0;
    color: #065f46;
}
.td-stat-sub1::before { background: #10b981; }
.td-stat-sub1:hover { border-color: #10b981; }

.td-stat-sub2 {
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    border-color: #fdba74;
    color: #9a3412;
}
.td-stat-sub2::before { background: #f97316; }
.td-stat-sub2:hover { border-color: #f97316; }

.td-stat-sub3 {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-color: #fbcfe8;
    color: #9d174d;
}
.td-stat-sub3::before { background: #ec4899; }
.td-stat-sub3:hover { border-color: #ec4899; }

.td-stat-warn {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-color: #fecaca;
    color: #7f1d1d;
}
.td-stat-warn::before { background: #ef4444; }
.td-stat-warn:hover { border-color: #ef4444; }

/* ═══════════════════════════════════════
   جدول — پایه
   ═══════════════════════════════════════ */
.td-table-wrap {
    background: #fff;
    border-radius: 12px;
    overflow-x: auto;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    position: relative;
}

.td-pending-table,
.td-members-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    min-width: 700px;
}

/* ═══ هدر جدول (thead) — فشرده ═══ */
.td-pending-table thead th,
.td-members-table thead th {
    padding: 6px 10px;
    text-align: right;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    line-height: 1.4;
    color: #fff;
}

/* ═══ بدنه جدول (tbody) — فشرده + بولد ═══ */
.td-pending-table tbody td,
.td-members-table tbody td {
    padding: 6px 10px;
    vertical-align: middle;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
}

/* ═══ ستون‌ها — عرض دقیق ═══ */
.td-pending-table th:nth-child(3),
.td-members-table th:nth-child(3) {
    min-width: 130px;
}

.td-pending-table th:nth-child(4),
.td-members-table th:nth-child(4) {
    min-width: 100px;
}

.td-pending-table th:nth-child(5),
.td-members-table th:nth-child(5) {
    min-width: 105px;
}

.td-pending-table th:nth-child(8),
.td-members-table th:nth-child(8) {
    min-width: 95px;
}

/* کد عضویت — عرض بیشتر و فونت کوچک‌تر */
.td-col-code {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 10px;
    direction: ltr;
    text-align: right;
    letter-spacing: -0.3px;
    white-space: nowrap;
    color: #1e40af;
}

.td-col-nc {
    direction: ltr;
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #334155;
}

.td-col-phone {
    direction: ltr;
    text-align: right;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 11px;
    color: #334155;
}

.td-col-photo {
    text-align: center;
    padding: 4px !important;
}

.td-avatar-mini {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.7);
    display: block;
    margin: 0 auto;
}

.td-col-seq {
    text-align: center;
    color: #64748b;
    font-weight: 700;
    font-size: 11px;
}

.td-col-name {
    min-width: 130px;
    max-width: 180px;
}

.td-col-name strong {
    color: #1e293b;
    font-size: 12px;
    font-weight: 700;
}

.td-col-role {
    font-size: 11px;
    color: #475569;
    white-space: nowrap;
    font-weight: 600;
}

.td-col-actions {
    white-space: nowrap;
    text-align: center;
    padding: 4px 6px !important;
}

/* ═══════════════════════════════════════════════════
   🎨 رنگ‌بندی هدر + ردیف‌ها مطابق تم (Zebra)
   ═══════════════════════════════════════════════════ */

/* ───── PENDING (زرد) ───── */
.td-pending-table thead {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}
.td-pending-table thead th {
    border-bottom: 2px solid #b45309;
}
.td-pending-table tbody tr:nth-child(odd) {
    background: #fffbeb;
    border-bottom: 1px solid #fef3c7;
}
.td-pending-table tbody tr:nth-child(even) {
    background: #fff7e0;
    border-bottom: 1px solid #fde68a;
}
.td-pending-table tbody tr:hover {
    background: #fef3c7 !important;
}

/* ───── MAIN (آبی) ───── */
.td-group-main .td-members-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.td-group-main .td-members-table thead th {
    border-bottom: 2px solid #1e40af;
}
.td-group-main .td-members-table tbody tr:nth-child(odd) {
    background: #f8fbff;
    border-bottom: 1px solid #dbeafe;
}
.td-group-main .td-members-table tbody tr:nth-child(even) {
    background: #eff6ff;
    border-bottom: 1px solid #bfdbfe;
}
.td-group-main .td-members-table tbody tr:hover {
    background: #dbeafe !important;
}

/* ───── SUB1 (سبز) ───── */
.td-group-sub1 .td-members-table thead {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.td-group-sub1 .td-members-table thead th {
    border-bottom: 2px solid #047857;
}
.td-group-sub1 .td-members-table tbody tr:nth-child(odd) {
    background: #f8fefa;
    border-bottom: 1px solid #d1fae5;
}
.td-group-sub1 .td-members-table tbody tr:nth-child(even) {
    background: #f0fdf4;
    border-bottom: 1px solid #a7f3d0;
}
.td-group-sub1 .td-members-table tbody tr:hover {
    background: #d1fae5 !important;
}

/* ───── SUB2 (نارنجی) ───── */
.td-group-sub2 .td-members-table thead {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}
.td-group-sub2 .td-members-table thead th {
    border-bottom: 2px solid #c2410c;
}
.td-group-sub2 .td-members-table tbody tr:nth-child(odd) {
    background: #fffaf5;
    border-bottom: 1px solid #fed7aa;
}
.td-group-sub2 .td-members-table tbody tr:nth-child(even) {
    background: #fff7ed;
    border-bottom: 1px solid #fdba74;
}
.td-group-sub2 .td-members-table tbody tr:hover {
    background: #fed7aa !important;
}

/* ───── SUB3 (صورتی) ───── */
.td-group-sub3 .td-members-table thead {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}
.td-group-sub3 .td-members-table thead th {
    border-bottom: 2px solid #9d174d;
}
.td-group-sub3 .td-members-table tbody tr:nth-child(odd) {
    background: #fef9fc;
    border-bottom: 1px solid #fce7f3;
}
.td-group-sub3 .td-members-table tbody tr:nth-child(even) {
    background: #fdf2f8;
    border-bottom: 1px solid #fbcfe8;
}
.td-group-sub3 .td-members-table tbody tr:hover {
    background: #fce7f3 !important;
}

/* ───── جدول عمومی (fallback) ───── */
.td-members-table thead {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}
.td-members-table thead th {
    border-bottom: 2px solid #1e40af;
}
.td-members-table tbody tr:nth-child(odd) {
    background: #f8fafc;
}
.td-members-table tbody tr:nth-child(even) {
    background: #f1f5f9;
}
.td-members-table tbody tr:hover {
    background: #e2e8f0 !important;
}

/* ═══ ردیف ناقص — قرمز ملایم ═══ */
.td-row-incomplete {
    background: #fef2f2 !important;
}
.td-row-incomplete:hover {
    background: #fee2e2 !important;
}

/* ═══ مخفی کردن ═══ */
.td-row-hidden {
    display: none !important;
}

/* ═══════════════════════════════════════
   دکمه‌های toggle
   ═══════════════════════════════════════ */
.td-list-toggle-wrap {
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.td-list-toggle {
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.td-list-toggle-pending {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    color: #78350f;
    box-shadow: 0 2px 6px rgba(245,158,11,0.35);
}
.td-list-toggle-pending:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    transform: translateY(-1px);
}

.td-list-toggle-main {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 2px 6px rgba(59,130,246,0.35);
}
.td-list-toggle-main:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.td-list-toggle-sub1 {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    box-shadow: 0 2px 6px rgba(16,185,129,0.35);
}
.td-list-toggle-sub1:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-1px);
}

.td-list-toggle-sub2 {
    background: linear-gradient(135deg, #fb923c 0%, #f97316 100%);
    box-shadow: 0 2px 6px rgba(249,115,22,0.35);
}
.td-list-toggle-sub2:hover {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    transform: translateY(-1px);
}

.td-list-toggle-sub3 {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    box-shadow: 0 2px 6px rgba(236,72,153,0.35);
}
.td-list-toggle-sub3:hover {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    transform: translateY(-1px);
}

/* ═══ flash ناقص ═══ */
.td-flash-warn {
    animation: td-flash 0.8s ease 2;
    box-shadow: inset 0 0 0 2px #dc2626;
}

@keyframes td-flash {
    0%, 100% { background-color: inherit; }
    50% { background-color: #fecaca; }
}

/* ═══════════════════════════════════════
   برچسب‌های رنگی
   ═══════════════════════════════════════ */
.td-label-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: all 0.15s;
    background: #f1f5f9;
    color: #475569;
}

.td-label-badge:hover {
    transform: translateY(-1px);
}

.td-label-form-site {
    background: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}
.td-label-form-site::before { content: '🌐 '; }

.td-label-form-only {
    background: #dbeafe;
    color: #1e40af;
    border-color: #bfdbfe;
}
.td-label-form-only::before { content: '📝 '; }

.td-label-site {
    background: #ede9fe;
    color: #5b21b6;
    border-color: #ddd6fe;
}
.td-label-site::before { content: '💻 '; }

.td-label-call {
    background: #fed7aa;
    color: #9a3412;
    border-color: #fdba74;
}
.td-label-call::before { content: '📢 '; }

.td-label-unknown {
    background: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
}
.td-label-unknown::before { content: '❓ '; }

.td-label-invalid {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fecaca;
}
.td-label-invalid::before { content: '⚠️ '; }

/* ═══════════════════════════════════════
   دکمه‌های ردیف
   ═══════════════════════════════════════ */
.td-btn-approve,
.td-btn-reject,
.td-btn-profile,
.td-btn-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    transition: all 0.15s;
    margin: 0 1px;
    vertical-align: middle;
}

.td-btn-approve {
    background: #16a34a;
    color: #fff;
}
.td-btn-approve:hover {
    background: #15803d;
    transform: translateY(-1px);
}

.td-btn-reject {
    background: #ef4444;
    color: #fff;
}
.td-btn-reject:hover {
    background: #dc2626;
    transform: translateY(-1px);
}

.td-btn-profile {
    background: #3b82f6;
    color: #fff;
}
.td-btn-profile:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.td-btn-position {
    background: #f59e0b;
    color: #fff;
}
.td-btn-position:hover {
    background: #d97706;
    transform: translateY(-1px);
}

/* ═══════════════════════════════════════
   نشانگرها
   ═══════════════════════════════════════ */
.td-warn-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    margin-right: 3px;
    cursor: help;
    animation: td-pulse 2s ease-in-out infinite;
}

@keyframes td-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.td-pos-mini {
    display: inline-block;
    color: #fff;
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 999px;
    margin-right: 4px;
    vertical-align: middle;
    font-weight: 700;
}

/* ═══════════════════════════════════════
   نوار گروه اعضا (سرصفحه گروه) — استاندارد
   ═══════════════════════════════════════ */
.td-member-group {
    margin-top: 20px;
}

.td-member-group-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    border-radius: 10px 10px 0 0;
    color: #fff;
    direction: rtl;
}

.td-member-group-head.main {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
}
.td-member-group-head.sub1 {
    background: linear-gradient(135deg, #065f46 0%, #10b981 100%);
}
.td-member-group-head.sub2 {
    background: linear-gradient(135deg, #9a3412 0%, #f97316 100%);
}
.td-member-group-head.sub3 {
    background: linear-gradient(135deg, #9d174d 0%, #ec4899 100%);
}

.td-mg-title h4 {
    margin: 0;
    font-size: 14px;
    color: #fff;
    font-weight: 700;
}

.td-mg-icon {
    margin-left: 6px;
}

.td-member-group-count {
    background: rgba(255,255,255,0.25);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

/* ═══════════════════════════════════════
   بخش pending
   ═══════════════════════════════════════ */
.td-pending-section {
    margin: 20px 0;
    padding: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 14px;
    border: 2px dashed #f59e0b;
}

.td-pending-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    direction: rtl;
}

.td-pending-icon {
    font-size: 24px;
    background: #fff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.td-pending-head h4 {
    margin: 0 0 2px 0;
    font-size: 15px;
    color: #78350f;
    font-weight: 700;
}

.td-pending-head p {
    margin: 0;
    font-size: 12px;
    color: #92400e;
    font-weight: 600;
}

/* ═══════════════════════════════════════
   مودال‌ها
   ═══════════════════════════════════════ */
.td-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 999999;
    direction: rtl;
}

.td-modal.td-modal-open {
    display: block;
}

.td-modal-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(3px);
}

.td-modal-box {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    animation: td-modal-slide 0.25s ease;
}

@keyframes td-modal-slide {
    from { opacity: 0; transform: translate(-50%, -48%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.td-modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px 16px 0 0;
}

.td-modal-head h3 {
    margin: 0;
    font-size: 16px;
    color: #1e293b;
}

.td-modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #64748b;
    padding: 4px 8px;
    border-radius: 6px;
}

.td-modal-close:hover {
    background: #fee2e2;
    color: #dc2626;
}

.td-modal-body {
    padding: 20px;
}

.td-modal-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.td-pos-label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
    font-weight: 600;
}

.td-pos-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.td-pos-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s;
}

.td-pos-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.td-pos-option input[type="radio"] {
    margin: 0;
}

.td-pos-option.td-pos-taken {
    opacity: 0.7;
}

.td-pos-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #1e293b;
}

.td-pos-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: #fff;
}

.td-pos-taken-label {
    font-size: 11px;
    color: #64748b;
    font-style: italic;
}

.td-pos-input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    direction: rtl;
}

.td-pos-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}

.td-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.td-btn-primary,
.td-btn-secondary {
    flex: 1;
    padding: 11px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.15s;
}

.td-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
}

.td-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    transform: translateY(-1px);
}

.td-btn-secondary {
    background: #f1f5f9;
    color: #475569;
}

.td-btn-secondary:hover {
    background: #e2e8f0;
}

.td-approve-head {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.td-approve-head h3 {
    color: #065f46;
}

.td-approve-primary {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}

.td-approve-primary:hover {
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
}

/* ═══════════════════════════════════════
   پیام‌ها
   ═══════════════════════════════════════ */
.td-success {
    padding: 12px 18px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border-radius: 10px;
    border-right: 4px solid #10b981;
    margin: 12px 0;
    font-size: 13px;
    font-weight: 600;
    direction: rtl;
}

.td-empty-inline {
    padding: 24px;
    text-align: center;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 14px;
}

/* ═══════════════════════════════════════
   ریسپانسیو
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .td-stat-card {
        min-width: 140px;
    }
    .td-stat-value {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .td-stats-row {
        gap: 8px;
    }
    .td-stat-card {
        min-width: 130px;
        padding: 12px;
        gap: 8px;
    }
    .td-stat-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }
    .td-stat-value {
        font-size: 14px;
    }
    .td-stat-label {
        font-size: 10px;
    }

    .td-pending-table,
    .td-members-table {
        font-size: 11px;
    }
    .td-pending-table thead,
    .td-members-table thead {
        display: none;
    }
    .td-pending-table tbody tr,
    .td-members-table tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px;
    }
    .td-pending-table tbody td,
    .td-members-table tbody td {
        display: block;
        padding: 6px 8px;
        border: none;
    }
    .td-col-photo {
        display: flex !important;
        justify-content: center;
    }
    .td-col-actions {
        text-align: right;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9;
    }

    .td-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .td-modal-box {
        max-height: 95vh;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .td-stat-card {
        min-width: 100%;
        flex: 1 1 100%;
    }
}