/* ردیف‌های دانلود مدرن */
.tfx-dl-row-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 20px;
    margin: 8px 0;
    direction: rtl;
    transition: all 0.3s ease;
}

.tfx-dl-row-wrapper:hover {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tfx-dl-row-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    overflow: hidden;
}

.tfx-dl-row-icon {
    color: #3b82f6;
    display: flex;
    align-items: center;
}

.tfx-dl-row-icon svg { width: 22px; height: 22px; }

.tfx-dl-row-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tfx-dl-row-left {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.tfx-dl-row-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tfx-badge {
    background: #e2e8f0;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.tfx-count {
    font-size: 12px;
    color: #64748b;
}

.tfx-dl-row-btn {
    background: #10b981;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    transition: background 0.3s;
}

.tfx-dl-row-btn:hover { background: #059669; }

.tfx-dl-row-btn.is-loading {
    background: #f59e0b;
    pointer-events: none;
}

.tfx-loader-icon {
    width: 18px; height: 18px;
    animation: tfx-spin 1s linear infinite;
}

@keyframes tfx-spin { 100% { transform: rotate(360deg); } }

/* جعبه اطلاعات پایانی (پسورد، راهنما، تبلیغات) */
.tfx-download-cluster-container {
    margin: 30px 0;
}

.tfx-global-infobox {
    margin-top: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    direction: rtl;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* پسورد */
.tfx-info-password {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.tfx-pwd-label {
    font-size: 13px;
    font-weight: 700;
    color: #334155;
}

.tfx-pwd-copy {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    padding: 6px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    color: #3b82f6;
    transition: background 0.3s;
}

.tfx-pwd-copy:hover { background: #eff6ff; }
.tfx-pwd-copy svg { width: 16px; height: 16px; }

/* راهنمای نصب */
.tfx-info-accordion summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    list-style: none;
    border-bottom: 1px solid #e2e8f0;
}

.tfx-info-accordion summary::-webkit-details-marker { display: none; }
.tfx-info-accordion summary svg { width: 18px; height: 18px; color: #3b82f6; }
.tfx-accordion-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

/* باکس تبلیغات */
.tfx-info-ads {
    position: relative;
    padding: 25px 20px 20px;
    background: #fffbeb;
}

.tfx-ads-badge {
    position: absolute;
    top: 0; right: 20px;
    background: #f59e0b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 0 0 6px 6px;
}

.tfx-ads-content {
    font-size: 14px;
    line-height: 1.8;
    color: #92400e;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .tfx-dl-row-wrapper { flex-direction: column; align-items: flex-start; gap: 15px; }
    .tfx-dl-row-left { width: 100%; justify-content: space-between; }
    .tfx-info-password { flex-direction: column; gap: 10px; align-items: flex-start; }
}